http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58944

Sriraman Tallam <tmsriram at google dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |davidxl at google dot com

--- Comment #4 from Sriraman Tallam <tmsriram at google dot com> ---
This patch seems to solve the problem

Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c    (revision 204298)
+++ config/i386/i386.c    (working copy)
@@ -4634,6 +4634,8 @@
      be set.  */
   cl_target_option_restore (&func_options,
                 TREE_TARGET_OPTION (target_option_default_node));
+  func_options.x_ix86_arch_string = ix86_arch_string;
+  func_options.x_ix86_tune_string = ix86_tune_string;

   new_target = ix86_valid_target_attribute_tree (args, &func_options,
                          &global_options_set);


cl_target_option_restore does not touch ix86_arch_string and ix86_tune_string.
This has to be managed explicitly. I am testing this patch now.

Thanks,
Sri

Reply via email to