This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Removing space waste for g++ static inlined objects
- To: "Ronald F. Guilmette" <rfg at monkeys dot com>
- Subject: Re: Removing space waste for g++ static inlined objects
- From: Jason Merrill <jason at redhat dot com>
- Date: 24 Feb 2001 09:45:09 +0000
- Cc: David Korn <dkorn at pixelpower dot com>, "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- References: <9272.982984021@monkeys.com>
>>>>> "Ronald" == Ronald F Guilmette <rfg@monkeys.com> writes:
>> Finally, we need to support calculating the discriminator properly for
>> non-types.
> Whatever you just said, it is Greek to me.
> Can you elucidate (please)?
>From my earlier response:
The v3 C++ ABI (http://reality.sgi.com/dehnert_engr/cxx/) deals with [the
possibility of multiple local statics with the same name] by specifying
that locals after the first get a number appended:
<local-name> := Z <function encoding> E <entity name> [<discriminator>]
<discriminator> := _ <non-negative number>
We don't currently handle calculating this number for non-types, which will
need to be fixed. This is already a potential problem on targets that
don't support weak symbols.
Jason