This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Fwd: [patch committed] SH: Tweak libffi ffi.c]


Thanks Andrew. I've just created libffi-3.0.6 with this and one other pending sh fix.

http://sources.redhat.com/libffi

AG


Andrew Haley wrote:

------------------------------------------------------------------------


Subject:
[patch committed] SH: Tweak libffi ffi.c
From:
Kaz Kojima <kkojima@rr.iij4u.or.jp>
Date:
Wed, 16 Jul 2008 22:59:02 +0900 (JST)
To:
gcc-patches@gcc.gnu.org, java-patches@gcc.gnu.org

To:
gcc-patches@gcc.gnu.org, java-patches@gcc.gnu.org


Hi,


Here is a one-liner to fix the failures of libffi closure tests
on SH.  I've committed it as an obvious one.  It's regtested
on sh4-unknown-linux-gnu with no new failures.

Regards,
	kaz
--
2008-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>

	* src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
	int.

diff -uprN ORIG/trunk/libffi/src/sh/ffi.c LOCAL/trunk/libffi/src/sh/ffi.c
--- ORIG/trunk/libffi/src/sh/ffi.c 2007-03-08 05:48:03.000000000 +0900
+++ LOCAL/trunk/libffi/src/sh/ffi.c 2008-07-16 20:18:29.000000000 +0900
@@ -1,5 +1,6 @@
/* -----------------------------------------------------------------------
- ffi.c - Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007 Kaz Kojima
+ ffi.c - Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008
+ Kaz Kojima
SuperH Foreign Function Interface @@ -459,7 +460,7 @@ ffi_prep_closure_loc (ffi_closure* closu
void *codeloc)
{
unsigned int *tramp;
- unsigned short insn;
+ unsigned int insn;
FFI_ASSERT (cif->abi == FFI_GCC_SYSV);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]