diff options
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index fb2b8e2..d83045b 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -304,6 +304,8 @@ c_common_init_options (unsigned int argc, const char **argv) diagnostic_prefixing_rule (global_dc) = DIAGNOSTICS_SHOW_PREFIX_ONCE; } + global_dc->opt_permissive = OPT_fpermissive; + parse_in = cpp_create_reader (c_dialect_cxx () ? CLK_GNUCXX: CLK_GNUC89, ident_hash, line_table); cb = cpp_get_callbacks (parse_in); @@ -848,7 +850,7 @@ c_common_handle_option (size_t scode, const char *arg, int value, break; case OPT_fpermissive: - flag_permissive = value; + global_dc->permissive = flag_permissive = value; break; case OPT_fpreprocessed: |