c-decl.c (c_decode_option): Skip '-f' prefix before calling dump_switch_p.

* c-decl.c (c_decode_option): Skip '-f' prefix before calling
	dump_switch_p.

From-SVN: r45323
This commit is contained in:
Diego Novillo 2001-08-31 16:34:44 +00:00 committed by Diego Novillo
parent 43898541b9
commit a8231a01c1
2 changed files with 6 additions and 1 deletions

View 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

View 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;