------- Comment #1 from burnus at gcc dot gnu dot org 2009-07-27 14:47 ------- (Note: -fwhole-program implies -fwhole-file; the -O<n> option is required.)
Test case. Run with "-O1 -fwhole-program". Fails with: test.f90:(.text+0x1b): undefined reference to `three_' program prog call one() call two() end program prog subroutine one() call three() end subroutine one subroutine two() call three() end subroutine two subroutine three() end subroutine three -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pault at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40873