OSDN Git Service

(cpp_handle_options): Set warn_undef from -Wundef and -Wno-undef.
[pf3gnuchains/gcc-fork.git] / 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"))