This is the mail archive of the gcc-bugs@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]

Re: `$' in identifiers -vs- PPC Linux


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>

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