blob: fd636e3ab5ce5279ac28b7fbf9b2302d5f303f82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
$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;
}
|