public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ARM/heads/morello)] Hybrid Morello: Minor fix to va_args handling
@ 2022-05-05 12:04 Matthew Malcomson
0 siblings, 0 replies; only message in thread
From: Matthew Malcomson @ 2022-05-05 12:04 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:32c8f1827b9e5f1142818075ef2f3784c5037c73
commit 32c8f1827b9e5f1142818075ef2f3784c5037c73
Author: Stam Markianos-Wright <stam.markianos-wright@arm.com>
Date: Wed Apr 6 16:31:52 2022 +0100
Hybrid Morello: Minor fix to va_args handling
A small fix to va_args handling for Hybrid Morello:
The `If the argument is anonymous` part of the B.3
AAPCS rule had been omitted from the if condition.
This patch simply adds it in.
Diff:
---
gcc/config/aarch64/aarch64.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index 0cc5467a29a..5f8419cfca0 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -5896,6 +5896,7 @@ aarch64_pass_by_reference_1 (CUMULATIVE_ARGS *pcum,
by a pointer to the copy. */
if (TARGET_CAPABILITY_HYBRID
&& arg.type
+ && !arg.named
&& (capability_type_p (arg.type) || capcom == CAPCOM_SOME))
return true;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-05 12:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05 12:04 [gcc(refs/vendors/ARM/heads/morello)] Hybrid Morello: Minor fix to va_args handling Matthew Malcomson
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).