about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-05-22 20:28:50 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-05-22 20:28:50 +0000
commitdc6b5aed1b406a53c4512d355376b4e12c7da971 (patch)
tree5678bbd4e11ba04cf330afc7421db3d95162baae /ChangeLog
parent0c3717e7827969895f6ffe57c66e1612358ce6b1 (diff)
downloadglibc-dc6b5aed1b406a53c4512d355376b4e12c7da971.tar.gz
glibc-dc6b5aed1b406a53c4512d355376b4e12c7da971.tar.xz
glibc-dc6b5aed1b406a53c4512d355376b4e12c7da971.zip
Fix soft-fp fma for -Wuninitialized.
The soft-fp implementations of fma produce -Wuninitialized warnings
because, in the cases where the result is not a nonzero finite value,
the soft-fp does not set the exponent of the result since the (cooked)
packing will do so, but the compiler does not then see that the
exponent is always set in packing before it's used if it wasn't set
earlier.  This patch uses DIAG_* macros to suppress those warnings.

Tested for mips64.  (In fact this allows the mips64 build to complete
with the -Wno-uninitialized removed from math/Makefile, but more
cleanups are still needed in the ldbl-128ibm code for uninitialized
warnings there.)

	* soft-fp/fmadf4.c: Include <libc-internal.h>.
	(__fma): Ignore uninitialized warnings around packing.
	* soft-fp/fmasf4.c: Include <libc-internal.h>.
	(__fmaf): Ignore uninitialized warnings around packing.
	* soft-fp/fmatf4.c: Include <libc-internal.h>.
	(__fmal): Ignore uninitialized warnings around packing.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 159eb4ab6f..94945920de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
 
+	* soft-fp/fmadf4.c: Include <libc-internal.h>.
+	(__fma): Ignore uninitialized warnings around packing.
+	* soft-fp/fmasf4.c: Include <libc-internal.h>.
+	(__fmaf): Ignore uninitialized warnings around packing.
+	* soft-fp/fmatf4.c: Include <libc-internal.h>.
+	(__fmal): Ignore uninitialized warnings around packing.
+
 	* sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
 	(__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
 	* sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.