From: "H.J. Lu" <hongjiu.lu@intel.com>
To: libffi-discuss@sourceware.org
Cc: gcc-patches@gcc.gnu.org
Subject: [PATCH] Define FFI_SIZEOF_JAVA_RAW to 4 for x32
Date: Mon, 16 Jul 2012 20:14:00 -0000 [thread overview]
Message-ID: <20120716201408.GA5091@intel.com> (raw)
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 <hongjiu.lu@intel.com>
+
+ * 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
next reply other threads:[~2012-07-16 20:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-16 20:14 H.J. Lu [this message]
2012-07-18 16:29 ` H.J. Lu
2012-07-18 18:44 ` Uros Bizjak
2012-07-18 19:11 ` H.J. Lu
2012-07-18 19:13 ` Uros Bizjak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120716201408.GA5091@intel.com \
--to=hongjiu.lu@intel.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=hjl.tools@gmail.com \
--cc=libffi-discuss@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).