From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19251 invoked by alias); 12 Mar 2011 18:38:15 -0000 Received: (qmail 19239 invoked by uid 22791); 12 Mar 2011 18:38:14 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_BJ 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; Sat, 12 Mar 2011 18:37:27 +0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/48094] ld: warning: section has unexpectedly large size errors in objc/obj-c++ lto 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: iains at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status 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: Sat, 12 Mar 2011 18:38: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-03/txt/msg01269.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48094 Iain Sandoe changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #3 from Iain Sandoe 2011-03-12 18:34:51 UTC --- (In reply to comment #2) > (b) the second needs more checking - the tests pass on darwin9 (and darwin10 > with 3.2.5 - last time I tried) it looks like the .lazy_reference to . objc_class_name_myRootObject is getting dropped somewhere; in this instance, because the code is self-contained, it works OK (when ld doesn't barf). ... in other cases in the test-suite, the only external object is usually "Object" which is in libobjc and therefore it also works. I have an idea about getting rid of the TARGET_ASM method to make these references and use a real variable to carry the information (just make it zero-sized, and use that + a meta-data tag to emit the efficient asm). I was intending to make that a stage-1 investigation -- but perhaps it might warrant trying sooner.