Re: [PATCH] Fix PR 100944 - Array boundary misscalculation

2021-06-15 Thread Martin Sebor via Gcc-patches
On 6/15/21 12:23 AM, Richard Biener wrote: On Mon, Jun 14, 2021 at 7:32 PM Martin Sebor wrote: On 6/14/21 12:36 AM, Richard Biener via Gcc-patches wrote: On Sun, Jun 13, 2021 at 7:00 PM Giuliano Belinassi via Gcc-patches wrote: This patch proposes a fix to PR 100944 by improving the array

Re: [PATCH] Fix PR 100944 - Array boundary misscalculation

2021-06-14 Thread Richard Biener via Gcc-patches
On Mon, Jun 14, 2021 at 7:32 PM Martin Sebor wrote: > > On 6/14/21 12:36 AM, Richard Biener via Gcc-patches wrote: > > On Sun, Jun 13, 2021 at 7:00 PM Giuliano Belinassi via Gcc-patches > > wrote: > >> > >> This patch proposes a fix to PR 100944 by improving the array boundary > >> computation wh

Re: [PATCH] Fix PR 100944 - Array boundary misscalculation

2021-06-14 Thread Martin Sebor via Gcc-patches
On 6/14/21 4:29 PM, Giuliano Belinassi wrote: Hi, I will give an quick answer to this mail. I will analyze carefully what richi said when I have more time available. On Mon, 2021-06-14 at 15:55 -0600, Martin Sebor wrote: On 6/13/21 11:00 AM, Giuliano Belinassi wrote: This patch proposes a fix

Re: [PATCH] Fix PR 100944 - Array boundary misscalculation

2021-06-14 Thread Giuliano Belinassi via Gcc-patches
Hi, I will give an quick answer to this mail. I will analyze carefully what richi said when I have more time available. On Mon, 2021-06-14 at 15:55 -0600, Martin Sebor wrote: > On 6/13/21 11:00 AM, Giuliano Belinassi wrote: > > This patch proposes a fix to PR 100944 by improving the array > > bou

Re: [PATCH] Fix PR 100944 - Array boundary misscalculation

2021-06-14 Thread Martin Sebor via Gcc-patches
On 6/13/21 11:00 AM, Giuliano Belinassi wrote: This patch proposes a fix to PR 100944 by improving the array boundary Thanks for the patch! computation when the flexible array has no clear constructor: if no constructor were found in the input code, we compute the size of the array as: of

Re: [PATCH] Fix PR 100944 - Array boundary misscalculation

2021-06-14 Thread Martin Sebor via Gcc-patches
On 6/14/21 12:36 AM, Richard Biener via Gcc-patches wrote: On Sun, Jun 13, 2021 at 7:00 PM Giuliano Belinassi via Gcc-patches wrote: This patch proposes a fix to PR 100944 by improving the array boundary computation when the flexible array has no clear constructor: if no constructor were found

Re: [PATCH] Fix PR 100944 - Array boundary misscalculation

2021-06-13 Thread Richard Biener via Gcc-patches
On Sun, Jun 13, 2021 at 7:00 PM Giuliano Belinassi via Gcc-patches wrote: > > This patch proposes a fix to PR 100944 by improving the array boundary > computation when the flexible array has no clear constructor: if no > constructor were found in the input code, we compute the size of the > array

[PATCH] Fix PR 100944 - Array boundary misscalculation

2021-06-13 Thread Giuliano Belinassi via Gcc-patches
This patch proposes a fix to PR 100944 by improving the array boundary computation when the flexible array has no clear constructor: if no constructor were found in the input code, we compute the size of the array as: offset(array begin) - offset(next element in RECORD_TYPE) If no next element