aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1997-04-13 12:50:30 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1997-04-13 12:50:30 -0400
commitdfb45725c90e49a7b2f1301b33bbeb21ee6f67a1 (patch)
treea8e3fb9740d4124d02743ec169f0710458c244ca /gcc/cpplib.c
parent6ac34fdc71a8253c228368453376bfc27032b851 (diff)
downloadgcc-dfb45725c90e49a7b2f1301b33bbeb21ee6f67a1.zip
gcc-dfb45725c90e49a7b2f1301b33bbeb21ee6f67a1.tar.gz
gcc-dfb45725c90e49a7b2f1301b33bbeb21ee6f67a1.tar.bz2
(cpp_handle_options): Set warn_undef from -Wundef and -Wno-undef.
From-SVN: r13879
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index f7e43ff..6e2177e 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -6490,6 +6490,10 @@ cpp_handle_options (pfile, argc, argv)
opts->warn_stringify = 1;
else if (!strcmp (argv[i], "-Wno-traditional"))
opts->warn_stringify = 0;
+ else if (!strcmp (argv[i], "-Wundef"))
+ opts->warn_undef = 1;
+ else if (!strcmp (argv[i], "-Wno-undef"))
+ opts->warn_undef = 0;
else if (!strcmp (argv[i], "-Wimport"))
opts->warn_import = 1;
else if (!strcmp (argv[i], "-Wno-import"))