This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: __CD / __CT / __FL naming collision?
- From: Per Bothner <per at bothner dot com>
- To: Adam Megacz <gcj at lists dot megacz dot com>
- Cc: java at gcc dot gnu dot org
- Date: Fri, 01 Feb 2002 09:39:44 -0800
- Subject: Re: __CD / __CT / __FL naming collision?
- References: <86665jbb3z.fsf@megacz.com> <878zafrqms.fsf@creche.redhat.com> <86n0yv6oxa.fsf@megacz.com>
Adam Megacz wrote:
> Tom Tromey <tromey@redhat.com> writes:
>
>>>>>>>"Adam" == Adam Megacz <gcj@lists.megacz.com> writes:
>>>>>>>
>>Adam> class org.foo.bar_.baz => __CD_org_foo_bar__baz
>>Adam> class org.foo.bar._baz => __CD_org_foo_bar__baz
>>Adam> is this bad?
>>
>
>>I don't know enough about the overall mangling scheme to tell you a
>>guaranteed method to pick a safe name :-(
>>
>
> Are there any characters outside [0-9A-Z_$] which are legal in symbols
> on all platforms? Period ('.') certainly is not (mingw-gdb chokes on
> it). Pretty much any other character could be safely used as a
> replacement for '.'. I'll make the change if anybody knows of such a
> character.
We should use counts, like the ABI does elsewhere. For example:
__CD3org3foo4bar_3baz
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/