Commit a377ff85 by Richard Kenner

(fold_convert): When converting a NaN to another type, change the type

of the node before returning it.

From-SVN: r10863
parent 36c336d1
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment