summaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-08-23 18:29:53 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-08-23 18:29:53 +0000
commitbbdac7d00069c7bff149329b6cae418b1153f05d (patch)
tree3fe31f794ed65258db6a4470f10e576076b9829d /gcc/cpphash.h
parentd8eceea40c08e7f6edfdfa626261196f3ed984bf (diff)
downloadgcc-bbdac7d00069c7bff149329b6cae418b1153f05d.tar.gz
cpphash.h (IN_I): New flag for directive table.
* 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. From-SVN: r35918
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 *));