This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Universal Character Names, v2
- From: Tom Tromey <tromey at redhat dot com>
- To: "Martin v. Löwis" <martin at v dot loewis dot de>
- Cc: gcc-patches at gcc dot gnu dot org, java at gcc dot gnu dot org
- Date: 02 Dec 2002 14:00:25 -0700
- Subject: Re: Universal Character Names, v2
- References: <200211282334.gASNYdTA004058@mira.informatik.hu-berlin.de>
- Reply-to: tromey at redhat dot com
>>>>> "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