From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5906 invoked by alias); 7 Dec 2011 20:35:50 -0000 Received: (qmail 5799 invoked by uid 22791); 7 Dec 2011 20:35:49 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Dec 2011 20:35:36 +0000 From: "nathan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/51449] [4.7 regression] Rev181994 causes tramp3d-v4 profiled build failure Date: Wed, 07 Dec 2011 20:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nathan at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.0 X-Bugzilla-Changed-Fields: Status Last reconfirmed Ever Confirmed Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2011-12/txt/msg00805.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51449 Nathan Sidwell changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2011-12-07 Ever Confirmed|0 |1 --- Comment #2 from Nathan Sidwell 2011-12-07 20:35:18 UTC --- Crud, not doing very well, am I? Here's a reduced testcase: template struct TPL { int Baz (); int Foo () { return Baz (); } }; extern template struct TPL; void Bar (TPL *ptr) { ptr->Foo (); } nathan@cartagia:53>./cc1plus -fprofile-arcs tpl.ii -Ofast nathan@cartagia:53>grep gcov0 tpl.s addl $1, __gcov0__Z3BarP3TPLIcE adcl $0, __gcov0__Z3BarP3TPLIcE+4 addl $1, __gcov0__ZN3TPLIcE3FooEv adcl $0, __gcov0__ZN3TPLIcE3FooEv+4 addl $1, __gcov0__ZN3TPLIcE3FooEv+8 adcl $0, __gcov0__ZN3TPLIcE3FooEv+12 addl $1, __gcov0__Z3BarP3TPLIcE+8 adcl $0, __gcov0__Z3BarP3TPLIcE+12 .local __gcov0__Z3BarP3TPLIcE .comm __gcov0__Z3BarP3TPLIcE,16,8 .long __gcov0__Z3BarP3TPLIcE Notice __gcov0__ZN3TPLIcE3FooEv is referenced but not defined.