libstdc++ versus -Wcast-align

Benjamin Kosnik bkoz@redhat.com
Tue May 6 22:42:00 GMT 2003


>> You can try adding
>>
>> #pragma GCC system_header
>>
>> to bits/stl_alloc.h, which might hide this error.
>
>Would you accept such a patch for mainline (and later the 3.3 branch)?

Yes. This should be in the file.

>The following hack really seems to work. and removes all warnings I got
>for -Wcast-qual on sparc-sun-solaris2.9.  If I brush this up with a proper
>ChangeLog and full testruns, would something like this be acceptable?

Looks correct to me, and yes, it would be acceptable for both gcc-3.4
(now) and gcc-3_3-branch when it opens.

Thanks for figuring this out!

-benjamin



More information about the Libstdc++ mailing list