[Bug other/58944] [4.9 Regression] bogus -Wunused-macros warnings when compiling Libreoffice
tmsriram at google dot com
gcc-bugzilla@gcc.gnu.org
Wed Nov 6 01:18:00 GMT 2013
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
More information about the Gcc-bugs
mailing list