This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/13078] sizeof returns incorrect 4 byte aligned value when structure contains integers and smaller types
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Nov 2003 20:03:57 -0000
- Subject: [Bug c/13078] sizeof returns incorrect 4 byte aligned value when structure contains integers and smaller types
- References: <20031116200116.13078.michaelcollins@ivorycity.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From falk at debian dot org 2003-11-16 20:03 -------
Well, this is just how structs work in C. If you don't like it, use
__attribute__((packed)).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13078