This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
`$' in identifiers -vs- PPC Linux
- To: Gcc Bug List <bug-gcc at gnu dot org>
- Subject: `$' in identifiers -vs- PPC Linux
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 30 Aug 2000 14:45:05 -0600
- Reply-To: tromey at cygnus dot com
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