From 6ac34fdc71a8253c228368453376bfc27032b851 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 13 Apr 1997 12:50:11 -0400 Subject: [PATCH] (struct cpp_options): New member warn_undef. (CPP_WARN_UNDEF): New macro. From-SVN: r13878 --- gcc/cpplib.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/cpplib.h b/gcc/cpplib.h index ae73e8aedac..7ba0a37b465 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)