aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-10-17 12:36:02 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-10-17 12:36:02 +0000
commite5c2c2d0c0315ca24cc9cd638cdb1a2d8dcc4b0d (patch)
tree56b8e56352c9f4f06ed9935cd0d9000d622d8d15
parent51ca9e29af1a71b7dc175b78ee2d3564f9416fab (diff)
downloadglibc-e5c2c2d0c0315ca24cc9cd638cdb1a2d8dcc4b0d.zip
glibc-e5c2c2d0c0315ca24cc9cd638cdb1a2d8dcc4b0d.tar.gz
glibc-e5c2c2d0c0315ca24cc9cd638cdb1a2d8dcc4b0d.tar.bz2
soft-fp: make extensions quiet signaling NaNs (bug 16041).
-rw-r--r--ChangeLog6
-rw-r--r--NEWS2
-rw-r--r--soft-fp/op-common.h1
3 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f0e44d2..d2a3e34 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-10-17 Joseph Myers <joseph@codesourcery.com>
+
+ [BZ #16041]
+ * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
+ make result into a quiet NaN.
+
2013-10-16 Joseph Myers <joseph@codesourcery.com>
* soft-fp/adddf3.c: Fix horizontal whitespace.
diff --git a/NEWS b/NEWS
index ac375f8..1501f94 100644
--- a/NEWS
+++ b/NEWS
@@ -16,7 +16,7 @@ Version 2.19
15857, 15859, 15867, 15886, 15887, 15890, 15892, 15893, 15895, 15897,
15905, 15909, 15919, 15921, 15923, 15939, 15963, 15966, 15988, 16032,
15905, 15909, 15919, 15921, 15923, 15939, 15963, 15966, 15988, 16032,
- 16034, 16036.
+ 16034, 16036, 16041.
* CVE-2012-4412 The strcoll implementation caches indices and rules for
large collation sequences to optimize multiple passes. This cache
diff --git a/soft-fp/op-common.h b/soft-fp/op-common.h
index 9a9a8f5..67cdc33 100644
--- a/soft-fp/op-common.h
+++ b/soft-fp/op-common.h
@@ -1505,6 +1505,7 @@
FP_SET_EXCEPTION (FP_EX_INVALID); \
_FP_FRAC_SLL_##dwc (D, (_FP_FRACBITS_##dfs \
- _FP_FRACBITS_##sfs)); \
+ _FP_SETQNAN (dfs, dwc, D); \
} \
} \
} \