This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: New AIX libstdc++ testsuite regression20_util/allocator_members
- From: Mark Mitchell <mark at codesourcery dot com>
- To: David Edelsohn <dje at watson dot ibm dot com>, "bkoz at redhat dot com" <bkoz at redhat dot com>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 22 Apr 2002 16:13:24 -0700
- Subject: Re: New AIX libstdc++ testsuite regression20_util/allocator_members
- References: <200204222227.SAA31386@makai.watson.ibm.com>
--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