arc: Fix up arc_setup_incoming_varargs [PR114175]
Like for x86-64, alpha or rs6000, arc seems to be affected too. 2024-03-19 Jakub Jelinek <jakub@redhat.com> PR target/114175 * config/arc/arc.cc (arc_setup_incoming_varargs): Only skip arc_function_arg_advance for TYPE_NO_NAMED_ARGS_STDARG_P functions if arg.type is NULL.
This commit is contained in:
parent
c1fd4589c2
commit
1f25771467
1 changed files with 2 additions and 1 deletions
|
@ -2352,7 +2352,8 @@ arc_setup_incoming_varargs (cumulative_args_t args_so_far,
|
|||
/* We must treat `__builtin_va_alist' as an anonymous arg. */
|
||||
|
||||
next_cum = *get_cumulative_args (args_so_far);
|
||||
if (!TYPE_NO_NAMED_ARGS_STDARG_P (TREE_TYPE (current_function_decl)))
|
||||
if (!TYPE_NO_NAMED_ARGS_STDARG_P (TREE_TYPE (current_function_decl))
|
||||
|| arg.type != NULL_TREE)
|
||||
arc_function_arg_advance (pack_cumulative_args (&next_cum), arg);
|
||||
first_anon_arg = next_cum;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue