26 lines
737 B
Text
26 lines
737 B
Text
$NetBSD: patch-ah,v 1.1 2009/09/20 13:10:30 tnn Exp $
|
|
|
|
--- src/alpha/ffi.c.orig 2008-02-26 18:34:36.000000000 +0100
|
|
+++ src/alpha/ffi.c
|
|
@@ -27,6 +27,9 @@
|
|
#include <ffi.h>
|
|
#include <ffi_common.h>
|
|
#include <stdlib.h>
|
|
+#ifndef __GNUC__
|
|
+#include <c_asm.h>
|
|
+#endif
|
|
|
|
/* Force FFI_TYPE_LONGDOUBLE to be different than FFI_TYPE_DOUBLE;
|
|
all further uses in this file will refer to the 128-bit type. */
|
|
@@ -195,7 +198,11 @@ ffi_prep_closure_loc (ffi_closure* closu
|
|
instead, since both Compaq as and gas can handle it.
|
|
|
|
0x86 is PAL_imb in Tru64 UNIX <alpha/pal.h>. */
|
|
+#ifdef __GNUC__
|
|
asm volatile ("call_pal 0x86" : : : "memory");
|
|
+#else /* Compaq C compiler */
|
|
+ asm ("call_pal 0x86");
|
|
+#endif
|
|
|
|
return FFI_OK;
|
|
}
|