OSDN Git Service

* config/i386/i386.c (ix86_valid_target_attribute_tree): Use
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 May 2011 01:10:46 +0000 (01:10 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 May 2011 01:10:46 +0000 (01:10 +0000)
enum_opts_set when testing if attributes have set -mfpmath=.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173845 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.c

index 6ddb230..4540ec4 100644 (file)
@@ -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.
 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * config/mips/mips.c (mips_handle_option): Remove unused variable.
index ee8c37b..87d5650 100644 (file)
@@ -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]
       || 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.  */
     {
       /* If we are using the default tune= or arch=, undo the string assigned,
         and use the default.  */