This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++ versus -Wcast-align
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 6 May 2003 17:41:11 -0500
- Subject: Re: libstdc++ versus -Wcast-align
- References: <Pine.BSF.4.53.0304280154120.94316@acrux.dbai.tuwien.ac.at><20030428084344.13f227d5.bkoz@redhat.com><Pine.BSF.4.53.0305021619300.73781@naos.dbai.tuwien.ac.at>
>> 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