summaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-23 18:29:53 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-23 18:29:53 +0000
commitdb54da8f470636a08c22974aabaade9905819e02 (patch)
tree3fe31f794ed65258db6a4470f10e576076b9829d /gcc/cpphash.h
parent712cff1d14ea0559e6d70c62ef5133e43624d8b2 (diff)
downloadgcc-db54da8f470636a08c22974aabaade9905819e02.tar.gz
* cpphash.h (IN_I): New flag for directive table.
* cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and #pragma with IN_I. (_cpp_check_directive): If -fpreprocessed, execute directives marked with IN_I. Issue no warnings in this case. * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35918 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r--gcc/cpphash.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h
index b2f5c1dd619..23e1d813b0b 100644
--- a/gcc/cpphash.h
+++ b/gcc/cpphash.h
@@ -66,11 +66,14 @@ struct answer
conditional. EXPAND means that macros are to be expanded on the
directive line. INCL means to treat "..." and <...> as
q-char-sequence and h-char-sequence respectively. COMMENTS means
- preserve comments in the directive if -C. */
+ preserve comments in the directive if -C. IN_I means this directive
+ should be handled even if -fpreprocessed is in effect (these are the
+ directives with callback hooks). */
#define COND (1 << 0)
#define EXPAND (1 << 1)
#define INCL (1 << 2)
#define COMMENTS (1 << 3)
+#define IN_I (1 << 4)
/* Defines one #-directive, including how to handle it. */
typedef void (*directive_handler) PARAMS ((cpp_reader *));