Re: [PATCH] tree-inline: Fix up __builtin_va_arg_pack handling [PR100898]

2021-06-06 Thread Richard Biener
On Sun, 6 Jun 2021, Jakub Jelinek wrote: > Hi! > > The following testcase ICEs, because gimple_call_arg_ptr (..., 0) > asserts that there is at least one argument, while we were using > it even if we didn't copy anything just to get a pointer from/to which > the zero arguments should be copied. >

[PATCH] tree-inline: Fix up __builtin_va_arg_pack handling [PR100898]

2021-06-06 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase ICEs, because gimple_call_arg_ptr (..., 0) asserts that there is at least one argument, while we were using it even if we didn't copy anything just to get a pointer from/to which the zero arguments should be copied. Fixed by guarding the memcpy calls. Also, the code wa