From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4003 invoked by alias); 20 May 2008 16:07:46 -0000 Received: (qmail 24690 invoked by uid 48); 20 May 2008 16:07:02 -0000 Date: Tue, 20 May 2008 16:07:00 -0000 Message-ID: <20080520160702.24689.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/36274] Please improve usage of template libs. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "bursig at gmail 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: 2008-05/txt/msg01559.txt.bz2 ------- Comment #3 from bursig at gmail dot com 2008-05-20 16:07 ------- (In reply to comment #1) > -frepo is/was supposed to deal with this > As I know -frepo simple force -fno-implicit-templates which rip all template instantion from all objects and produce additional special files which are needed for new/additional pre-link compiler call which inject missing implementation. I'm not expert here but I suppose that gcc will simple build it even some of those symbols will be available during link. Sun propose simpler methodology... compiler know during build phase (via -instlib) what (and what not) templates instance will be available during link and simple don't emit code for it. There is no special pre-link phase, no special files only normal linking (and unknown symbols when you don't and proper -llibs flags). As I know Sun CC per-default add stl implementation library via -instlib which reduce build time of know/"prebuild in lib" stl templates instantions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36274