http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50585
--- Comment #6 from janus at gcc dot gnu.org 2011-10-01 11:24:46 UTC --- (In reply to comment #5) > IIRC, -fwhole-file is default since 4.6, right? However, if this is true, it > is > not documented in the manual: > > http://gcc.gnu.org/onlinedocs/gcc-4.6.1/gfortran/Code-Gen-Options.html#Code-Gen-Options Apparently I do remember correctly, as http://gcc.gnu.org/gcc-4.6/changes.html confirms. Also the patch in comment #3 regtests cleanly. Will commit as obvious.