View | Details | Raw Unified | Return to bug 180257
Collapse All | Expand All

(-)devel/gdb/Makefile (+1 lines)
Lines 13-18 COMMENT= GNU GDB of newer version than c Link Here
13
LICENSE=	GPLv3
13
LICENSE=	GPLv3
14
14
15
USE_BZIP2=	yes
15
USE_BZIP2=	yes
16
USE_CSTD=	gnu89
16
USE_GMAKE=	yes
17
USE_GMAKE=	yes
17
USES=		iconv
18
USES=		iconv
18
GNU_CONFIGURE=	yes
19
GNU_CONFIGURE=	yes
(-)devel/gdb/files/patch-include-cgen-basic-ops.h (-43 lines)
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
 

Return to bug 180257