This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Aligning struct member has strange impact on struct alignment
- From: Jim Wilson <wilson at specifixinc dot com>
- To: Stephan Bergmann <stephan dot bergmann at sun dot com>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Apr 2004 12:23:26 -0700
- Subject: Re: Aligning struct member has strange impact on struct alignment
- References: <407D41E8.9000202@sun.com>
Stephan Bergmann wrote:
Why is the alignment of S2 == 8 when I align its double member on 4? Is
that a bug, or am I missing something?
I can reproduce this with the RHL 8 compiler which is 3.2 plus patches.
I can not reproduce this with gcc-3.3 or later, so it apparently has
already been fixed. We aren't maintaining gcc-3.2 anymore. Only
gcc-3.3 and on.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com