Bad performance of g++ on HP-UX???

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Sun Oct 31 23:03:00 GMT 1999


> P.S. Any detailed documentation somewhere (except for the source code ;-) )
>      about how this iterative template instantiation works?

Well, what do you want to know? With -frepo, gcc does not perform
implicit template instantiation. As a result, symbols are missing
during linking. collect2 collects these symbols from the linker error
messages, and writes them into files. 

Then collect2 invokes gcc again, which now also considers the
repository, and instantiates the templates mentioned in the
repository. This, in turn, might result in more
instantiations. Eventually, you reach the linear closure, at which
point the linking is successful.

Regards,
Martin



More information about the Gcc-bugs mailing list