diff options
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 314a306..e60ab9d 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -447,7 +447,6 @@ c_decode_option (argc, argv) char **argv; { int strings_processed; - const char *option_value = NULL; char *p = argv[0]; strings_processed = cpp_handle_option (parse_in, argc, argv); @@ -593,14 +592,8 @@ c_decode_option (argc, argv) flag_no_builtin = 0; else if (!strcmp (p, "-fno-builtin")) flag_no_builtin = 1; - else if ((option_value - = skip_leading_substring (p, "-fdump-translation-unit-"))) - { - if (p[22] == '\0') - error ("no file specified with -fdump-translation-unit"); - else - flag_dump_translation_unit = option_value; - } + else if (dump_switch_p (p)) + ; else if (!strcmp (p, "-ansi")) goto iso_1990; else if (!strcmp (p, "-Werror-implicit-function-declaration")) |