diff options
author | Joseph Myers <joseph@codesourcery.com> | 2015-05-22 20:13:44 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2015-05-22 20:13:44 +0000 |
commit | 0c3717e7827969895f6ffe57c66e1612358ce6b1 (patch) | |
tree | 63515633144d67d549bc62b4681c59309a37dba0 /ChangeLog | |
parent | 31a8780d0b41934c6ab5160f834f56a2d5d97f4a (diff) | |
download | glibc-0c3717e7827969895f6ffe57c66e1612358ce6b1.tar.gz |
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2015-05-22 Joseph Myers <joseph@codesourcery.com> + * 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. + * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in switch statement into default case. * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise. |