`$' in identifiers -vs- PPC Linux

Geoff Keating geoffk@cygnus.com
Wed Aug 30 17:58:00 GMT 2000


Tom Tromey <tromey@cygnus.com> writes:

> Alexandre> I'm bitten by this problem on AIX 4.1, when compiling
> Alexandre> libgcj.  It would be nice if g++ could somehow mangle `$'
> Alexandre> so as to accept it in source-code (even if with
> Alexandre> -fdollars-in-identifiers) even if the assembler can't
> Alexandre> accept them directly.
> 
> Yes.  For instance it could mangle them the way that gcj already
> mangles non-ASCII characters that are valid in Java identifiers.

It'd be good to move this code into the language-independent parts of
the compiler, because it'll be needed even for C mangling of \u escapes
in identifiers.

I also have no objection to moving DOLLARS_IN_IDENTIFIERS into aix.h
if someone wants to generate a patch.  The native assembler on all the
ppc sysv stuff is GNU as, which should be OK with $, and it's probably
better to be consistent between linuxes.
-- 
- Geoffrey Keating <geoffk@cygnus.com>


More information about the Gcc-bugs mailing list