Re: [PATCH] waccess: Fix up pass_waccess::check_alloc_size_call [PR102009]

2021-11-16 Thread Richard Biener via Gcc-patches
On Tue, 16 Nov 2021, Jakub Jelinek wrote: > Hi! > > This function punts if the builtins have no arguments, but as can be seen > on the testcase, even if it has some arguments but alloc_size attribute's > arguments point to arguments that aren't passed, we get a warning earlier > from the FE but s

[PATCH] waccess: Fix up pass_waccess::check_alloc_size_call [PR102009]

2021-11-16 Thread Jakub Jelinek via Gcc-patches
Hi! This function punts if the builtins have no arguments, but as can be seen on the testcase, even if it has some arguments but alloc_size attribute's arguments point to arguments that aren't passed, we get a warning earlier from the FE but should punt rather than ICE on it. Other users of alloc_