https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114175
--- Comment #4 from Edwin Lu <ewlu at rivosinc dot com> ---
(In reply to Jakub Jelinek from comment #3)
> (In reply to Edwin Lu from comment #2)
> > Applied the patch on top of r14-9243-g02ca9d3f0c5. Looks like the problem is
> > still there.
> > - else if (TYPE_NO_NAMED_ARGS_STDARG_P (funtype))
> > + else if (TYPE_NO_NAMED_ARGS_STDARG_P (funtype)
> > + && ! targetm.calls.pretend_outgoing_varargs_named (args_so_far))
> > n_named_args = 0;
>
> Can you try
> ;
> on the above line instead of
> n_named_args = 0;
>
> That is the only case I'm not really sure about.
> Otherwise it is likely to be something in the backend.
so nop if (TYPE_NO_NAMED_ARGS_STDARG_P (funtype)
&& ! targetm.calls.pretend_outgoing_varargs_named (args_so_far))?