This is the mail archive of the gcc-patches@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: 3.4 PATCH: Fix IRIX 6 bootstrap failure (-Werror fallout)


On Tue, 2003-11-04 at 12:53, Rainer Orth wrote:
> A IRIX 6.5 bootstrap ran into some problems with -Werror, too:
> 
> * Two warning in crtstuff.c:
> 
> /.vol/gcc/src/gcc/gcc/crtstuff.c:377: warning: no previous prototype for '__do_global_dtors'
> /.vol/gcc/src/gcc/gcc/crtstuff.c:522: warning: no previous prototype for '__do_global_ctors'
> make[4]: *** [crtbegin.o] Error 1
> 
> * Every O32 compilation would fail with -Werror:
> 
> /.vol/gcc/src/gcc/gcc/libgcc2.c:0: warning: -g is only supported using GNU as with -mabi=32,
> /.vol/gcc/src/gcc/gcc/libgcc2.c:0: warning: -g option disabled
> make[3]: *** [libgcc/mabi=32/_muldi3.o] Error 1
> 
>   Unless there is a way to selectively disable -g for all O32 compilations
>   when the native as is in use, we need -Wno-error for all of libgcc.
> 
> This patch fixes both and allows the bootstrap to complete successfully
> without regressions.
> 
> Ok for mainline?

Yes -- but the change to t-iris6 should have a comment explaining why
-Wno-error is being passed.

-- 
Mark Mitchell <mark@codesourcery.com>
CodeSourcery, LLC


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