[PATCH] Get rid of array-bounds warning in __kernel_rem_pio2[f] with gcc 6.1 -O3.
Stefan Liebler
stli@linux.vnet.ibm.com
Tue Aug 2 08:37:00 GMT 2016
On 08/01/2016 04:12 PM, Mike Frysinger wrote:
> On 25 Jul 2016 17:55, Stefan Liebler wrote:
>> + /* On s390x gcc 6.1 -O3 produces the warning "array subscript is below
>> + array bounds [-Werror=array-bounds]". Only __ieee754_rem_pio2l()
>> + calls __kernel_rem_pio2f() for normal numbers and |x| > 3pi/4. Thus
>> + x can't be zero and ipio2 is not zero, too. Thus not all iq[]
>> + values can't be zero. */
>
> GNU style puts two spaces after the period
> -mike
>
Oops. I missed that.
Here is an update.
Thanks.
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20160802_k_rem_pio2_warraybounds.patch
Type: text/x-patch
Size: 2423 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160802/d0d33582/attachment.bin>
More information about the Libc-alpha
mailing list