From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30245 invoked by alias); 26 Sep 2010 23:21:51 -0000 Received: (qmail 30236 invoked by uid 22791); 26 Sep 2010 23:21:50 -0000 X-SWARE-Spam-Status: No, hits=-2.3 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; Sun, 26 Sep 2010 23:21:47 +0000 From: "dave at hiauly1 dot hia.nrc.ca" 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: dave at hiauly1 dot hia.nrc.ca 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: Mon, 27 Sep 2010 10:39: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/msg02880.txt.bz2 Message-ID: <20100927103900.09XjTozxySifuE7iOlg2Ln_wPU5mEzq51UOktYXyEWM@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45388 --- Comment #7 from dave at hiauly1 dot hia.nrc.ca 2010-09-26 23:21:44 UTC --- Hi Steve, > I have a patch I am testing. It worked on the test case but I haven't fully > bootstrapped it. Keep plugging away on this. I have the sense that the breakage is intentional. I fought the same battle in 4.5, so Honza should be aware what's happened. I believe that he doesn't want the constructors to be global to improve interprocedurial optimisations. I'm sure this could be fixed with a target hook, but Honza doesn't really work on anything but x86. Regards, Dave