From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32661 invoked by alias); 28 Oct 2014 18:54:12 -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 32604 invoked by uid 89); 28 Oct 2014 18:54:11 -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-f174.google.com Received: from mail-qc0-f174.google.com (HELO mail-qc0-f174.google.com) (209.85.216.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 28 Oct 2014 18:54:10 +0000 Received: by mail-qc0-f174.google.com with SMTP id r5so1076726qcx.19 for ; Tue, 28 Oct 2014 11:54:08 -0700 (PDT) X-Received: by 10.140.27.164 with SMTP id 33mr7332332qgx.57.1414522446968; Tue, 28 Oct 2014 11:54:06 -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.54.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Oct 2014 11:54:06 -0700 (PDT) From: Richard Henderson To: libffi-discuss@sourceware.org Cc: Richard Henderson Subject: [PATCH 13/16] aarch64: Remove aarch64_flags Date: Tue, 28 Oct 2014 18:54:00 -0000 Message-Id: <1414522393-19169-14-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/msg00141.txt.bz2 From: Richard Henderson This field was useless from the start, since the normal flags field is available for backend use. --- src/aarch64/ffi.c | 5 +---- src/aarch64/ffitarget.h | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c index f69c350..b3e0b16 100644 --- a/src/aarch64/ffi.c +++ b/src/aarch64/ffi.c @@ -436,7 +436,7 @@ ffi_prep_cif_machdep (ffi_cif *cif) { ffi_type *rtype = cif->rtype; size_t bytes = cif->bytes; - int flags, aarch64_flags, i, n; + int flags, i, n; switch (rtype->type) { @@ -496,11 +496,9 @@ ffi_prep_cif_machdep (ffi_cif *cif) abort(); } - aarch64_flags = 0; for (i = 0, n = cif->nargs; i < n; i++) if (is_vfp_type (cif->arg_types[i])) { - aarch64_flags = AARCH64_FLAG_ARG_V; flags |= AARCH64_FLAG_ARG_V; break; } @@ -508,7 +506,6 @@ ffi_prep_cif_machdep (ffi_cif *cif) /* Round the stack up to a multiple of the stack alignment requirement. */ cif->bytes = ALIGN(bytes, 16); cif->flags = flags; - cif->aarch64_flags = aarch64_flags; #if defined (__APPLE__) cif->aarch64_nfixedargs = 0; #endif diff --git a/src/aarch64/ffitarget.h b/src/aarch64/ffitarget.h index b488bbe..6d6d3e6 100644 --- a/src/aarch64/ffitarget.h +++ b/src/aarch64/ffitarget.h @@ -49,9 +49,7 @@ typedef enum ffi_abi #if defined (__APPLE__) #define FFI_TARGET_SPECIFIC_VARIADIC -#define FFI_EXTRA_CIF_FIELDS unsigned aarch64_flags; unsigned aarch64_nfixedargs -#else -#define FFI_EXTRA_CIF_FIELDS unsigned aarch64_flags +#define FFI_EXTRA_CIF_FIELDS unsigned aarch64_nfixedargs #endif #endif -- 1.9.3