glibc/sysdeps
Stefan Liebler b65f0b7b2e Get rid of array-bounds warning in __kernel_rem_pio2[f] with gcc 6.1 -O3.
On s390x I get the following werror when build with gcc 6.1 (or current gcc head) and -O3:
../sysdeps/ieee754/dbl-64/k_rem_pio2.c: In function ‘__kernel_rem_pio2’:
../sysdeps/ieee754/dbl-64/k_rem_pio2.c:254:18: error: array subscript is below array bounds [-Werror=array-bounds]
    for (k = 1; iq[jk - k] == 0; k++)
                ~~^~~~~~~~
I get the same error with sysdeps/ieee754/flt-32/k_rem_pio2f.c.

This patch adds DIAG_* macros around it.

ChangeLog:

	* sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
	Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
	* sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
	Likewise.
2016-08-18 12:20:35 +02:00
..
aarch64 Add fesetexcept: aarch64. 2016-08-16 16:16:57 +00:00
alpha Add fesetexcept: alpha. 2016-08-16 16:17:42 +00:00
arm Add fesetexcept: arm. 2016-08-16 16:18:24 +00:00
generic Support for type-generic libm function implementations libm 2016-08-17 14:06:03 -05:00
gnu Define UDP_ENCAP_* from Linux 4.7 in netinet/udp.h. 2016-08-03 12:13:16 +00:00
hppa Add fesetexcept: hppa. 2016-08-16 16:19:03 +00:00
i386 Add fesetexcept. 2016-08-16 16:16:10 +00:00
ia64 Do not override objects in libc.a in other static libraries [BZ #20452] 2016-08-17 14:57:01 +02:00
ieee754 Get rid of array-bounds warning in __kernel_rem_pio2[f] with gcc 6.1 -O3. 2016-08-18 12:20:35 +02:00
init_array Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
m68k Add fesetexcept: m68k. 2016-08-16 16:20:33 +00:00
mach Fix recvmsg returning SIGLOST on PF_LOCAL sockets 2016-08-09 01:42:50 +02:00
microblaze Remove atomic_compare_and_exchange_bool_rel. 2016-06-24 23:04:40 +03:00
mips Do not override objects in libc.a in other static libraries [BZ #20452] 2016-08-17 14:57:01 +02:00
nacl Add fesetexcept. 2016-08-16 16:16:10 +00:00
nios2 elf: Consolidate machine-agnostic DTV definitions in <dl-dtv.h> 2016-06-20 14:31:40 +02:00
nptl Increase fork signal safety for single-threaded processes [BZ #19703] 2016-05-12 15:26:55 +02:00
posix getaddrinfo: Convert from extend_alloca to struct scratch_buffer 2016-05-12 14:07:56 +02:00
powerpc Add fesetexcept: powerpc. 2016-08-16 16:22:12 +00:00
pthread Revert "aio: fix newp->running data race" 2016-05-04 15:52:30 +02:00
s390 Do not override objects in libc.a in other static libraries [BZ #20452] 2016-08-17 14:57:01 +02:00
sh Add fesetexcept: sh. 2016-08-16 16:25:10 +00:00
sparc Add fesetexcept: sparc. 2016-08-16 16:25:57 +00:00
tile Remove atomic_compare_and_exchange_bool_rel. 2016-06-24 23:04:40 +03:00
unix Do not override objects in libc.a in other static libraries [BZ #20452] 2016-08-17 14:57:01 +02:00
wordsize-32 Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
wordsize-64 Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
x86 Fixed wrong vector sincos/sincosf ABI to have it compatible with 2016-07-01 14:15:38 +03:00
x86_64 Add fesetexcept. 2016-08-16 16:16:10 +00:00