diff options
Diffstat (limited to 'gcc/c-family/c-opts.c')
-rw-r--r-- | gcc/c-family/c-opts.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c index ea7227eab8b..3f00e56bc94 100644 --- a/gcc/c-family/c-opts.c +++ b/gcc/c-family/c-opts.c @@ -436,7 +436,7 @@ c_common_handle_option (size_t scode, const char *arg, int value, case OPT_Wall: warn_unused = value; set_Wformat (value); - handle_generated_option (OPT_Wimplicit, NULL, value, + handle_generated_option (&global_options, OPT_Wimplicit, NULL, value, c_family_lang_mask, kind, handlers); warn_char_subscripts = value; warn_missing_braces = value; @@ -530,10 +530,12 @@ c_common_handle_option (size_t scode, const char *arg, int value, case OPT_Wimplicit: gcc_assert (value == 0 || value == 1); if (warn_implicit_int == -1) - handle_generated_option (OPT_Wimplicit_int, NULL, value, + handle_generated_option (&global_options, OPT_Wimplicit_int, + NULL, value, c_family_lang_mask, kind, handlers); if (warn_implicit_function_declaration == -1) - handle_generated_option (OPT_Wimplicit_function_declaration, NULL, + handle_generated_option (&global_options, + OPT_Wimplicit_function_declaration, NULL, value, c_family_lang_mask, kind, handlers); break; |