Re: [PATCH] correct MEM_REF bounds checking of arrays (PR 91584)

2019-08-30 Thread Richard Biener
On Fri, Aug 30, 2019 at 12:36 AM Martin Sebor wrote: > > The -Warray-bounds enhancement I added to GCC 9 causes false > positives in languages like Fortran whose first array element > is at a non-zero index. The attached patch has the function > responsible for the warning normalize the array bou

[PATCH] correct MEM_REF bounds checking of arrays (PR 91584)

2019-08-29 Thread Martin Sebor
The -Warray-bounds enhancement I added to GCC 9 causes false positives in languages like Fortran whose first array element is at a non-zero index. The attached patch has the function responsible for the warning normalize the array bounds to always start at zero to avoid these false positives. Te