Commit bc800bb2 by Zack Weinberg Committed by Zack Weinberg

* real.c (real_sqrt): Use get_canonical_qnan directly.

From-SVN: r71919
parent d464f1b8
2003-09-29 Zack Weinberg <zack@codesourcery.com> 2003-09-29 Zack Weinberg <zack@codesourcery.com>
* real.c (real_sqrt): Use get_canonical_qnan directly.
* dwarf2out.c (add_const_value_attribute): Use real_to_target. * dwarf2out.c (add_const_value_attribute): Use real_to_target.
* varasm.c (assemble_real): Use real_to_target directly, * varasm.c (assemble_real): Use real_to_target directly,
......
...@@ -4459,8 +4459,7 @@ real_sqrt (REAL_VALUE_TYPE *r, enum machine_mode mode, ...@@ -4459,8 +4459,7 @@ real_sqrt (REAL_VALUE_TYPE *r, enum machine_mode mode,
/* Negative arguments return NaN. */ /* Negative arguments return NaN. */
if (real_isneg (x)) if (real_isneg (x))
{ {
/* Mode is ignored for canonical NaN. */ get_canonical_qnan (r, 0);
real_nan (r, "", 1, SFmode);
return false; return false;
} }
......
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