Alignment of structures.
Martin v. Loewis
martin@mira.isdn.cs.tu-berlin.de
Wed Dec 1 00:38:00 GMT 1999
> If I add in an extra long into a struct definition the structures are not
> packed together, rather they are put on 32 byte boundary. This seems to
> be a bug in the Intel alignment.
Thanks for your bug report. The behaviour you see is caused by the
macro DATA_ALIGNMENT in gcc/config/i386.c, which was introduced by
Fri May 15 01:29:39 1998 John Wehle (john@feith.com)
* i386.h (DATA_ALIGNMENT): Define.
I'm not sure what the rationale for this alignment is; I believe there
is some Intel recommendation in this respect.
Anyway, I fail to see the bug. Is it that something that should work
doesn't? Why is this a problem?
Regards,
Martin
More information about the Gcc-bugs
mailing list