[Bug fortran/40011] Problems with -fwhole-file

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Jul 24 14:08:00 GMT 2010



------- Comment #67 from burnus at gcc dot gnu dot org  2010-07-24 14:08 -------
 (In reply to comment #66)
> > Failure with -fwhole-file:
> >   /tmp/ccN7F1tB.o: In function `__mod_MOD_four':
> >   test.f90:(.text+0x3): undefined reference to `one_'
> 
> To diagnose these kind of problems look at -fdump-tree-original-uid
> and/or -fdump-ipa-cgraph.  You'll see if the middle-end thinks
> you have two different entities for one function or variable.

Thanks for suggestion; I try to remember it for debugging the -fwhole-program
issues for which it should be very useful. Though, in this case there is only
one UID for "one" - for the external call. The function itself not even
generated without the patch. Thus, the linker error says it all :-)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40011



More information about the Gcc-bugs mailing list