http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48644
Summary: aermod fails to link with -fwhole-program Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: tkoe...@gcc.gnu.org Some functions are optimized away, apparently. ig25@linux-fd1f:~/Downloads/pb05/lin/source> gfortran -mtune=native -march=native -fwhole-program -funroll-loops -Ofast aermod.f90 -o aermod /tmp/cc8bjCKX.o: In function `deplete_': aermod.f90:(.text+0x4ffb8): undefined reference to `qatr2_' aermod.f90:(.text+0x5003a): undefined reference to `qg2d2_' /tmp/cc8bjCKX.o: In function `prm_deplete_': aermod.f90:(.text+0x503a8): undefined reference to `qatr2_' aermod.f90:(.text+0x5042a): undefined reference to `qg2d2_' collect2: ld gab 1 als Ende-Status zurück ig25@linux-fd1f:~/Downloads/pb05/lin/source> gfortran -v Using built-in specs. COLLECT_GCC=gfortran COLLECT_LTO_WRAPPER=/home/ig25/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../trunk/configure --prefix=/home/ig25 --enable-languages=c,fortran --with-mpc=/usr/local --with-mpfr=/usr/local Thread model: posix gcc version 4.7.0 20110416 (experimental) (GCC)