From 5a394431deb3745c04a74d2a109aca075f79afd6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 31 Mar 2015 01:58:01 -0400 Subject: common: cgen-mem/cgen-ops: fix extern inline handling With newer versions of gcc (5.x), the extern inline we're using with the cgen-{mem,ops} modules no longer work. Since this code really wants the gnu inline semantics, use that attribute explicitly. --- sim/common/cgen-ops.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sim/common/cgen-ops.h') diff --git a/sim/common/cgen-ops.h b/sim/common/cgen-ops.h index ef750ef..9f33d70 100644 --- a/sim/common/cgen-ops.h +++ b/sim/common/cgen-ops.h @@ -24,9 +24,10 @@ along with this program. If not, see . #include +/* TODO: This should get moved into sim-inline.h. */ #if defined (__GNUC__) && ! defined (SEMOPS_DEFINE_INLINE) #define SEMOPS_DEFINE_INLINE -#define SEMOPS_INLINE extern inline +#define SEMOPS_INLINE EXTERN_INLINE #else #define SEMOPS_INLINE #endif -- cgit v1.1