Lines 1-43
Link Here
|
1 |
--- include/cgen/basic-ops.h.orig 2013-03-07 17:31:21.000000000 +0100 |
|
|
2 |
+++ include/cgen/basic-ops.h 2013-03-07 17:31:28.000000000 +0100 |
3 |
@@ -24,11 +24,16 @@ |
4 |
|
5 |
#include <assert.h> |
6 |
|
7 |
-#if defined (__GNUC__) && ! defined (SEMOPS_DEFINE_INLINE) |
8 |
+#if defined (__GNUC__) && ! defined (SEMOPS_DEFINE_INLINE) && ! defined (__clang__) |
9 |
#define SEMOPS_DEFINE_INLINE |
10 |
#define SEMOPS_INLINE extern inline |
11 |
#else |
12 |
-#define SEMOPS_INLINE |
13 |
+# if defined (__clang__) && ! defined (SEMOPS_DEFINE_INLINE) |
14 |
+# define SEMOPS_DEFINE_INLINE |
15 |
+# define SEMOPS_INLINE static inline |
16 |
+# else |
17 |
+# define SEMOPS_INLINE |
18 |
+# endif |
19 |
#endif |
20 |
|
21 |
/* These don't really have a mode. */ |
22 |
@@ -295,11 +300,16 @@ |
23 |
significant and word number 0 is the most significant word. |
24 |
??? May also wish an endian-dependent version. Later. */ |
25 |
|
26 |
-QI SUBWORDSIQI (SI, int); |
27 |
-HI SUBWORDSIHI (SI, int); |
28 |
-QI SUBWORDDIQI (DI, int); |
29 |
-HI SUBWORDDIHI (DI, int); |
30 |
-SI SUBWORDDISI (DI, int); |
31 |
+#if defined (__clang__) && defined (SEMOPS_DEFINE_INLINE) |
32 |
+#define SEMOPS_STATIC static |
33 |
+#else |
34 |
+#define SEMOPS_STATIC |
35 |
+#endif |
36 |
+SEMOPS_STATIC QI SUBWORDSIQI (SI, int); |
37 |
+SEMOPS_STATIC HI SUBWORDSIHI (SI, int); |
38 |
+SEMOPS_STATIC QI SUBWORDDIQI (DI, int); |
39 |
+SEMOPS_STATIC HI SUBWORDDIHI (DI, int); |
40 |
+SEMOPS_STATIC SI SUBWORDDISI (DI, int); |
41 |
|
42 |
#ifdef SEMOPS_DEFINE_INLINE |
43 |
|