+2015-12-11 Martin Liska <mliska@suse.cz>
+
+ Uros Bizjak <ubizjak@gmail.com>
+
+ PR target/67484
+ * config/i386/i386.c (ix86_valid_target_attribute_tree):
+ Use ggc_strdup to copy option_strings to opts->x_ix86_arch_string and
+ opts->x_ix86_tune_string.
+
2015-12-11 Richard Biener <rguenther@suse.de>
* lto-streamer.h (lto_simple_header_with_strings): Remove
if (option_strings[IX86_FUNCTION_SPECIFIC_ARCH])
{
opts->x_ix86_arch_string
- = option_strings[IX86_FUNCTION_SPECIFIC_ARCH];
+ = ggc_strdup (option_strings[IX86_FUNCTION_SPECIFIC_ARCH]);
/* If arch= is set, clear all bits in x_ix86_isa_flags,
except for ISA_64BIT, ABI_64, ABI_X32, and CODE16. */
opts->x_ix86_arch_string = NULL;
if (option_strings[IX86_FUNCTION_SPECIFIC_TUNE])
- opts->x_ix86_tune_string = option_strings[IX86_FUNCTION_SPECIFIC_TUNE];
+ opts->x_ix86_tune_string
+ = ggc_strdup (option_strings[IX86_FUNCTION_SPECIFIC_TUNE]);
else if (orig_tune_defaulted)
opts->x_ix86_tune_string = NULL;