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]

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


--- Begin Message ---
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);
 

--- End Message ---

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