@@ -409,6 +409,7 @@ arm_pragma_target_parse (tree args, tree pop_target)
target_option_current_node = cur_tree;
arm_configure_build_target (&arm_active_target,
TREE_TARGET_OPTION (cur_tree), false);
+ arm_option_reconfigure_globals ();
}
/* Update macros if target_node changes. The global state will be restored
@@ -3058,6 +3058,7 @@ arm_option_restore (struct gcc_options */* opts */,
struct cl_target_option *ptr)
{
arm_configure_build_target (&arm_active_target, ptr, false);
+ arm_option_reconfigure_globals ();
}
/* Reset options between modes that the user has specified. */
@@ -3441,7 +3442,6 @@ arm_configure_build_target (struct arm_build_target *target,
target->tune_flags = tune_data->tune_flags;
target->tune = tune_data->tune;
target->tune_core = tune_data->scheduler;
- arm_option_reconfigure_globals ();
}
/* Fix up any incompatible options that the user has specified. */