This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [java/c++/rfc] avoid plt references to cni methods
- From: Ian Lance Taylor <ian at airs dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: java-patches at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: 24 May 2005 17:38:24 -0400
- Subject: Re: [java/c++/rfc] avoid plt references to cni methods
- References: <20050524211342.GA22147@redhat.com>
Richard Henderson <rth@redhat.com> writes:
> I've somewhat arbitrarily chosen to extend the mangling grammar:
>
> <special_name> := HA <encoding>
>
> where "HA" stands for "hidden alias". It's not inconcievable that
> such aliases could be useful in other cases. In any event, it seemed
> safer to inject myself into a logical point in the grammar like this
> than invent my own private prefix/suffix which could just as easily
> conflict with other symbols.
It seems like we need a patch to libiberty/cp-demangle.c to demangle
these names, presumably in the function d_special_name. At least,
that would be right if the fully mangled name will be _ZHA.... It
could be made conditional on (di->options & DMGL_JAVA) if that seems
appropriate.
Ian