From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20527 invoked by alias); 24 May 2010 13:30:03 -0000 Received: (qmail 20362 invoked by uid 48); 24 May 2010 13:29:51 -0000 Date: Mon, 24 May 2010 13:30:00 -0000 Message-ID: <20100524132951.20361.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug lto/41376] collect2 does not handle static libraries In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "bmei at broadcom dot com" 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/msg02748.txt.bz2 ------- Comment #10 from bmei at broadcom dot com 2010-05-24 13:29 ------- annotating functions with externally_visible sounds a bit difficult to maintain. Programmer needs to know whether a function is used outside of LTO objects. This can change over time and extra efforts are needed to keep it correct. It would be better if GCC can derive that info with -fwhole-program, whether it is deal with LTO-object file only or LTO/Regular object files, since it should have all the symbol reference information by then. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41376