This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
-malign-double question
- From: David Ronis <ronis at ronispc dot chem dot mcgill dot ca>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 10 May 2002 10:09:51 -0400
- Subject: -malign-double question
- Reply-to: ronis at onsager dot chem dot mcgill dot ca
I've just noticed that the 3.1 documentation for the -malign-double
flag no longer contain the warning about structures; i.e., it used to
read:
-malign-double'
`-mno-align-double'
Control whether GCC aligns `double', `long double', and `long
long' variables on a two word boundary or a one word boundary.
Aligning `double' variables on a two word boundary will produce
code that runs somewhat faster on a `Pentium' at the expense of
more memory.
*Warning:* if you use the `-malign-double' switch, structures
containing the above types will be aligned differently than the
published application binary interface specifications for the 386.
I'd been burned badly by not paying attention to this in the past.
What is the current situation?
David