[PATCH] clear more front end VLA bounds from IL (PR 97172)

Richard Biener richard.guenther@gmail.com
Wed Feb 24 08:56:47 GMT 2021


On Tue, Feb 23, 2021 at 8:53 PM Martin Sebor via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> Adding attribute access to declarations of functions that take
> VLA arguments relies on the front end adding attribute "arg spec"
> to each VLA parameter.  Like the VLA bounds in attribute access,
> the same VLA bounds in attribute "arg spec" can cause trouble
> during LTO streaming which expects front end trees to have been
> either gimplified or removed.  For some reason, with arg spec
> the LTO abort happens only with -fpic/-shared and so it escaped
> testing in the prior fixes.
>
> The attached patch clears the bounds from attribute "arg spec."

OK.

Richard.

> Martin


More information about the Gcc-patches mailing list