This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Forward declarations and variable alignment weirdness
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc at gcc dot gnu dot org
- Cc: Piotr JaroszyÅski <p dot jaroszynski at gmail dot com>
- Date: Sat, 21 Aug 2010 02:05:36 +0100
- Subject: Re: Forward declarations and variable alignment weirdness
- References: <AANLkTi=kzarYd01KfcuG3xOSLgbT1vOoe5p6BCca1mX2@mail.gmail.com>
> I have run into variable alignment issues, which turned out to be
> caused by forward declaration w/o the aligned attribute repeated.
> Could someone explain this please? If it's a bug to not include the
> aligned attribute in the forward declaration, would it be hard to add
> a warning for that? Also the difference between 4.4.4 and 4.5.1 is
> interesting.
PR45112. See also http://gcc.gnu.org/ml/gcc-patches/2010-08/msg00283.html
Paul