This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3] Fix Werror breakage (maintainer-mode)
- From: Ian Lance Taylor <iant at google dot com>
- To: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Sun, 06 Jul 2008 23:10:36 -0700
- Subject: Re: [v3] Fix Werror breakage (maintainer-mode)
- References: <20080706094423.GB29777@ins.uni-bonn.de>
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