[v3] Fix Werror breakage (maintainer-mode)
Ian Lance Taylor
iant@google.com
Mon Jul 7 06:11:00 GMT 2008
Ralf Wildenhues <Ralf.Wildenhues@gmx.de> writes:
> Now, the unwind-pe.h patch below should fix the PR. But I'm not sure
> how to fix the cast, so the patch below is a cheap GNU make-specific
> hack to work around the issue.
>
> Can somebody enlighten me as to a proper locale_init.cc fix?
>
> OK to apply the gcc/ patch to trunk? What about 4.3 (that was what the
> report was against)?
>
> This survived some bootstraps & regtests on i686-pc-linux-gnu.
>
> Thanks,
> Ralf
>
> gcc/ChangeLog:
> 2008-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
>
> PR target/34780
> * unwind-pe.h (size_of_encoded_value): add attribute unused.
This patch is OK. Thanks.
I don't understand why locale_init.cc is giving an aliasing warning at
all. The line seems to b
return reinterpret_cast<const locale&>(c_locale);
c_locale is a char array, and as such may be aliased to anything. Did
TYPE_NONALIASED_COMPONENT somehow get set for the type of c_locale?
Ian
More information about the Libstdc++
mailing list