FreeBSD Bugzilla – Attachment 115260 Details for
Bug 157025
[patch] gcc(1): gcc Bug 28796 - __builtin_nan() and __builtin_unordered() inconsistent
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.68 KB, created by
Pedro F. Giffuni
on 2011-05-14 03:30:06 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Pedro F. Giffuni
Created:
2011-05-14 03:30:06 UTC
Size:
1.68 KB
patch
obsolete
>--- gcc/builtins.c.orig 2007-05-19 02:12:19.000000000 +0000 >+++ gcc/builtins.c 2011-05-13 20:58:56.000000000 +0000 >@@ -8720,7 +8720,7 @@ > switch (builtin_index) > { > case BUILT_IN_ISINF: >- if (!MODE_HAS_INFINITIES (TYPE_MODE (TREE_TYPE (arg)))) >+ if (!HONOR_INFINITIES (TYPE_MODE (TREE_TYPE (arg)))) > return omit_one_operand (type, integer_zero_node, arg); > > if (TREE_CODE (arg) == REAL_CST) >@@ -8736,8 +8736,8 @@ > return NULL_TREE; > > case BUILT_IN_FINITE: >- if (!MODE_HAS_NANS (TYPE_MODE (TREE_TYPE (arg))) >- && !MODE_HAS_INFINITIES (TYPE_MODE (TREE_TYPE (arg)))) >+ if (!HONOR_NANS (TYPE_MODE (TREE_TYPE (arg))) >+ && !HONOR_INFINITIES (TYPE_MODE (TREE_TYPE (arg)))) > return omit_one_operand (type, integer_zero_node, arg); > > if (TREE_CODE (arg) == REAL_CST) >@@ -8750,7 +8750,7 @@ > return NULL_TREE; > > case BUILT_IN_ISNAN: >- if (!MODE_HAS_NANS (TYPE_MODE (TREE_TYPE (arg)))) >+ if (!HONOR_NANS (TYPE_MODE (TREE_TYPE (arg)))) > return omit_one_operand (type, integer_zero_node, arg); > > if (TREE_CODE (arg) == REAL_CST) >@@ -8833,13 +8833,13 @@ > > if (unordered_code == UNORDERED_EXPR) > { >- if (!MODE_HAS_NANS (TYPE_MODE (TREE_TYPE (arg0)))) >+ if (!HONOR_NANS (TYPE_MODE (TREE_TYPE (arg0)))) > return omit_two_operands (type, integer_zero_node, arg0, arg1); > return fold_build2 (UNORDERED_EXPR, type, arg0, arg1); > } > >- code = MODE_HAS_NANS (TYPE_MODE (TREE_TYPE (arg0))) ? unordered_code >- : ordered_code; >+ code = HONOR_NANS (TYPE_MODE (TREE_TYPE (arg0))) ? unordered_code >+ : ordered_code; > return fold_build1 (TRUTH_NOT_EXPR, type, > fold_build2 (code, type, arg0, arg1)); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 157025
: 115260