From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22808 invoked by alias); 4 Jun 2013 11:36:02 -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 Received: (qmail 22764 invoked by uid 55); 4 Jun 2013 11:35:59 -0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/47333] [4.8 regression] g++.dg/lto/20091219 FAILs on Solaris 2 with SUN as Date: Tue, 04 Jun 2013 11:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-06/txt/msg00165.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47333 --- Comment #39 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #36 from Jan Hubicka --- > I am having problem to reproduce it on a cross compiler. I assume you have > non-plugin-enable LD setup, right? The failure happens with both Sun as/Sun ld (i.e. no plugin support) and Sun as/GNU ld 2.23.1 (i.e. with linker plugin support). > There is problem with chained weakrefs that ought to be fixed by the following > change: > Index: cgraphunit.c > =================================================================== > --- cgraphunit.c (revision 199591) > +++ cgraphunit.c (working copy) > @@ -656,8 +656,11 @@ cgraph_process_same_body_aliases (void) > @@ -2018,7 +2021,7 @@ compile (void) > (DECL_ASSEMBLER_NAME (node->symbol.decl)) = 1; > TREE_CHAIN (DECL_ASSEMBLER_NAME (node->symbol.decl)) > = (node->symbol.alias_target ? node->symbol.alias_target > - : DECL_ASSEMBLER_NAME (symtab_alias_target (node)->symbol.decl)); > + : DECL_ASSEMBLER_NAME (symtab_alias_ultimate_target > (node)->symbol.decl)); > } > #endif > > > I however do not see any chained weakrefs in the preprocessed file attached, so > I am not quite convinced this can change anything. > > Can you, please, run it in debugger and take a look what is the assembler name > ultimate_target is called for and what is its CHAIN_DECL? I can try if this is still beneficial given that mainline seems to work fine. Rainer