diff options
Diffstat (limited to 'gcc/real.c')
-rw-r--r-- | gcc/real.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/real.c b/gcc/real.c index 827ac9dd449..ea3d085afcf 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -4459,8 +4459,7 @@ real_sqrt (REAL_VALUE_TYPE *r, enum machine_mode mode, /* Negative arguments return NaN. */ if (real_isneg (x)) { - /* Mode is ignored for canonical NaN. */ - real_nan (r, "", 1, SFmode); + get_canonical_qnan (r, 0); return false; } |