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]

`$' in identifiers -vs- PPC Linux


I'm using Linux on a PPC box:

    cachet. uname -a
    Linux cachet 2.2.6-15apmac #3 Sat Jul 31 13:57:00 EDT 1999 ppc unknown

By default g++ doesn't accept `$' in identifiers on this box.
However, it does accept them on my other Linux boxes (x86 and IA-64).
Is this a bug in the compiler?  I believe I tracked this behavior down
to this code in gcc/config/rs6000/rs6000.h:

    /* We define this to 0 so that gcc will never accept a dollar sign in a
       variable name.  This is needed because the AIX assembler will not accept
       dollar signs.  */

    #define DOLLARS_IN_IDENTIFIERS 0

Could we define this to `1' for Linux?  I personally would prefer that
all Linux ports work the same way.

Tom

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