Fix a typo in GCC affecting calculations with -ffast-math.

The fix is similar to the one applied in GCC-4.3 in
GCCSVN-r117929 under the GPLv2.

Submitted by:	Andrey Simonenko
Reviewed by:	mm
Approved by:	jhb (mentor)
MFC after:	3 days
This commit is contained in:
Pedro F. Giffuni 2012-04-05 15:16:51 +00:00
parent 70542ee01f
commit a90710e961
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=233923
2 changed files with 6 additions and 1 deletions

View File

@ -169,3 +169,8 @@
* doc/extend.texi: Document SSSE3 built-in functions.
* doc/invoke.texi: Document -mssse3/-mno-ssse3 switches.
2006-10-21 Richard Guenther <rguenther@suse.de>
* builtins.c (fold_builtin_classify): Fix typo.

View File

@ -8738,7 +8738,7 @@ fold_builtin_classify (tree fndecl, tree arglist, int builtin_index)
case BUILT_IN_FINITE:
if (!HONOR_NANS (TYPE_MODE (TREE_TYPE (arg)))
&& !HONOR_INFINITIES (TYPE_MODE (TREE_TYPE (arg))))
return omit_one_operand (type, integer_zero_node, arg);
return omit_one_operand (type, integer_one_node, arg);
if (TREE_CODE (arg) == REAL_CST)
{