From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18411 invoked by alias); 4 Jul 2011 17:25:14 -0000 Received: (qmail 18395 invoked by uid 22791); 4 Jul 2011 17:25:13 -0000 X-SWARE-Spam-Status: No, hits=-2.7 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; Mon, 04 Jul 2011 17:24:58 +0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/49568] [4.7 regression] g++.dg/torture/pr41257-2.C FAILs to link on Tru64 UNIX X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: link-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.0 X-Bugzilla-Changed-Fields: 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 Date: Mon, 04 Jul 2011 17:25: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: 2011-07/txt/msg00250.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49568 --- Comment #9 from ro at CeBiTec dot Uni-Bielefeld.DE 2011-07-04 17:24:39 UTC --- > The following patch should fix the problem: > Index: ipa.c > =================================================================== > --- ipa.c (revision 175748) > +++ ipa.c (working copy) > @@ -871,9 +871,9 @@ function_and_variable_visibility (bool w > > We also need to arrange the thunk into the same comdat group as > the function it reffers to. */ > + DECL_COMDAT (node->decl) = DECL_COMDAT (decl_node->decl); > if (DECL_ONE_ONLY (decl_node->decl)) > { > - DECL_COMDAT (node->decl) = DECL_COMDAT (decl_node->decl); > DECL_COMDAT_GROUP (node->decl) = DECL_COMDAT_GROUP > (decl_node->decl); > if (DECL_ONE_ONLY (decl_node->decl) && !node->same_comdat_group) > { It does indeed and introduces no regressions. Thanks. Rainer