glibc/sysdeps
Matheus Castanho 9f8b135f76 Fix maybe-uninitialized error on powerpc
The build has been failing on powerpc64le-linux-gnu with GCC 10
due to a maybe-uninitialized error:

../sysdeps/ieee754/dbl-64/mpa.c:875:6: error: ‘w.e’ may be used
uninitialized in this function [-Werror=maybe-uninitialized]
  875 |   EY -= EX;
      |      ^~

The warning is thrown because when __inv is called by __dvd *y is not
initialized and if t == 0 before calling __dbl_mp, EY will stay
uninitialized, as the function does not touch it in this case.

However, since t will be set to 1/t before calling __dbl_mp, t == 0 will
never happen, so we can instruct the compiler to ignore this case, which
suppresses the warning.

Tested on powerpc64le.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2020-01-17 21:02:13 -03:00
..
aarch64 Add libm_alias_finite for _finite symbols 2020-01-03 10:02:04 -03:00
alpha Add libm_alias_finite for _finite symbols 2020-01-03 10:02:04 -03:00
arm Add libm_alias_finite for _finite symbols 2020-01-03 10:02:04 -03:00
csky Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
generic powerpc: Move cache line size to rtld_global_ro 2020-01-17 09:05:03 -03:00
gnu Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
hppa Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
htl htl: Add internal version of __pthread_mutex_timedlock 2020-01-13 20:41:07 +01:00
hurd Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
i386 htl: Add type sizes in bits/pthreadtypes-arch.h and check them 2020-01-13 01:24:43 +01:00
ia64 Linux: Use system call tables during build 2020-01-02 10:18:23 +01:00
ieee754 Fix maybe-uninitialized error on powerpc 2020-01-17 21:02:13 -03:00
init_array Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
m68k Add libm_alias_finite for _finite symbols 2020-01-03 10:02:04 -03:00
mach htl: Add internal version of __pthread_mutex_timedlock 2020-01-13 20:41:07 +01:00
microblaze Linux: Use system call tables during build 2020-01-02 10:18:23 +01:00
mips MIPS: Fix circular definition of __LDBL_MANT_DIG__ in ieee754.h 2020-01-08 14:28:23 -05:00
nios2 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
nptl Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
posix Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
powerpc powerpc32: Fix syntax error in __GLRO macro 2020-01-18 00:43:12 +01:00
pthread Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
riscv Add libm_alias_finite for _finite symbols 2020-01-03 10:02:04 -03:00
s390 Add libm_alias_finite for _finite symbols 2020-01-03 10:02:04 -03:00
sh Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sparc Add libm_alias_finite for _finite symbols 2020-01-03 10:02:04 -03:00
unix Fix tst-pkey.c pkey_alloc return checks and manual 2020-01-17 09:05:03 -03:00
wordsize-32 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
wordsize-64 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
x86 Add libm_alias_finite for _finite symbols 2020-01-03 10:02:04 -03:00
x86_64 Add libm_alias_finite for _finite symbols 2020-01-03 10:02:04 -03:00