Jerry Quinn wrote:
> On Tue, 2009-08-18 at 08:43 -0700, Richard Henderson wrote:
>> On 08/17/2009 07:40 PM, Jerry Quinn wrote:
>>> On Mon, 2009-08-17 at 16:16 -0400, Jason Merrill wrote:
>>>> I'm not sure why GCC sources would need to mangle function-local
>>>> structs, though.
>> Would it be helpful to reserve a leading character (say, "*") that means
>> that strcmp should not apply, but rather pointer identity? Thus a class
>> foo that is intended to be local, as opposed to forced local via
>> RTLD_LOCAL, can just use "*foo" and not have to bother with mangling?
>
> I took a (very naive) swing at implementing this. I made the change in
> my copy of r149964 to avoid the possibility of other issues interfering.
> Apparently my change is too naive, because the assembler doesn't like a
> name with '*' in it. Are there any chars that can pass muster with
> assemblers but not be a valid namespace identifier?
Don't you just want to arrange things so that the asterisk ends up in the
typeinfo name string but not in the asm name?
cheers,
DaveK