/* Implement TARGET_OPTION_RESTORE. */
static void
arm_option_restore (struct gcc_options */* opts */,
- struct gcc_options *opts_set, struct cl_target_option *ptr)
+ struct gcc_options */* opts_set */,
+ struct cl_target_option *ptr)
{
- arm_configure_build_target (&arm_active_target, ptr, opts_set, false);
+ arm_configure_build_target (&arm_active_target, ptr, false);
}
/* Reset options between modes that the user has specified. */
void
arm_configure_build_target (struct arm_build_target *target,
struct cl_target_option *opts,
- struct gcc_options *opts_set,
bool warn_compatible)
{
const cpu_option *arm_selected_tune = NULL;
target->core_name = NULL;
target->arch_name = NULL;
- if (opts_set->x_arm_arch_string)
+ if (opts->x_arm_arch_string)
{
arm_selected_arch = arm_parse_arch_option_name (all_architectures,
"-march",
arch_opts = strchr (opts->x_arm_arch_string, '+');
}
- if (opts_set->x_arm_cpu_string)
+ if (opts->x_arm_cpu_string)
{
arm_selected_cpu = arm_parse_cpu_option_name (all_cores, "-mcpu",
opts->x_arm_cpu_string);
options for tuning. */
}
- if (opts_set->x_arm_tune_string)
+ if (opts->x_arm_tune_string)
{
arm_selected_tune = arm_parse_cpu_option_name (all_cores, "-mtune",
opts->x_arm_tune_string);
}
cl_target_option_save (&opts, &global_options, &global_options_set);
- arm_configure_build_target (&arm_active_target, &opts, &global_options_set,
- true);
+ arm_configure_build_target (&arm_active_target, &opts, true);
#ifdef SUBTARGET_OVERRIDE_OPTIONS
SUBTARGET_OVERRIDE_OPTIONS;
caller_target.isa = sbitmap_alloc (isa_num_bits);
callee_target.isa = sbitmap_alloc (isa_num_bits);
- arm_configure_build_target (&caller_target, caller_opts, &global_options_set,
- false);
- arm_configure_build_target (&callee_target, callee_opts, &global_options_set,
- false);
+ arm_configure_build_target (&caller_target, caller_opts, false);
+ arm_configure_build_target (&callee_target, callee_opts, false);
if (!bitmap_subset_p (callee_target.isa, caller_target.isa))
can_inline = false;
return NULL_TREE;
cl_target_option_save (&cl_opts, opts, opts_set);
- arm_configure_build_target (&arm_active_target, &cl_opts, opts_set, false);
+ arm_configure_build_target (&arm_active_target, &cl_opts, false);
arm_option_check_internal (opts);
/* Do any overrides, such as global options arch=xxx.
We do this since arm_active_target was overridden. */