__CD / __CT / __FL naming collision?

Alexandre Petit-Bianco apbianco@cygnus.com
Mon Feb 11 10:40:00 GMT 2002

Tom Tromey writes:
> >>>>> "Adam" == Adam Megacz <gcj@lists.megacz.com> writes:
> >> We should use counts, like the ABI does elsewhere.  For example:
> >> __CD3org3foo4bar_3baz
> Adam> Is there a function in gcc that will mangle an arbitrary string?
> Not as such.  There is some code in java/mangle.c and
> java/mangle_name.c, but I haven't looked at it in depth and I
> couldn't tell you how generic it is.

I would try to use mangle_name.c:append_gpp_mangled_name. Read
mangle.c:java_mangle_decl and see how it gets to call
mangle_member_name, which in turn calls append_gpp_mangled_name.


More information about the Java mailing list