diff options
author | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-12 06:09:15 +0000 |
---|---|---|
committer | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-12 06:09:15 +0000 |
commit | f0c2775be8ce5a67a78d0dfeb73e7d453f01ecde (patch) | |
tree | 0ab8d16523fbcbfca756131fa06162d509f6269a /gcc/cpplib.h | |
parent | 341d741a3af8b4279db76596621dee08ddac7c72 (diff) | |
download | gcc-f0c2775be8ce5a67a78d0dfeb73e7d453f01ecde.tar.gz |
Don't warn on dollars in builtin macro definitions,
e.g. __REGISTER_PREFIX__.
* cpphash.h (struct cpp_reader): Move member warn_dollars...
* cpplib.h (struct cpp_options): ...to here. Change type to
unsigned char.
* cppinit.c (cpp_create_reader): Set it to 1 here.
(post_options): Don't set it here.
* c-opts.c (c_common_init_options): Reset it to 0 here.
(finish_options): Set it here.
* cpplex.c (forms_identifier_p): Tweak for new location of
warn_dollars.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67824 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index a47a7fbf077..45142527ea2 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -300,6 +300,10 @@ struct cpp_options /* Zero means dollar signs are punctuation. */ unsigned char dollars_in_ident; + /* True if we should warn about dollars in identifiers or numbers + for this translation unit. */ + unsigned char warn_dollars; + /* Nonzero means warn if undefined identifiers are evaluated in an #if. */ unsigned char warn_undef; |