summaryrefslogtreecommitdiffstats
path: root/contrib/gcc
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2012-04-05 15:16:51 +0000
committerpfg <pfg@FreeBSD.org>2012-04-05 15:16:51 +0000
commit1bdacb70cf554a29338ec17d997277abfc6f57e1 (patch)
treed9da375113f338af5bd5fa4d5596d869f026f1d8 /contrib/gcc
parent69c46e84cc717d117c8fc0a923ff5bf584f72872 (diff)
downloadFreeBSD-src-1bdacb70cf554a29338ec17d997277abfc6f57e1.zip
FreeBSD-src-1bdacb70cf554a29338ec17d997277abfc6f57e1.tar.gz
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
Diffstat (limited to 'contrib/gcc')
-rw-r--r--contrib/gcc/ChangeLog.gcc435
-rw-r--r--contrib/gcc/builtins.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/contrib/gcc/ChangeLog.gcc43 b/contrib/gcc/ChangeLog.gcc43
index 94abc02..23b3a39 100644
--- a/contrib/gcc/ChangeLog.gcc43
+++ b/contrib/gcc/ChangeLog.gcc43
@@ -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.
+
diff --git a/contrib/gcc/builtins.c b/contrib/gcc/builtins.c
index 2359a51..a65d725 100644
--- a/contrib/gcc/builtins.c
+++ b/contrib/gcc/builtins.c
@@ -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)
{
OpenPOWER on IntegriCloud