From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19580 invoked by alias); 9 Oct 2010 22:17:23 -0000 Received: (qmail 19571 invoked by uid 22791); 9 Oct 2010 22:17:23 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID 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; Sat, 09 Oct 2010 22:17:20 +0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/45957] [4.6 Regression] g++.dg/ext/fnname3.C FAILs with -flto/-fwhopr X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: lto, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: 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 Date: Sat, 09 Oct 2010 22:17:00 -0000 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-10/txt/msg00819.txt.bz2 Message-ID: <20101009221700.v94jFgkYLhzKLtGH3F8QgSUEdaiGGwdmhGucNlTnUaw@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45957 --- Comment #1 from Zdenek Sojka 2010-10-09 22:17:15 UTC --- The same happens for g++.dg/template/pretty1.C and g++.old-deja/g++.ext/pretty2.C - both fail with -flto/-fwhopr in r165220, but not in r165152. It seems __FUNCTION__ and __PRETTY_FUNCTION__ is broken too in constructors and destructors. g++.old-deja/g++.ext/pretty2.C actually gives nice output: $ g++ g++.old-deja/g++.ext/pretty2.C && ./a.out ctor __FUNCTION__ X __PRETTY_FUNCTION__ X::X() member fn __FUNCTION__ fn __PRETTY_FUNCTION__ void X::fn() conversion __FUNCTION__ operator int __PRETTY_FUNCTION__ X::operator int() dtor __FUNCTION__ ~X __PRETTY_FUNCTION__ X::~X() $ g++ g++.old-deja/g++.ext/pretty2.C -flto && ./a.out ctor __FUNCTION__ __PRETTY_FUNCTION__ member fn __FUNCTION__ fn __PRETTY_FUNCTION__ void X::fn() conversion __FUNCTION__ operator int __PRETTY_FUNCTION__ X::operator int() dtor __FUNCTION__ __PRETTY_FUNCTION__