[PATCH] clear VLA bounds from all arguments (PR 97172)
Martin Sebor
msebor@gmail.com
Fri Feb 19 18:08:01 GMT 2021
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 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.
I just committed this change in g:3599ecb6a01.
Martin
More information about the Gcc-patches
mailing list