projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36c336d
)
(fold_convert): When converting a NaN to another type, change the type
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 27 Dec 1995 02:52:06 +0000
(21:52 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 27 Dec 1995 02:52:06 +0000
(21:52 -0500)
of the node before returning it.
From-SVN: r10863
gcc/fold-const.c
patch
|
blob
|
history
diff --git
a/gcc/fold-const.c
b/gcc/fold-const.c
index
ba459c0
..
14e11d0
100644
(file)
--- a/
gcc/fold-const.c
+++ b/
gcc/fold-const.c
@@
-1481,7
+1481,11
@@
fold_convert (t, arg1)
if (TREE_CODE (arg1) == REAL_CST)
{
if (REAL_VALUE_ISNAN (TREE_REAL_CST (arg1)))
- return arg1;
+ {
+ t = arg1;
+ TREE_TYPE (arg1) = type;
+ return t;
+ }
else if (setjmp (float_error))
{
overflow = 1;