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 vestigial condition that causes this
> bug.  Since it's behind a build failure in a Fedora package (cava?)
> I'll commit it under the "obvious" clause tomorrow if there are no
> concerns.
>
> Martin
>
>
> gcc-97172-2.diff
>
> PR c/97172 - ICE: tree code 'ssa_name' is not supported in LTO streams
>
> gcc/ChangeLog:
>
>       * attribs.c (init_attr_rdwr_indices): Guard vblist use.
>       (attr_access::free_lang_data): Remove a spurious test.
>
> gcc/testsuite/ChangeLog:
>
>       * gcc.dg/pr97172.c: Add test cases.
OK. Thanks.

Jeff

Reply via email to