This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Question on -Werror usage in Makefiles...
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, gcc at gcc dot gnu dot org
- Date: Sun, 26 Oct 2003 09:52:18 -0800
- Subject: Re: Question on -Werror usage in Makefiles...
- References: <u84qxwqhnk.fsf@gromit.moeb><200310261407.h9QE7CHx013098@caip.rutgers.edu><u8u15wyrhm.fsf@gromit.moeb><200310261617.h9QGHLUL009883@caip.rutgers.edu><u8r810x8e2.fsf@gromit.moeb>
Andreas Jaeger <aj@suse.de> writes:
> /cvs/gcc/gcc/crtstuff.c: In function `__do_global_dtors_aux':
>
> /cvs/gcc/gcc/crtstuff.c:282: warning: passing arg 1 of `__deregister_frame_info' discards qualifiers from pointer target type
> /cvs/gcc/gcc/crtstuff.c: In function `frame_dummy':
>
> /cvs/gcc/gcc/crtstuff.c:310: warning: passing arg 1 of `__register_frame_info' discards qualifiers from pointer target type
> make[2]: *** [crtbeginT.o] Error 1
>
> Is the following the right fix?
>
> I'm bootstrapping/regtesting on x86_64-linux-gnu now,
>
> Andreas
>
> 2003-10-26 Andreas Jaeger <aj@suse.de>
>
> * crtstuff.c (frame_dummy): Cast __EH_FRAME_BEGIN__ properly.
> (__do_global_dtors_aux): Likewise.
__EH_FRAME_BEGIN__ points into a read-only section, so better to
change the prototypes of __deregister_frame_info{,_bases},
__register_frame_info{,_bases}, if at all possible.
zw