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
This commit is contained in:
H.J. Lu 2012-07-18 19:19:34 +00:00 committed by H.J. Lu
parent a30b29c35e
commit d6a89122a6
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2012-07-18 H.J. Lu <hongjiu.lu@intel.com>
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.
2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated.

View File

@ -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