This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrap failures on solaris
- From: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>
- To: Art Haas <ahaas at impactweather dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 9 Jun 2009 11:41:46 -0400 (EDT)
- Subject: Re: Bootstrap failures on solaris
- References: <200906091436.n59EaP8F028765@impdell3.impactweather.local>
On Tue, 9 Jun 2009, Art Haas wrote:
>
> Hi.
>
> I've had no luck with recent bootstraps on both i386-pc-solaris2.10 and
> sparc-sun-solaris2.10. The error messages below are from builds performed
> after updating my repo this morning.
>
> i386-pc-solaris:
>
> cc1: warnings being treated as errors
> /export/home/arth/gnu/gcc.git/gcc/tree-ssa-loop-prefetch.c: In function 'loop_prefetch_arrays':
> /export/home/arth/gnu/gcc.git/gcc/tree-ssa-loop-prefetch.c:1589:7: error: format '%ld' expects type 'long int', but argument 5 has type 'long long int'
> make[3]: *** [tree-ssa-loop-prefetch.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
The above should be easy to fix using HOST_WIDE_INT_PRINT_DEC instead of
"%ld". You'll have to pry apart the format string and insert the macro
via compile-time string contatenation. See other uses for examples.
--Kaveh