Fix ldbl-128 / ldbl-128ibm tanl for -Wuninitialized.
commit0c3717e7827969895f6ffe57c66e1612358ce6b1
authorJoseph Myers <joseph@codesourcery.com>
Fri, 22 May 2015 20:13:44 +0000 (22 20:13 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 22 May 2015 20:13:44 +0000 (22 20:13 +0000)
tree63515633144d67d549bc62b4681c59309a37dba0
parent31a8780d0b41934c6ab5160f834f56a2d5d97f4a
Fix ldbl-128 / ldbl-128ibm tanl for -Wuninitialized.

The ldbl-128 and ldbl-128ibm implementations of tanl produce
uninitialized variable warnings with -Wuninitialized because of a
variable that is initialized only conditionally, then used under the
same conditions under which it is set.  This patch uses DIAG_* macros
to suppress those warnings.

Tested for powerpc and mips64.

* 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>.
(__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
ChangeLog
sysdeps/ieee754/ldbl-128/k_tanl.c
sysdeps/ieee754/ldbl-128ibm/k_tanl.c