Re: [committed] avoid assuming array indices are zero-based (PR 92952)

2019-12-16 Thread Martin Sebor
On 12/16/19 3:44 PM, Jakub Jelinek wrote: On Mon, Dec 16, 2019 at 03:28:29PM -0700, Martin Sebor wrote: PR middle-end/92952 - gfortran.dg/lto/pr87689 FAILs gcc/ChangeLog: PR middle-end/92952 * builtins.c (compute_objsize): Adjust offset by the array low bound. Index:

Re: [committed] avoid assuming array indices are zero-based (PR 92952)

2019-12-16 Thread Jakub Jelinek
On Mon, Dec 16, 2019 at 03:28:29PM -0700, Martin Sebor wrote: > PR middle-end/92952 - gfortran.dg/lto/pr87689 FAILs > > gcc/ChangeLog: > > PR middle-end/92952 > * builtins.c (compute_objsize): Adjust offset by the array low bound. > > Index: gcc/builtins.c >

[committed] avoid assuming array indices are zero-based (PR 92952)

2019-12-16 Thread Martin Sebor
The gfortran.dg/lto/pr87689 test fails as a result of a -Wstringop-overflow warning. The warning is only enabled for the C family of languages and LTO but it looks like LTO obviates this distinction. Last week's enhancement to compute_objsize seems like the most likely culprit, although the