From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18616 invoked by alias); 24 Jul 2010 14:08:27 -0000 Received: (qmail 18541 invoked by uid 48); 24 Jul 2010 14:08:11 -0000 Date: Sat, 24 Jul 2010 14:08:00 -0000 Message-ID: <20100724140811.18540.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/40011] Problems with -fwhole-file In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-07/txt/msg02641.txt.bz2 ------- 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