Re: [PATCH] expander: Fix ICE in maybe_warn_rdwr_sizes [PR96335]

2020-07-28 Thread Richard Biener
On Tue, 28 Jul 2020, Jakub Jelinek wrote: > Hi! > > The following testcase ICEs in maybe_warn_rdwr_sizes. The problem is that > the caller uses its fndecl and fntype variables to fill up rdwr_map, and > the fntype in that case is a prototype with the access attribute and all > the checks needed

[PATCH] expander: Fix ICE in maybe_warn_rdwr_sizes [PR96335]

2020-07-28 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase ICEs in maybe_warn_rdwr_sizes. The problem is that the caller uses its fndecl and fntype variables to fill up rdwr_map, and the fntype in that case is a prototype with the access attribute and all the checks needed for that performed. But the maybe_warn_rdwr_sizes func