This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: .weak vs. C++ templates. was: SCO 5.0.2 error


> To: Mike Stump <mrs@windriver.com>
> From: Jason Merrill <jason@cygnus.com>
> Date: 02 Nov 1999 23:38:10 -0800

> The thing is, the change also benefits systems that do support weak
> followed by strong symbols; now all template instantiations will be
> .linkonce, so we'll only get one copy.  Before, if there was an
> explicit instantiation, we might have gotten two.

Ah, interesting feature, thanks for the explanation.  Could we have
the explicit instantiation in a link once section, with a real
definition (non-weak)?  I guess I was thinking that would be possible,
but I've never tried it.

Anyway, this is a very small issue that I don't have a strong
preference for.  I defer to you and Mark on template stuff.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]