c-decl.c (c_decode_option): Skip '-f' prefix before calling dump_switch_p.
authorDiego Novillo <dnovillo@redhat.com>
Fri, 31 Aug 2001 16:34:44 +0000 (16:34 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Fri, 31 Aug 2001 16:34:44 +0000 (12:34 -0400)
* c-decl.c (c_decode_option): Skip '-f' prefix before calling
dump_switch_p.

From-SVN: r45323

gcc/ChangeLog
gcc/c-decl.c

index a7ff0259117c00acb8493451067388509f11e8bb..d3406b65c0be843f952fbf8b6f24c148d08c222d 100644 (file)
@@ -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
index b81b38b21415409e836afa48f51aa4c113d2d68f..af61377aa42dacf16c530b9b7aabdd5b995c6a87 100644 (file)
@@ -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;