public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/48644] New: aermod fails to link with -fwhole-program
@ 2011-04-16 20:49 tkoenig at gcc dot gnu.org
2011-04-16 21:55 ` [Bug fortran/48644] " tkoenig at gcc dot gnu.org
2011-04-16 23:42 ` dominiq at lps dot ens.fr
0 siblings, 2 replies; 3+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2011-04-16 20:49 UTC (permalink / raw)
To: gcc-bugs
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: unassigned@gcc.gnu.org
ReportedBy: tkoenig@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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/48644] aermod fails to link with -fwhole-program
2011-04-16 20:49 [Bug fortran/48644] New: aermod fails to link with -fwhole-program tkoenig at gcc dot gnu.org
@ 2011-04-16 21:55 ` tkoenig at gcc dot gnu.org
2011-04-16 23:42 ` dominiq at lps dot ens.fr
1 sibling, 0 replies; 3+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2011-04-16 21:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48644
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-04-16 21:55:18 UTC ---
The patch for PR 48624 at
http://gcc.gnu.org/ml/fortran/2011-04/msg00166.html
also fixes this one, so it's probably a duplicate.
*** This bug has been marked as a duplicate of bug 48624 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/48644] aermod fails to link with -fwhole-program
2011-04-16 20:49 [Bug fortran/48644] New: aermod fails to link with -fwhole-program tkoenig at gcc dot gnu.org
2011-04-16 21:55 ` [Bug fortran/48644] " tkoenig at gcc dot gnu.org
@ 2011-04-16 23:42 ` dominiq at lps dot ens.fr
1 sibling, 0 replies; 3+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-04-16 23:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48644
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-04-16 23:42:03 UTC ---
For the record,
(1) -fwhole-program is enough to see the problem,
(2) it does not occurs if used with -flto (this is why I did not see it),
(3) it does not occurs at r170284, but it does at r170493 (likely r170414),
(4) I confirm it is fixed by the patch for pr48624
(http://gcc.gnu.org/ml/fortran/2011-04/msg00166.html ).
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-04-16 23:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-16 20:49 [Bug fortran/48644] New: aermod fails to link with -fwhole-program tkoenig at gcc dot gnu.org
2011-04-16 21:55 ` [Bug fortran/48644] " tkoenig at gcc dot gnu.org
2011-04-16 23:42 ` dominiq at lps dot ens.fr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).