From: Joseph Myers Date: Wed, 18 May 2011 01:10:46 +0000 (+0100) Subject: i386.c (ix86_valid_target_attribute_tree): Use enum_opts_set when testing if attribut... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26a8964cbdfa508d1874b1915f0f56ae62a34b3a;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6ddb2300b84..4540ec42c89 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-05-17 Joseph Myers + + * 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 * 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 ee8c37beda9..87d5650405f 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. */