Re: [PATCH] clear VLA bounds from all arguments (PR 97172)

2021-02-19 Thread Martin Sebor via Gcc-patches
On 2/18/21 8:51 PM, Jeff Law wrote: On 2/18/21 7:23 PM, Martin Sebor wrote: The fix for PR 97172 that removes non-constant VLA bounds from attribute access is incomplete: it inadvertently removes the bounds corresponding to just the first VLA argument, and not from subsequent arguments. The a

Re: [PATCH] clear VLA bounds from all arguments (PR 97172)

2021-02-18 Thread Jeff Law via Gcc-patches
On 2/18/21 7:23 PM, Martin Sebor wrote: > The fix for PR 97172 that removes non-constant VLA bounds from > attribute access is incomplete: it inadvertently removes the bounds > corresponding to just the first VLA argument, and not from subsequent > arguments. > > The attached change removes the

[PATCH] clear VLA bounds from all arguments (PR 97172)

2021-02-18 Thread Martin Sebor via Gcc-patches
The fix for PR 97172 that removes non-constant VLA bounds from attribute access is incomplete: it inadvertently removes the bounds corresponding to just the first VLA argument, and not from subsequent arguments. The attached change removes the vestigial condition that causes this bug. Since it's