From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27885 invoked by alias); 1 May 2010 14:53:57 -0000 Received: (qmail 27831 invoked by uid 48); 1 May 2010 14:53:42 -0000 Date: Sat, 01 May 2010 14:53:00 -0000 Message-ID: <20100501145342.27830.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/43729] Mach-O LTO support needed for darwin In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" 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-05/txt/msg00038.txt.bz2 ------- Comment #21 from rguenth at gcc dot gnu dot org 2010-05-01 14:53 ------- + /* ??? Some targets need to handle LTO assembler output specially. + Is this the right place to hanlde that? */ + if (flag_generate_lto) yes. + if (flag_generate_lto) + targetm.asm_out.lto_end (); should be right after ipa_write_summaries + /* FIXME Need to document this. */ off_t offset; this is the offset for the ELF object inside an ar archive file (or zero) - +if(1) return true; eh? Not looking at the darwin / mach-o specific parts this looks good to me. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43729