From dc6b5aed1b406a53c4512d355376b4e12c7da971 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 22 May 2015 20:28:50 +0000 Subject: 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 . (__fma): Ignore uninitialized warnings around packing. * soft-fp/fmasf4.c: Include . (__fmaf): Ignore uninitialized warnings around packing. * soft-fp/fmatf4.c: Include . (__fmal): Ignore uninitialized warnings around packing. --- ChangeLog | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 159eb4ab6f..94945920de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2015-05-22 Joseph Myers + * soft-fp/fmadf4.c: Include . + (__fma): Ignore uninitialized warnings around packing. + * soft-fp/fmasf4.c: Include . + (__fmaf): Ignore uninitialized warnings around packing. + * soft-fp/fmatf4.c: Include . + (__fmal): Ignore uninitialized warnings around packing. + * sysdeps/ieee754/ldbl-128/k_tanl.c: Include . (__kernel_tanl): Ignore uninitialized warnings around use of SIGN. * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include . -- cgit 1.4.1