Re: [PATCH] Fix PR61657 (undefined behavior in loop-iv.c)

2015-08-21 Thread Jeff Law
On 08/21/2015 07:40 AM, Markus Trippelsdorf wrote: bootstrap-ubsan shows: loop-iv.c:2626:14: runtime error: signed integer overflow: 9223372036854775806 - -9223372036854775808 cannot be represented in type 'long int' Fixed by moving the variables in question from signed to unsigned. Bootstr

[PATCH] Fix PR61657 (undefined behavior in loop-iv.c)

2015-08-21 Thread Markus Trippelsdorf
bootstrap-ubsan shows: loop-iv.c:2626:14: runtime error: signed integer overflow: 9223372036854775806 - -9223372036854775808 cannot be represented in type 'long int' Fixed by moving the variables in question from signed to unsigned. Bootstrapped and tested on ppc64le. OK for trunk and gcc-5 bra