On Tue, Mar 15, 2016 at 03:18:43PM +0100, Andreas Schwab wrote:
> Like x32, aarch64 ILP32 needs to define FFI_SIZEOF_JAVA_RAW.  This fixes
> the java interpreter.

Should this go through upstream libffi first? I can't remember the right
order for these.

Anyway, this is OK in whatever order is needed.

Thanks,
James

> 
> Andreas.
> 
>       * src/aarch64/ffitarget.h (FFI_SIZEOF_JAVA_RAW) [__ILP32__]:
>       Define.
> ---
>  libffi/src/aarch64/ffitarget.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libffi/src/aarch64/ffitarget.h b/libffi/src/aarch64/ffitarget.h
> index 2862ec7..34200ad 100644
> --- a/libffi/src/aarch64/ffitarget.h
> +++ b/libffi/src/aarch64/ffitarget.h
> @@ -29,6 +29,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
>  #ifndef LIBFFI_ASM
>  #ifdef __ILP32__
>  #define FFI_SIZEOF_ARG 8
> +#define FFI_SIZEOF_JAVA_RAW  4
>  typedef unsigned long long ffi_arg;
>  typedef signed long long ffi_sarg;
>  #else
> -- 
> 2.7.3
> 
> -- 
> Andreas Schwab, SUSE Labs, sch...@suse.de
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."
> 

Reply via email to