[Bug bootstrap/93962] [10 regression] bootstrap fails with gcc/value-prof.c:268:28 : error: format '%lld' expects argument of type 'long long int', but argument 3 hastype 'int'

law at redhat dot com gcc-bugzilla@gcc.gnu.org
Tue Mar 3 23:13:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93962

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at redhat dot com

--- Comment #3 from Jeffrey A. Law <law at redhat dot com> ---
Gerald, I wanted to reproduce the error so that I could in turn verify the
proposed fix of using std:abs would work.

So I installed FreeBSD 11.3 (i686) in a VM.  Bootstrap with GCC went fine.   I
couldn't get the failure building with clang either.

How are you configuring & building?    I checked both my gcc and clang object
trees, and both end up with %lld (compiling with -save-temps, then examining
the .ii output).

So while I believe Andrew is right that this should be using std::abs, I'd
still like to reproduce the problem and verify that using std::abs is
sufficient to fix.


More information about the Gcc-bugs mailing list