[patch] libffi darwin x86-32bit, fix return_sc testcase.

Andreas Tobler andreast-list@fgznet.ch
Sun Jan 6 19:00:00 GMT 2008


I committed the attached patch as it causes a failure on x86 linux.

Sorry.

This time tested on linux as well.

Andreas


2008-01-06  Andreas Tobler  <a.tobler@schweiz.org>

	* src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.

Index: src/x86/ffi.c
===================================================================
--- src/x86/ffi.c	(revision 131343)
+++ src/x86/ffi.c	(working copy)
@@ -122,13 +122,12 @@
      case FFI_TYPE_VOID:
  #ifdef X86
      case FFI_TYPE_STRUCT:
-#else
-# if defined(X86) || defined(X86_DARWIN)
+#endif
+#if defined(X86) || defined(X86_DARWIN)
      case FFI_TYPE_UINT8:
      case FFI_TYPE_UINT16:
      case FFI_TYPE_SINT8:
      case FFI_TYPE_SINT16:
-# endif
  #endif

      case FFI_TYPE_SINT64:



More information about the Gcc-patches mailing list