From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31415 invoked by alias); 28 Oct 2014 18:54:01 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 31336 invoked by uid 89); 28 Oct 2014 18:54:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qc0-f181.google.com Received: from mail-qc0-f181.google.com (HELO mail-qc0-f181.google.com) (209.85.216.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 28 Oct 2014 18:54:00 +0000 Received: by mail-qc0-f181.google.com with SMTP id w7so1080512qcr.40 for ; Tue, 28 Oct 2014 11:53:57 -0700 (PDT) X-Received: by 10.140.28.131 with SMTP id 3mr1591743qgz.63.1414522437605; Tue, 28 Oct 2014 11:53:57 -0700 (PDT) Received: from anchor.com (50-194-63-110-static.hfc.comcastbusiness.net. [50.194.63.110]) by mx.google.com with ESMTPSA id 69sm1717430qgy.19.2014.10.28.11.53.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Oct 2014 11:53:56 -0700 (PDT) From: Richard Henderson To: libffi-discuss@sourceware.org Cc: Richard Henderson Subject: [PATCH 07/16] aarch64: Treat void return as not passed in registers Date: Tue, 28 Oct 2014 18:54:00 -0000 Message-Id: <1414522393-19169-8-git-send-email-rth@twiddle.net> In-Reply-To: <1414522393-19169-1-git-send-email-rth@twiddle.net> References: <1414522393-19169-1-git-send-email-rth@twiddle.net> X-SW-Source: 2014/txt/msg00135.txt.bz2 From: Richard Henderson This lets us do less post-processing when there's no return value. --- src/aarch64/ffi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c index 58d088b..6c338e1 100644 --- a/src/aarch64/ffi.c +++ b/src/aarch64/ffi.c @@ -383,6 +383,7 @@ is_register_candidate (ffi_type *ty) switch (ty->type) { case FFI_TYPE_VOID: + return 0; case FFI_TYPE_FLOAT: case FFI_TYPE_DOUBLE: case FFI_TYPE_LONGDOUBLE: -- 1.9.3