aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2003-05-19 22:15:57 +0000
committerNeil Booth <neil@gcc.gnu.org>2003-05-19 22:15:57 +0000
commit42ad6c9eb3df4eacb2c38444a66d2c5c34fabaf7 (patch)
treea55e2161334ad417cb789d6f6d00acd9201ebc78 /gcc
parent4b6fe6b647a19169aa11bd1812b69d19b0abdabb (diff)
downloadgcc-42ad6c9eb3df4eacb2c38444a66d2c5c34fabaf7.zip
gcc-42ad6c9eb3df4eacb2c38444a66d2c5c34fabaf7.tar.gz
gcc-42ad6c9eb3df4eacb2c38444a66d2c5c34fabaf7.tar.bz2
c-opts.c (c_common_decode_option): Don't accept dollars as identifier characters in assembly.
* c-opts.c (c_common_decode_option): Don't accept dollars as identifier characters in assembly. * doc/cpp.texi: Document this. From-SVN: r66976
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/c-opts.c1
-rw-r--r--gcc/doc/cpp.texi9
3 files changed, 13 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1411b91..5abb227 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2003-05-19 Neil Booth <neil@daikokuya.co.uk>
+
+ * c-opts.c (c_common_decode_option): Don't accept dollars
+ as identifier characters in assembly.
+ * doc/cpp.texi: Document this.
+
2003-05-19 Seth Arnold <sarnold@wirex.com>
Aldy Hernandez <aldyh@redhat.com>
diff --git a/gcc/c-opts.c b/gcc/c-opts.c
index 49189c4d2..7d4c0e5 100644
--- a/gcc/c-opts.c
+++ b/gcc/c-opts.c
@@ -1399,6 +1399,7 @@ c_common_decode_option (argc, argv)
case OPT_lang_asm:
cpp_set_lang (parse_in, CLK_ASM);
+ cpp_opts->dollars_in_ident = false;
break;
case OPT_lang_objc:
diff --git a/gcc/doc/cpp.texi b/gcc/doc/cpp.texi
index 63ac814..4a41a46 100644
--- a/gcc/doc/cpp.texi
+++ b/gcc/doc/cpp.texi
@@ -3720,9 +3720,12 @@ implementation-defined characters.
GCC allows the @samp{$} character in identifiers as an extension for
most targets. This is true regardless of the @option{std=} switch,
since this extension cannot conflict with standards-conforming
-programs. Currently the targets that by default do not permit
-@samp{$} are AVR, IP2K, MMIX, MIPS Irix 3, ARM aout, and PowerPC
-targets for the AIX and BeOS operating systems.
+programs. When preprocessing assembler, however, dollars are not
+identifier characters by default.
+
+Currently the targets that by default do not permit @samp{$} are AVR,
+IP2K, MMIX, MIPS Irix 3, ARM aout, and PowerPC targets for the AIX and
+BeOS operating systems.
You can override the default with @option{-fdollars-in-identifiers} or
@option{fno-dollars-in-identifiers}. @xref{fdollars-in-identifiers}.