This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Java: Don't mangle "$" characters in identifier names
- To: tromey at redhat dot com
- Subject: Re: Java: Don't mangle "$" characters in identifier names
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Tue, 13 Mar 2001 09:07:29 +1300
- CC: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- References: <3AAC4A74.CE98E00@albatross.co.nz> <87k85u6fu3.fsf@creche.redhat.com>
Tom Tromey wrote:
> Bryce> This patch changes GCJ to not do this mangling, matching the
> Bryce> behaviour of C++. If the C++ compiler is correct here, and "$"
> Bryce> should never be mangled, then the $ code should be removed
> Bryce> entirely from GCJ. Can anyone comment on this?
>
> NO_DOLLAR_IN_LABEL means that the assembler can't accept $ in a
> label. If the C++ compiler ignores this then I imagine it will simply
> fail to work on such platforms.
Yeah, but why is NO_DOLLAR_IN_LABEL defined for linux? Obviously, it works
fine with the GNU assembler.
> I think updating the C++ compiler is the right approach.
I agree. I have pending libjava changes which depend on this working.
regards
[ bryce ]