public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-9574] epiphany: Fix up epiphany_setup_incoming_varargs [PR114175]
@ 2024-03-20 16:01 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2024-03-20 16:01 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:b089ceb365e5132e4b2a8acfb18127bbee2d0d00
commit r14-9574-gb089ceb365e5132e4b2a8acfb18127bbee2d0d00
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Mar 20 16:59:21 2024 +0100
epiphany: Fix up epiphany_setup_incoming_varargs [PR114175]
Like for x86-64, alpha or rs6000, epiphany seems to be affected too.
Just visually checked differences in c23-stdarg-9.c assembly in a cross
without/with the patch, committed to trunk.
2024-03-20 Jakub Jelinek <jakub@redhat.com>
PR target/114175
* config/epiphany/epiphany.cc (epiphany_setup_incoming_varargs): Only
skip function arg advance for TYPE_NO_NAMED_ARGS_STDARG_P functions
if arg.type is NULL.
Diff:
---
gcc/config/epiphany/epiphany.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/config/epiphany/epiphany.cc b/gcc/config/epiphany/epiphany.cc
index d6c057f1685..79254c20254 100644
--- a/gcc/config/epiphany/epiphany.cc
+++ b/gcc/config/epiphany/epiphany.cc
@@ -728,7 +728,8 @@ epiphany_setup_incoming_varargs (cumulative_args_t cum,
gcc_assert (arg.mode != BLKmode);
next_cum = *get_cumulative_args (cum);
- 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)
next_cum = (ROUND_ADVANCE_CUM (next_cum, arg.mode, arg.type)
+ ROUND_ADVANCE_ARG (arg.mode, arg.type));
first_anon_arg = next_cum;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-20 16:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-20 16:01 [gcc r14-9574] epiphany: Fix up epiphany_setup_incoming_varargs [PR114175] Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).