From patchwork Tue Mar 15 14:18:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 597553 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qPcDg4MGFz9sBf for ; Wed, 16 Mar 2016 01:18:58 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=J7Q0CzZs; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=nO9OY9OSNoJ9UirdNQjRa257xqr4CGnayN4vwreQdc4EEeLH5dWSY Iv90ziP8q5Fy9zJC5mpqJAE1XZOpxJAJGI/GOOmaylwffXcHv/s2C0b9Ed0MXVB5 86AKeTfMYFfWdhL3PcllQZEKX2Tcyv6LovpWHQE+y0AHa3/B0N1BKY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; s= default; bh=cduH8u3i0BwsXYg7LcaYE8Ye3j8=; b=J7Q0CzZs50K6sQmHc5TH x2SBcq1D6xf2SFzd2po94eiio1h/y/MUOYtRga3XURH3vw3nGfX5P4b/Uybd2Cr5 GRyFnFPKIr6HAnZeCalwIdfofuRmF8xj4nJtwJPx/XTtRXga/oYx3U3SxaTE8OfT LvHxBdhLvfLzLB+MuFUWoNA= Received: (qmail 7296 invoked by alias); 15 Mar 2016 14:18:49 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 7262 invoked by uid 89); 15 Mar 2016 14:18:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=273, 296, 29, 7, 29, 6 X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Tue, 15 Mar 2016 14:18:47 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 89233AD1C for ; Tue, 15 Mar 2016 14:18:43 +0000 (UTC) From: Andreas Schwab To: gcc-patches@gcc.gnu.org Subject: [PATCH] libffi: define FFI_SIZEOF_JAVA_RAW for aarch64 ILP32 X-Yow: I have a TINY BOWL in my HEAD Date: Tue, 15 Mar 2016 15:18:43 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Like x32, aarch64 ILP32 needs to define FFI_SIZEOF_JAVA_RAW. This fixes the java interpreter. Andreas. * src/aarch64/ffitarget.h (FFI_SIZEOF_JAVA_RAW) [__ILP32__]: Define. --- libffi/src/aarch64/ffitarget.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libffi/src/aarch64/ffitarget.h b/libffi/src/aarch64/ffitarget.h index 2862ec7..34200ad 100644 --- a/libffi/src/aarch64/ffitarget.h +++ b/libffi/src/aarch64/ffitarget.h @@ -29,6 +29,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef LIBFFI_ASM #ifdef __ILP32__ #define FFI_SIZEOF_ARG 8 +#define FFI_SIZEOF_JAVA_RAW 4 typedef unsigned long long ffi_arg; typedef signed long long ffi_sarg; #else