This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [java/c++/rfc] avoid plt references to cni methods


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


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