Question on -Werror usage in Makefiles...

Andreas Jaeger aj@suse.de
Sun Oct 26 18:03:00 GMT 2003


"Zack Weinberg" <zack@codesourcery.com> writes:

> 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.

It should be possible - but is a major surgery of unwind-dw2-fde.*
since that variable is passed around again...

So, let's ask the experts first whether there's any objection for
changing it before I try it...

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20031026/0b02ff66/attachment.sig>


More information about the Gcc-patches mailing list