This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: __CD / __CT / __FL naming collision?


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.

./A


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