From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2049) id EEF293856242; Thu, 5 May 2022 12:04:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EEF293856242 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Matthew Malcomson To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/ARM/heads/morello)] Hybrid Morello: Minor fix to va_args handling X-Act-Checkin: gcc X-Git-Author: Stam Markianos-Wright X-Git-Refname: refs/vendors/ARM/heads/morello X-Git-Oldrev: 38dadd6639ea3fafe9b92fd40dba2cff3ec90844 X-Git-Newrev: 32c8f1827b9e5f1142818075ef2f3784c5037c73 Message-Id: <20220505120459.EEF293856242@sourceware.org> Date: Thu, 5 May 2022 12:04:59 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2022 12:05:00 -0000 https://gcc.gnu.org/g:32c8f1827b9e5f1142818075ef2f3784c5037c73 commit 32c8f1827b9e5f1142818075ef2f3784c5037c73 Author: Stam Markianos-Wright 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;