public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/36274]  New: Please improve usage of template libs.
@ 2008-05-20  9:02 bursig at gmail dot com
  2008-05-20 12:42 ` [Bug c++/36274] " rguenth at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: bursig at gmail dot com @ 2008-05-20  9:02 UTC (permalink / raw)
  To: gcc-bugs

Currently when we want use template libs approach (and not instance template in
all *.o files where it is included) we have to use -fno-implicit-templates
flag. The problem is that this flag change total g++ behavior and "nuke" all
templates which is problematic when we want store only own templates in own
libs.

Please consider "port" Sun CC functionality which allow fetching templates from
external library (*.a/*.so/*.o) during compilation phase via "-instlib" flag.
This flag request on compiler to not emit code for instantiated implicitly
(i.e. by use) templates found in directed libs (-inslib=libXXX.a) and leave
resolving of those code to linker. All libs/objects files added in -instlib=xxx
flag have to be link with target. 

Such functionality will nice improve build time of project which heavily use
templates from external libs (like on Sun CC) and not force us to totally
change project like for -fno-implicit-templates flag.

*.o files (example pch.o):
 - compiler should fetch global and local symbols list.

*.a files:
 - compiler should fetch global and local symbols list.

*.so
 - compiler should fetch global symbols list.


-- 
           Summary: Please improve usage of template libs.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bursig at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36274


^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <bug-36274-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2021-09-01  8:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-20  9:02 [Bug c++/36274] New: Please improve usage of template libs bursig at gmail dot com
2008-05-20 12:42 ` [Bug c++/36274] " rguenth at gcc dot gnu dot org
2008-05-20 13:11 ` pinskia at gcc dot gnu dot org
2008-05-20 16:07 ` bursig at gmail dot com
2008-05-20 16:22 ` bursig at gmail dot com
     [not found] <bug-36274-4@http.gcc.gnu.org/bugzilla/>
2021-08-31 21:30 ` pinskia at gcc dot gnu.org
2021-09-01  8:23 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).