decl2.c (cxx_decode_option): Simplify -fhandle-exceptions test by using positive_option.
authorRoger Sayle <roger@eyesopen.com>
Sun, 21 Jul 2002 02:07:01 +0000 (02:07 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sun, 21 Jul 2002 02:07:01 +0000 (02:07 +0000)
* decl2.c (cxx_decode_option): Simplify -fhandle-exceptions
test by using positive_option.  Make whitespace consistent.

From-SVN: r55616

gcc/cp/ChangeLog
gcc/cp/decl2.c

index efe479b72b44168d33b0b2010699d7e3ad2384dd..57effa988c2d2fadfbc2340ea3c06fadb431fe68 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-20  Roger Sayle  <roger@eyesopen.com>
+
+       * decl2.c (cxx_decode_option): Simplify -fhandle-exceptions
+       test by using positive_option.  Make whitespace consistent.
+
 2002-07-20  Gabriel Dos Reis  <gdr@nerim.net>
 
        * spew.c (struct uinparsed_test): Replace 'filename' and 'lineno'
index 4a12914695d2cf4a19c2348c36f1d5630640d86c..9a18586b8b62a864ade5e820bda7d5733fb2851b 100644 (file)
@@ -509,16 +509,15 @@ cxx_decode_option (argc, argv)
          return 1;
        }
 
-      if (!strcmp (p, "handle-exceptions")
-         || !strcmp (p, "no-handle-exceptions"))
+      if (!strcmp (positive_option, "handle-exceptions"))
        warning ("-fhandle-exceptions has been renamed to -fexceptions (and is now on by default)");
-      else if (! strcmp (p, "alt-external-templates"))
+      else if (!strcmp (p, "alt-external-templates"))
        {
          flag_external_templates = 1;
          flag_alt_external_templates = 1;
           cp_deprecated ("-falt-external-templates");
        }
-      else if (! strcmp (p, "no-alt-external-templates"))
+      else if (!strcmp (p, "no-alt-external-templates"))
        flag_alt_external_templates = 0;
       else if (!strcmp (p, "repo"))
        {