Libstdc++-v3 vs darwin vs weak support

2005-03-15 Thread Paolo Carlini
Hi, in March 2004 we added to many libstdc++-v3 testcases lines similar to #if !__GXX_WEAK__ && _MT_ALLOCATOR_H // Explicitly instantiate for systems with no COMDAT or weak support. template class __gnu_cxx::__mt_alloc >; #endif AFAIK, only in order to avoid spurious failures on darwin. I'd like to

Re: Libstdc++-v3 vs darwin vs weak support

2005-03-15 Thread Geoffrey Keating
Paolo Carlini <[EMAIL PROTECTED]> writes: > Hi, > > in March 2004 we added to many libstdc++-v3 testcases lines similar to > > #if !__GXX_WEAK__ && _MT_ALLOCATOR_H > // Explicitly instantiate for systems with no COMDAT or weak support. > template class __gnu_cxx::__mt_alloc >; > #endif > > AFAI

Re: Libstdc++-v3 vs darwin vs weak support

2005-03-15 Thread Paolo Carlini
Geoffrey Keating wrote: Darwin now has weak/comdat support, so it doesn't need or use this any more. Ah, great, I suspected that... However, AIX does need them, I think. Humpf, forgot AIX! David Edelsohn?!? Thanks, Paolo.

Re: Libstdc++-v3 vs darwin vs weak support

2005-03-15 Thread Andrew Pinski
On Mar 15, 2005, at 7:35 PM, Paolo Carlini wrote: Geoffrey Keating wrote: Darwin now has weak/comdat support, so it doesn't need or use this any more. Ah, great, I suspected that... However, AIX does need them, I think. Humpf, forgot AIX! David Edelsohn?!? There are other targets other than aix t

Re: Libstdc++-v3 vs darwin vs weak support

2005-03-15 Thread Paolo Carlini
Andrew Pinski wrote: There are other targets other than aix that still need them too. Almost all non elf targets (and there might be some elf targets too). AIX 5.1 supports weak symbols (IIRC) and should work without the "hack" but older AIX still should be supported. Thanks Andrew for the info. Wh

Re: Libstdc++-v3 vs darwin vs weak support

2005-03-15 Thread Andrew Pinski
On Mar 15, 2005, at 8:01 PM, Paolo Carlini wrote: Andrew Pinski wrote: There are other targets other than aix that still need them too. Almost all non elf targets (and there might be some elf targets too). AIX 5.1 supports weak symbols (IIRC) and should work without the "hack" but older AIX still

Re: Libstdc++-v3 vs darwin vs weak support

2005-03-15 Thread David Edelsohn
> Paolo Carlini writes: >> However, AIX does need them, I think. >> Paolo> Humpf, forgot AIX! David Edelsohn?!? AIX probably needs this support indefinitely. If I remember correctly, the new allocator does not work on AIX due to ELF-like assumptions about the order of global constru

Re: Libstdc++-v3 vs darwin vs weak support

2005-03-15 Thread Benjamin Kosnik
> I'd like to know from the maintainers (or other knowledgeable people) > which is the current situation, whether those explicit instantiations > are still needed. I'm asking because I mean to move from v7 to mainline > a bunch of similar testcases... I think you should kill these bits, for a

Re: Libstdc++-v3 vs darwin vs weak support

2005-03-16 Thread Paolo Carlini
Benjamin Kosnik wrote: I'd like to know from the maintainers (or other knowledgeable people) which is the current situation, whether those explicit instantiations are still needed. I'm asking because I mean to move from v7 to mainline a bunch of similar testcases... I think you should kill