summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-31 16:34:44 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-31 16:34:44 +0000
commitbddb818e1b9ad365c4e88dab869f17cf9c2008da (patch)
tree4c22d3e637f85915c9e02e719c8363a7e21b4dbd /gcc
parentf32f99923ab6bd9dd445a8c1f7193a77468d768d (diff)
downloadgcc-bddb818e1b9ad365c4e88dab869f17cf9c2008da.tar.gz
* c-decl.c (c_decode_option): Skip '-f' prefix before calling
dump_switch_p. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45323 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-decl.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a7ff0259117..d3406b65c0b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-31 Diego Novillo <dnovillo@redhat.com>
+
+ * c-decl.c (c_decode_option): Skip '-f' prefix before calling
+ dump_switch_p.
+
2001-08-31 Geoffrey Keating <geoffk@redhat.com>
* config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index b81b38b2141..af61377aa42 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -594,7 +594,7 @@ c_decode_option (argc, argv)
flag_no_builtin = 0;
else if (!strcmp (p, "-fno-builtin"))
flag_no_builtin = 1;
- else if (dump_switch_p (p))
+ else if (p[0] == '-' && p[1] == 'f' && dump_switch_p (p + 2))
;
else if (!strcmp (p, "-ansi"))
goto iso_1990;