diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2012-07-18 19:19:34 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2012-07-18 12:19:34 -0700 |
commit | d6a89122a6b776d0465666d6c0a6163135454545 (patch) | |
tree | 8121169af11323343950f632b8de29278a188cfb /libffi/src | |
parent | a30b29c35eb1244cb521e09d85fc8458b70f2d95 (diff) | |
download | gcc-d6a89122a6b776d0465666d6c0a6163135454545.zip gcc-d6a89122a6b776d0465666d6c0a6163135454545.tar.gz gcc-d6a89122a6b776d0465666d6c0a6163135454545.tar.bz2 |
Define FFI_SIZEOF_JAVA_RAW to 4 for x32
PR libffi/53982
PR libffi/53973
* src/x86/ffitarget.h: Check __ILP32__ instead of __LP64__ for
x32.
(FFI_SIZEOF_JAVA_RAW): Defined to 4 for x32.
From-SVN: r189626
Diffstat (limited to 'libffi/src')
-rw-r--r-- | libffi/src/x86/ffitarget.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libffi/src/x86/ffitarget.h b/libffi/src/x86/ffitarget.h index 54a61212..fc01541 100644 --- a/libffi/src/x86/ffitarget.h +++ b/libffi/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 |