[Bug c++/36274] Please improve usage of template libs.

bursig at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue May 20 16:07:00 GMT 2008



------- 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



More information about the Gcc-bugs mailing list