]> git.ipfire.org Git - thirdparty/gcc.git/commit
This patch fixes PR 58944
authorSriraman Tallam <tmsriram@google.com>
Tue, 3 Dec 2013 03:14:09 +0000 (03:14 +0000)
committerSriraman Tallam <tmsriram@gcc.gnu.org>
Tue, 3 Dec 2013 03:14:09 +0000 (03:14 +0000)
commit80f1fd0dabb30f82a972b5eb114a7d47104263a3
tree008202786e69247dd609add1c42e242d3e1dd2de
parent4c2ecab0e4978f3a4a5b40fe595729b30375386a
This patch fixes PR 58944
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58944

ix86_valid_target_attribute_tree in config/i386/i386.c was
refactored to not depend on global_options structure and to be able to
use any gcc_options structure.  One clean way to fix this is by having
target_option_default_node save all the default target options which
can be restored to any gcc_options structure. The root cause of the
above bugs was that ix86_arch_string and ix86_tune_string was not
saved in target_option_deault_node.

This patch saves all the  target options used in i386.opt which are
either obtained from the command-line or set to some default.

Testing:
Patch tested for bootstrap on all default languages(also obj-c++ and ada)
on x86_64 and regression testsuite checked for parity with RUNTESTFLAGS -m32
and m64.

From-SVN: r205616
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.opt
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr58944.c [new file with mode: 0644]