diff options
author | Roger Sayle <roger@eyesopen.com> | 2002-07-21 02:07:01 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2002-07-21 02:07:01 +0000 |
commit | b886c620ab6703c4cca23632a17c954fb8a05e4f (patch) | |
tree | b9d06360fed90fe3c9f5165dd32eaa88c70fa8d8 | |
parent | ae860ff78713f48ecb4556b705212378aae6ec2e (diff) | |
download | gcc-b886c620ab6703c4cca23632a17c954fb8a05e4f.zip gcc-b886c620ab6703c4cca23632a17c954fb8a05e4f.tar.gz gcc-b886c620ab6703c4cca23632a17c954fb8a05e4f.tar.bz2 |
decl2.c (cxx_decode_option): Simplify -fhandle-exceptions test by using positive_option.
* decl2.c (cxx_decode_option): Simplify -fhandle-exceptions
test by using positive_option. Make whitespace consistent.
From-SVN: r55616
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index efe479b..57effa9 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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' diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 4a12914..9a18586 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -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")) { |