From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11223 invoked by alias); 18 Apr 2011 16:50:46 -0000 Received: (qmail 11212 invoked by uid 22791); 18 Apr 2011 16:50:45 -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; Mon, 18 Apr 2011 16:50:32 +0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/47333] [4.6 regression] g++.dg/lto/20091219 FAILs on Solaris 2 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.1 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, 18 Apr 2011 16:50: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-04/txt/msg01909.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47333 --- Comment #13 from Rainer Orth 2011-04-18 16:49:29 UTC --- I've now compared the assembler output on i386-pc-solaris2.11 with Sun as and gas: with as, the g++-dg-lto-20091219-01.ltrans0.s file has a call to call _ZL20__gthrw_pthread_onceP5_oncePFvvE.2086.2083 but only defines .weak pthread_once With gas instead, I have call _ZL20__gthrw_pthread_onceP5_oncePFvvE.2086.2086 .weakref _ZL20__gthrw_pthread_onceP5_oncePFvvE.2086.2086,pthread_once Sun as has no .weakref support. I'm attaching the assembler outputs both with as and gas. Rainer