PATCH Re: mangling of '$' / DOLLARS_IN_IDENTIFIERS cleanup

Bryce McKinlay bryce@waitaki.otago.ac.nz
Mon Oct 22 20:39:00 GMT 2001


Adam Megacz wrote:

>Hi, all. I recently attempted to link code compiled with g++ to code
>compiled with gcj. Unfortunately, the link fails because, according to
>Bryce McKinlay (who was kind enough to let me quote this):
>
>>Its because gcj and g++ disagree on how the "$" symbol should be 
>>mangled. IIRC, the C++ guys agreed that it should do what gcj does 
>>(mangle it to a unicode symbol), but they never implemented it.
>>
> 
>[as discussed in http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01667.html]
>

On second thought, given that we use '$' as in "Foo.class$" anyway, 
there doesn't seem to be any reason why Java shouldn't use it for the 
nested class namespace separator too. The problem seems to stem from 
Java assuming that NO_DOLLAR_IN_LABEL meant that the target didn't 
support dollars in labels, which isn't actually the case. Rather, this 
patch changes it to assume a target will set DOLLARS_IN_IDENTIFIERS to 0 
if it really doesn't support '$' in identifiers.

OK to commit?

Bryce.




-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc-dollars-in-ident.patch
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20011022/8f2e5a91/attachment.ksh>


More information about the Java-patches mailing list