+2017-08-17 Uros Bizjak <ubizjak@gmail.com>
+
+ Backport from mainline
+ 2017-08-17 Maxim Ostapenko <m.ostapenko@samsung.com>
+
+ PR target/81861
+ * config/i386/i386.c (ix86_option_override_internal): Save target
+ specific options after ix86_stack_protector_guard_reg was changed.
+
2017-08-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
Backport from mainline
gcc_assert ((opts->x_target_flags & MASK_LONG_DOUBLE_64) == 0
|| (opts->x_target_flags & MASK_LONG_DOUBLE_128) == 0);
- /* Save the initial options in case the user does function specific
- options. */
- if (main_args_p)
- target_option_default_node = target_option_current_node
- = build_target_option_node (opts);
-
/* Handle stack protector */
if (!opts_set->x_ix86_stack_protector_guard)
opts->x_ix86_stack_protector_guard
ix86_parse_stringop_strategy_string (str, true);
free (str);
}
+
+ /* Save the initial options in case the user does function specific
+ options. */
+ if (main_args_p)
+ target_option_default_node = target_option_current_node
+ = build_target_option_node (opts);
}
/* Implement the TARGET_OPTION_OVERRIDE hook. */