aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2011-05-18 02:10:46 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2011-05-18 02:10:46 +0100
commit26a8964cbdfa508d1874b1915f0f56ae62a34b3a (patch)
treefdafb8b2f69a9ef7ae746928267c3ecb2731233d /gcc
parent23a0e6535d5d2399c73282232a96cb1d717928c9 (diff)
downloadgcc-26a8964cbdfa508d1874b1915f0f56ae62a34b3a.zip
gcc-26a8964cbdfa508d1874b1915f0f56ae62a34b3a.tar.gz
gcc-26a8964cbdfa508d1874b1915f0f56ae62a34b3a.tar.bz2
i386.c (ix86_valid_target_attribute_tree): Use enum_opts_set when testing if attributes have set -mfpmath=.
* config/i386/i386.c (ix86_valid_target_attribute_tree): Use enum_opts_set when testing if attributes have set -mfpmath=. From-SVN: r173845
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6ddb230..4540ec4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-17 Joseph Myers <joseph@codesourcery.com>
+
+ * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
+ enum_opts_set when testing if attributes have set -mfpmath=.
+
2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
* config/mips/mips.c (mips_handle_option): Remove unused variable.
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index ee8c37b..87d5650 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -4692,7 +4692,7 @@ ix86_valid_target_attribute_tree (tree args)
|| target_flags != def->x_target_flags
|| option_strings[IX86_FUNCTION_SPECIFIC_ARCH]
|| option_strings[IX86_FUNCTION_SPECIFIC_TUNE]
- || ix86_fpmath != def->x_ix86_fpmath)
+ || enum_opts_set.x_ix86_fpmath)
{
/* If we are using the default tune= or arch=, undo the string assigned,
and use the default. */