aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2003-05-17 20:29:34 +0000
committerNeil Booth <neil@gcc.gnu.org>2003-05-17 20:29:34 +0000
commitb1822ccc44ac015fac2558ca151fa6154bd66880 (patch)
treecc833b5eaad739137055c876d152a481427bc136 /gcc/cpphash.h
parenta69e127ba7e8e92dee6620fd692672955247b51b (diff)
downloadgcc-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/cpphash.h')
-rw-r--r--gcc/cpphash.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h
index 210380e..aa5eec4 100644
--- a/gcc/cpphash.h
+++ b/gcc/cpphash.h
@@ -378,9 +378,9 @@ struct cpp_reader
cpp_token avoid_paste;
cpp_token eof;
- /* True if we have already warned about dollars in identifiers or
- numbers for this buffer. */
- bool warned_dollar;
+ /* True if we should warn about dollars in identifiers or numbers
+ for this translation unit. */
+ bool warn_dollars;
/* Opaque handle to the dependencies of mkdeps.c. */
struct deps *deps;