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: Universal Character Names, v2


>>>>> "Martin" == Martin v Löwis <martin@v.loewis.de> writes:

Martin> A few issues need to be resolved with the Java compiler:
Martin> - somehow, defining HAVE_AS_UTF8 (which the patch does) triggers
Martin>   bugs in the mangler; it will now emit symbols like
Martin>     _ZN4java4lang6Double8<clinit>Ev

Martin> I'd appreciate if some Java expert could help with resolving
Martin> the first issue; resolving the second one seems simple.

I'm replying since nobody else has.  I'm not really an expert in this
area.  In Java <init> and <clinit> are special internal methods.  My
guess -- I'm not that familiar with the mangler -- is that we
currently rely on the mangler to turn `<' and `>' into more acceptable
sequences.

`<init>' is the name of a constructor, so I think we mangle it
entirely differently (but I haven't checked).  We never generate
declarations for <clinit> in our CNI header files, and there is no way
to directly invoke this from C++.  So compatibility with the C++
compiler isn't an issue here.

Tom


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