OSDN Git Service

(cpp_handle_options): Set warn_undef from -Wundef and -Wno-undef.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Apr 1997 16:50:30 +0000 (16:50 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Apr 1997 16:50:30 +0000 (16:50 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13879 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cpplib.c

index f7e43ff..6e2177e 100644 (file)
@@ -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"))