This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c/2547: GCC generate wrong size struct
- To: flus at cesar dot org dot br, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Subject: Re: c/2547: GCC generate wrong size struct
- From: neil at gcc dot gnu dot org
- Date: 30 Oct 2001 21:58:52 -0000
Synopsis: GCC generate wrong size struct
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Tue Oct 30 13:58:51 2001
State-Changed-Why:
Not a bug - you need to read about alignment issues and
padding.
You might be able to avoid padding bytes by rearranging
the members of your structures.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=2547&database=gcc