This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Possible bugs with -malign-double
- From: Tobias Burnus <burnus at net-b dot de>
- To: Soohaeng Yoo <syoo70 at gmail dot com>
- Cc: fortran at gcc dot gnu dot org
- Date: Sat, 24 May 2008 13:40:02 +0200
- Subject: Re: Possible bugs with -malign-double
- References: <4837FAA5.4000106@gmail.com>
Soohaeng Yoo wrote:
I report the possible bugs with the compiler option of '-malign-double'.
"man gcc" shows for -malign-double:
"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 and will not be
binary compatible with structures in code compiled without that switch."
You need to recompile the libgfortran library if you want to use the
-malign-double option. (Or analogously for -mno-align-double on systems
such as x86-64 where -malign-double is enabled by default.)
Tobias