------- Comment #9 from kargl at gcc dot gnu dot org 2008-11-24 19:52 ------- (In reply to comment #8) > I don't mean to be combative, but if EVERYTHING (glibc etc) needs to be build > with -malign-double, not just fortran programs, then IMHO the flag is useless > and should be removed. I've been using this flag in legacy fortran code for > years--this is the first time ever that I've encountered this problem (as the > info page suggests). >
The problem is that a large amount of libgfortran is actually written in Fortran and a data structure used by the IO facility has an alignment issue. By using -malign-double, this data structure becomes corrupt. I'm unfamiliar with the glibc issue, so can't comment on it. A long time ago, I wrote a patch that had gfortran intercept -malign-double. Compilation would abort. I don't remember why the patch was never accepted. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38249