From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3916 invoked by alias); 24 Sep 2010 22:21:45 -0000 Received: (qmail 3905 invoked by uid 22791); 24 Sep 2010 22:21:44 -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; Fri, 24 Sep 2010 22:21:40 +0000 From: "sje at cup dot hp.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/45388] [4.6 Regression] Global constructor not found X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sje at cup dot hp.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.0 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: Fri, 24 Sep 2010 22:40: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-09/txt/msg02748.txt.bz2 Message-ID: <20100924224000.oiwqJTwQ2MystwSW0DwuCxWHnNYAYyFridC0JhVeolA@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45388 --- Comment #5 from Steve Ellcey 2010-09-24 22:21:38 UTC --- I have verified that the bug shows up in r163443. Looking at the assembly language differences between 163442 and 163443, both versions have _GLOBAL__I_65535_0__ZN2c12f6Ev, a global routine to call the static initializer (_Z41__static_initialization_and_destruction_0ii), but the new version also has _GLOBAL__I__ZN2c12f6Ev to call the static initializer and this routine is not global. If I change the assembly language code to change the GLOBAL__I__ZN2c12f6Ev function from static (.PARAM) to global (.EXPORT) then the code will compile. -- Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.