summaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-21 02:07:01 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-21 02:07:01 +0000
commit9ba8ef02d272b2546f09ccee1054ec4edc9f2ec1 (patch)
treeb9d06360fed90fe3c9f5165dd32eaa88c70fa8d8 /gcc/cp/decl2.c
parent09a762bef68210d97ddca2ebfec7c9b5b307d36b (diff)
downloadgcc-9ba8ef02d272b2546f09ccee1054ec4edc9f2ec1.tar.gz
* decl2.c (cxx_decode_option): Simplify -fhandle-exceptions
test by using positive_option. Make whitespace consistent. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55616 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 4a12914695d..9a18586b8b6 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"))
{