------- Comment #6 from pinskia at gcc dot gnu dot org 2007-04-25 22:58 ------- Yes the fortran standard does not define the ABI, the target which you are compiling for does and if you change it in any way (which is what options like -malign-double does) you are going to run into problems like this.
GCC is more than a fortran compiler and more than a C compiler, if you use options in general that warn that they change the ABI (this is documented as shown by comment #4 ), you should be expected to understand what you are trying to do might not always work. There are so many options which change the ABI (argument passing, struct layout) that it is not the correct thing to warn about all of them, though maybe we should not supply them as options in the first place but that is up to the target maintainers to decide if they want to have these options. Also note -malign-double is just an example of the ABI changing options and it just happens to be the most reported one that "breaks" code. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31696