diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1997-04-13 12:50:11 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1997-04-13 12:50:11 -0400 |
commit | 6ac34fdc71a8253c228368453376bfc27032b851 (patch) | |
tree | 663801bd523efe77731c123597e598dbecf27b41 /gcc/cpplib.h | |
parent | 69375a37dead5fb85418ed6f652902a3d310bf2f (diff) | |
download | gcc-6ac34fdc71a8253c228368453376bfc27032b851.zip gcc-6ac34fdc71a8253c228368453376bfc27032b851.tar.gz gcc-6ac34fdc71a8253c228368453376bfc27032b851.tar.bz2 |
(struct cpp_options): New member warn_undef.
(CPP_WARN_UNDEF): New macro.
From-SVN: r13878
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 ae73e8a..7ba0a37 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -431,6 +431,9 @@ struct cpp_options { /* Nonzero means try to imitate old fashioned non-ANSI preprocessor. */ char traditional; + /* Nonzero means warn if undefined identifiers are evaluated in an #if. */ + char warn_undef; + /* Nonzero for the 1989 C Standard, including corrigenda and amendments. */ char c89; @@ -495,6 +498,7 @@ struct cpp_options { }; #define CPP_TRADITIONAL(PFILE) (CPP_OPTIONS(PFILE)-> traditional) +#define CPP_WARN_UNDEF(PFILE) (CPP_OPTIONS(PFILE)->warn_undef) #define CPP_C89(PFILE) (CPP_OPTIONS(PFILE)->c89) #define CPP_PEDANTIC(PFILE) (CPP_OPTIONS (PFILE)->pedantic) #define CPP_PRINT_DEPS(PFILE) (CPP_OPTIONS (PFILE)->print_deps) |