------- Comment #10 from jvdelisle at gcc dot gnu dot org 2008-11-25 02:18 ------- We did at one time talk about innoculating libgfortran or some such so that the alignments would be maintained. IIRC We decided not too when it was realized that we would have to manually adjust every time we made a change to a structure. Also, the problem can extend into glibc etc.
One thing you could consider doing is modify the program so that all IO separated from computationally intensive code. Separated in the sense of different sources files. Files containing I/O compile without the -malign-double. Compute only files compile with -malign-double. Then I believe things will work. Use grep to see how many places where you have read and write statements. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38249