From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27471 invoked by alias); 16 Jul 2012 20:14:39 -0000 Received: (qmail 27450 invoked by uid 22791); 16 Jul 2012 20:14:35 -0000 X-SWARE-Spam-Status: No, hits=-5.1 required=5.0 tests=AWL,BAYES_00,FSL_FREEMAIL_1,KHOP_RCVD_UNTRUST,NO_DNS_FOR_FROM,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga01.intel.com (HELO mga01.intel.com) (192.55.52.88) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 16 Jul 2012 20:14:09 +0000 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 16 Jul 2012 13:14:09 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.135]) by fmsmga001.fm.intel.com with ESMTP; 16 Jul 2012 13:14:09 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id E852280CCE; Mon, 16 Jul 2012 13:14:08 -0700 (PDT) Date: Mon, 16 Jul 2012 20:14:00 -0000 From: "H.J. Lu" To: libffi-discuss@sourceware.org Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] Define FFI_SIZEOF_JAVA_RAW to 4 for x32 Message-ID: <20120716201408.GA5091@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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 X-SW-Source: 2012/txt/msg00213.txt.bz2 Hi, This patch defines FFI_SIZEOF_JAVA_RAW to 4 for x32, similar to MIPS n32. It fixed: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53982 Thanks. H.J. --- ChangeLog | 5 +++++ src/x86/ffitarget.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ba44189..303aac0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-07-16 H.J. Lu + + * src/x86//ffitarget.h (FFI_SIZEOF_JAVA_RAW): Defined to 4 for + x32. + 2012-05-05 Nicolas Lelong * libffi.xcodeproj/project.pbxproj: Fixes. diff --git a/src/x86/ffitarget.h b/src/x86/ffitarget.h index f442654..46f294c 100644 --- a/src/x86/ffitarget.h +++ b/src/x86/ffitarget.h @@ -61,8 +61,9 @@ typedef unsigned long long ffi_arg; typedef long long ffi_sarg; #endif #else -#if defined __x86_64__ && !defined __LP64__ +#if defined __x86_64__ && defined __ILP32__ #define FFI_SIZEOF_ARG 8 +#define FFI_SIZEOF_JAVA_RAW 4 typedef unsigned long long ffi_arg; typedef long long ffi_sarg; #else -- 1.7.10.4