diff options
author | tmsriram <tmsriram@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-23 21:13:50 +0000 |
---|---|---|
committer | tmsriram <tmsriram@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-23 21:13:50 +0000 |
commit | 341d5690a6ec6d8fdc0adf7a207bfa36eb20c1c8 (patch) | |
tree | 9329ab26fdcbc0e5974bff914b878cfca6e0702e | |
parent | 92a94bec7fa17adf472ea3d65d5c71d9d580550c (diff) | |
download | gcc-341d5690a6ec6d8fdc0adf7a207bfa36eb20c1c8.tar.gz |
PR target/57756
Replace further references to global_options in functions
ix86_option_override_internal and ix86_valid_target_attribute_tree
in config/i386/i386.c.
PR target/57756
* config/i386/i386.c (ix86_option_override_internal):
Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
(ix86_valid_target_attribute_tree):
Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
Change TARGET_SSE to TARGET_SSE_P (opts->...)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203991 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 5 |
2 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5a51c3ae396..60eecba5958 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2013-10-23 Sriraman Tallam <tmsriram@google.com> + + PR target/57756 + * config/i386/i386.c (ix86_option_override_internal): + Change TARGET_SSE2 to TARGET_SSE2_P (opts->...) + (ix86_valid_target_attribute_tree): + Change TARGET_64BIT to TARGET_64BIT_P (opts->...) + Change TARGET_SSE to TARGET_SSE_P (opts->...) + 2013-10-23 Andrew MacLeod <amacleod@redhat.com> * tree-ssa-loop.h: Remove include files. @@ -680,6 +689,7 @@ 2013-10-17 Sriraman Tallam <tmsriram@google.com> + PR target/57756 * opth-gen.awk: Define target_flags_explicit. 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com> diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 22341eeca6c..25c63c7749a 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -3798,7 +3798,7 @@ ix86_option_override_internal (bool main_args_p, codegen. We may switch to 387 with -ffast-math for size optimized functions. */ else if (fast_math_flags_set_p (&global_options) - && TARGET_SSE2) + && TARGET_SSE2_P (opts->x_ix86_isa_flags)) ix86_fpmath = FPMATH_SSE; else opts->x_ix86_fpmath = TARGET_FPMATH_DEFAULT_P (opts->x_ix86_isa_flags); @@ -4553,7 +4553,8 @@ ix86_valid_target_attribute_tree (tree args, /* If fpmath= is not set, and we now have sse2 on 32-bit, use it. */ if (enum_opts_set.x_ix86_fpmath) opts_set->x_ix86_fpmath = (enum fpmath_unit) 1; - else if (!TARGET_64BIT && TARGET_SSE) + else if (!TARGET_64BIT_P (opts->x_ix86_isa_flags) + && TARGET_SSE_P (opts->x_ix86_isa_flags)) { opts->x_ix86_fpmath = (enum fpmath_unit) (FPMATH_SSE | FPMATH_387); opts_set->x_ix86_fpmath = (enum fpmath_unit) 1; |