[PATCH] Get rid of array-bounds warning in __kernel_rem_pio2[f] with gcc 6.1 -O3.

Stefan Liebler stli@linux.vnet.ibm.com
Wed Aug 10 10:08:00 GMT 2016


PING

On 08/02/2016 10:37 AM, Stefan Liebler wrote:
> 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



More information about the Libc-alpha mailing list