+2020-01-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/91399
+ * config/i386/i386-options.c (set_ix86_tune_features): Add an
+ argument of a pointer to struct gcc_options and pass it to
+ parse_mtune_ctrl_str.
+ (ix86_function_specific_restore): Pass opts to
+ set_ix86_tune_features.
+ (ix86_option_override_internal): Likewise.
+ (parse_mtune_ctrl_str): Add an argument of a pointer to struct
+ gcc_options and use it for x_ix86_tune_ctrl_string.
+
2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
PR rtl-optimization/87763
struct gcc_options *opts,
struct gcc_options *opts_set);
static void
-set_ix86_tune_features (enum processor_type ix86_tune, bool dump);
+set_ix86_tune_features (struct gcc_options *opts,
+ enum processor_type ix86_tune, bool dump);
/* Restore the current options */
/* Recreate the tune optimization tests */
if (old_tune != ix86_tune)
- set_ix86_tune_features (ix86_tune, false);
+ set_ix86_tune_features (opts, ix86_tune, false);
}
/* Adjust target options after streaming them in. This is mainly about
print the features that are explicitly set. */
static void
-parse_mtune_ctrl_str (bool dump)
+parse_mtune_ctrl_str (struct gcc_options *opts, bool dump)
{
- if (!ix86_tune_ctrl_string)
+ if (!opts->x_ix86_tune_ctrl_string)
return;
char *next_feature_string = NULL;
- char *curr_feature_string = xstrdup (ix86_tune_ctrl_string);
+ char *curr_feature_string = xstrdup (opts->x_ix86_tune_ctrl_string);
char *orig = curr_feature_string;
int i;
do
processor type. */
static void
-set_ix86_tune_features (enum processor_type ix86_tune, bool dump)
+set_ix86_tune_features (struct gcc_options *opts,
+ enum processor_type ix86_tune, bool dump)
{
unsigned HOST_WIDE_INT ix86_tune_mask = HOST_WIDE_INT_1U << ix86_tune;
int i;
ix86_tune_features[i] ? "on" : "off");
}
- parse_mtune_ctrl_str (dump);
+ parse_mtune_ctrl_str (opts, dump);
}
XDELETEVEC (s);
}
- set_ix86_tune_features (ix86_tune, opts->x_ix86_dump_tunes);
+ set_ix86_tune_features (opts, ix86_tune, opts->x_ix86_dump_tunes);
ix86_recompute_optlev_based_flags (opts, opts_set);