This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: Removing space waste for g++ static inlined objects


>>>>> "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


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