Skip to content

Commit

Permalink
Define FFI_SIZEOF_JAVA_RAW to 4 for x32
Browse files Browse the repository at this point in the history
	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.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189626 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
hjl committed Jul 18, 2012
1 parent b64804e commit bfa8abb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions libffi/ChangeLog.libgcj
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2012-07-18 H.J. Lu <[email protected]>

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 <[email protected]>

* configure: Regenerated.
Expand Down
3 changes: 2 additions & 1 deletion libffi/src/x86/ffitarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bfa8abb

Please sign in to comment.