From 372053c968ef92dbb822afe38f4ce70c3a7553af Mon Sep 17 00:00:00 2001 From: Ryan Newton Date: Thu, 1 Aug 2013 12:18:16 -0400 Subject: In the non-threaded RTS, make *_barrier functions EXTERN_INLINE, not #define. (fixes #8077) --- includes/stg/SMP.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'includes') diff --git a/includes/stg/SMP.h b/includes/stg/SMP.h index bfd6bbcfab..99c25fe355 100644 --- a/includes/stg/SMP.h +++ b/includes/stg/SMP.h @@ -365,9 +365,12 @@ load_load_barrier(void) { /* ---------------------------------------------------------------------- */ #else /* !THREADED_RTS */ -#define write_barrier() /* nothing */ -#define store_load_barrier() /* nothing */ -#define load_load_barrier() /* nothing */ +EXTERN_INLINE void write_barrier(void); +EXTERN_INLINE void store_load_barrier(void); +EXTERN_INLINE void load_load_barrier(void); +EXTERN_INLINE void write_barrier () {} /* nothing */ +EXTERN_INLINE void store_load_barrier() {} /* nothing */ +EXTERN_INLINE void load_load_barrier () {} /* nothing */ #if !IN_STG_CODE || IN_STGCRUN INLINE_HEADER StgWord -- cgit v1.2.1