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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New AIX libstdc++ testsuite regression20_util/allocator_members




--On Monday, April 22, 2002 06:27:28 PM -0400 David Edelsohn 
<dje@watson.ibm.com> wrote:

> 	I have done a little more investigating and the cause of the
> problem is the single line in stl_alloc.h:
>
> extern template class __default_alloc_template<true, 0>;

This is purely an optimization; there's no semantic reason that this
is necessary.  (It's a compile-time optimization, not a run-time 
optimization; all it says is "you needn't bother instantiating this
when you compile this header; I've already got a copy instantiated
somewhere else.")

So, I suggest just #ifdef'ing this on whether or not we're on AIX, if
that fixes the problem.  It's really an AIX-specific issue -- more than,
say, a support-for-weak-symbols issue -- in that it's got to do with
how the names are bound in the linker and such.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


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