diff options
author | Martin Liska <mliska@suse.cz> | 2019-11-12 11:10:58 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-11-12 10:10:58 +0000 |
commit | 6ed760441a35e308dc434fac1f6a6589668ee928 (patch) | |
tree | 96693761f01063111373f8f358b08f9123028953 /gcc/fortran/options.c | |
parent | 8100e93b72dfe82c5f084a3d9351b8ad2ef6ab39 (diff) | |
download | gcc-6ed760441a35e308dc434fac1f6a6589668ee928.zip gcc-6ed760441a35e308dc434fac1f6a6589668ee928.tar.gz gcc-6ed760441a35e308dc434fac1f6a6589668ee928.tar.bz2 |
Use more SET_OPTION_IF_UNSET.
2019-11-12 Martin Liska <mliska@suse.cz>
* config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
Use SET_OPTION_IF_UNSET.
(ix86_option_override_internal): Likewise.
* opts.c (default_options_optimization): Likewise.
(finish_options): Likewise.
(enable_fdo_optimizations): Likewise.
(common_handle_option): Likewise.
2019-11-12 Martin Liska <mliska@suse.cz>
* c-opts.c (c_common_post_options):
Use SET_OPTION_IF_UNSET.
2019-11-12 Martin Liska <mliska@suse.cz>
* options.c (gfc_init_options):
Use SET_OPTION_IF_UNSET.
2019-11-12 Martin Liska <mliska@suse.cz>
* go-lang.c (go_langhook_post_options):
Use SET_OPTION_IF_UNSET.
From-SVN: r278091
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r-- | gcc/fortran/options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c index 305c57d..f7a5299 100644 --- a/gcc/fortran/options.c +++ b/gcc/fortran/options.c @@ -162,8 +162,8 @@ gfc_init_options (unsigned int decoded_options_count, /* ??? Wmissing-include-dirs is disabled by default in C/C++ but enabled by default in Fortran. Ideally, we should express this in .opt, but that is not supported yet. */ - if (!global_options_set.x_cpp_warn_missing_include_dirs) - global_options.x_cpp_warn_missing_include_dirs = 1; + SET_OPTION_IF_UNSET (&global_options, &global_options_set, + cpp_warn_missing_include_dirs, 1); set_dec_flags (0); |