This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Darwin bootstrap failure following wide int merge


On Wed, May 28, 2014 at 3:15 PM, FX <fxcoudert@gmail.com> wrote:
>> After lengthy IRC discussions, what Richard and I can live with is
>> && !defined(__clang__) in this particular case that uses longlong.h
>> in GCC sources, with a comment why.
>
> Iâll test this patch and commit if there is no problem. But right now, current trunk doesnât build on x86_64-apple-darwin due to error below. Richard, could this be due to your revision 211013?

Hum, yeah.  But why does it even warn if sizeof (long) == sizeof (long long)?
I suppose casting the result of CWI_ELT () to uint64_t fixes this.  Do
similar errors happen elsewhere?

(the hex printfs expect unsigned types but CWI_ELT returns a signed
HWI)

Richard.

> FX
>
>
>
> ../../trunk/gcc/rtl.c: In function âvoid cwi_output_hex(FILE*, const_rtx)â:
> ../../trunk/gcc/rtl.c:239:62: error: format â%llxâ expects argument of type âlong long unsigned intâ, but argument 3 has type âlong intâ [-Werror=format=]
>    fprintf (outfile, HOST_WIDE_INT_PRINT_HEX, CWI_ELT (x, --i));
>                                                               ^
> ../../trunk/gcc/rtl.c:239:62: error: format â%llxâ expects argument of type âlong long unsigned intâ, but argument 3 has type âlong intâ [-Werror=format=]
> ../../trunk/gcc/rtl.c:241:69: error: format â%llxâ expects argument of type âlong long unsigned intâ, but argument 3 has type âlong intâ [-Werror=format=]
>      fprintf (outfile, HOST_WIDE_INT_PRINT_PADDED_HEX, CWI_ELT (x, i));
>                                                                      ^
> ../../trunk/gcc/rtl.c:241:69: error: format â%llxâ expects argument of type âlong long unsigned intâ, but argument 3 has type âlong intâ [-Werror=format=]
> cc1plus: all warnings being treated as errors
> make[3]: *** [build/rtl.o] Error 1
> make[2]: *** [all-stage2-gcc] Error 2
> make[1]: *** [stage2-bubble] Error 2
> make: *** [all] Error 2
>
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]