diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-05-17 20:29:34 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-05-17 20:29:34 +0000 |
commit | b1822ccc44ac015fac2558ca151fa6154bd66880 (patch) | |
tree | cc833b5eaad739137055c876d152a481427bc136 /gcc/doc/cpp.texi | |
parent | a69e127ba7e8e92dee6620fd692672955247b51b (diff) | |
download | gcc-b1822ccc44ac015fac2558ca151fa6154bd66880.zip gcc-b1822ccc44ac015fac2558ca151fa6154bd66880.tar.gz gcc-b1822ccc44ac015fac2558ca151fa6154bd66880.tar.bz2 |
c-common.c, c-common.h (dollars_in_ident): Remove.
* c-common.c, c-common.h (dollars_in_ident): Remove.
* c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
(c_common_init_options, c_common_decode_option): Set dollars_in_ident.
* cpphash.h (warned_dollar): Rename warn_dollars.
* cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
Permit dollars regardless of -std=.
(post_options): Set warn_dollars.
* cpplex.c (forms_identifier_p): Use warn_dollars.
* config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
* doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
Update documentation.
testsuite:
* gcc.dg/dollar.c: New test.
From-SVN: r66911
Diffstat (limited to 'gcc/doc/cpp.texi')
-rw-r--r-- | gcc/doc/cpp.texi | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/doc/cpp.texi b/gcc/doc/cpp.texi index 62da31f..d1ade81 100644 --- a/gcc/doc/cpp.texi +++ b/gcc/doc/cpp.texi @@ -3706,6 +3706,24 @@ execution character set. Currently, GNU cpp only supports character sets that are strict supersets of ASCII, and performs no translation of characters. +@item Identifier characters. +@anchor{Identifier characters} + +The C and C++ standards allow identifiers to be composed of @samp{_} +and the alphanumeric characters. C++ and C99 also allow universal +character names (not implemented in GCC), and C99 further permits +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. + +You can override the default with @option{-fdollars-in-identifiers} or +@option{fno-dollars-in-identifiers}. @xref{fdollars-in-identifiers}. + @item Non-empty sequences of whitespace characters. In textual output, each whitespace sequence is collapsed to a single |