This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: V3 PATCH: Static data members
>>>>> "Marc" == Marc Espie <espie@quatramaran.ens.fr> writes:
> In article <or3dgs7l3u.fsf@guarana.lsd.ic.unicamp.br> you write:
>> IIRC, it *does* allocate storage when the data member is defined
>> (except in case of AIX and other non-ELF platforms),
> Worrying slant.
> I don't like at all stuff that says `it works everywhere (except on non-ELF
> platforms).'
Correction: It should work everywhere that supports_one_only() is true
(i.e. has weak symbols or COMDAT). I believe this is true of all
platforms that use the GNU linker, and some that don't, though most
a.out targets still need ASM_WEAKEN_LABEL. Looks like it should work
fine on *BSD.
Jason