This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Fri, Aug 30, 2019 at 12:36 AM Martin Sebor <msebor@gmail.com> 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 bounds to
> always start at zero to avoid these false positives.
>
> Tested on x86_64-linux.

OK.

Thanks,
Richard.

> Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]