summaryrefslogtreecommitdiff
path: root/compiler/HsVersions.h
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2016-11-30 10:54:45 -0500
committerBen Gamari <ben@smart-cactus.org>2016-11-30 10:56:10 -0500
commite2330b6dde805a5507898c3c4ddf38599df969da (patch)
treed52c52b99f510553b2d1733d006747d75be68a6d /compiler/HsVersions.h
parent03766cdbd26855e50719bd8ffcaf19898bd33f16 (diff)
downloadhaskell-e2330b6dde805a5507898c3c4ddf38599df969da.tar.gz
Revert "Make globals use sharedCAF"
This reverts commit 6f7ed1e51bf360621a3c2a447045ab3012f68575 due to breakage of the build on Windows.
Diffstat (limited to 'compiler/HsVersions.h')
-rw-r--r--compiler/HsVersions.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/compiler/HsVersions.h b/compiler/HsVersions.h
index 4a0b04ad70..83cbcf15cb 100644
--- a/compiler/HsVersions.h
+++ b/compiler/HsVersions.h
@@ -32,22 +32,6 @@ name = Util.global (value);
name :: IORef (ty); \
name = Util.globalM (value);
-
-#define SHARED_GLOBAL_VAR(name,accessor,saccessor,value,ty) \
-{-# NOINLINE name #-}; \
-name :: IORef (ty); \
-name = Util.sharedGlobal (value) (accessor); \
-foreign import ccall unsafe saccessor \
- accessor :: Ptr (IORef a) -> IO (Ptr (IORef a));
-
-#define SHARED_GLOBAL_VAR_M(name,accessor,saccessor,value,ty) \
-{-# NOINLINE name #-}; \
-name :: IORef (ty); \
-name = Util.sharedGlobalM (value) (accessor); \
-foreign import ccall unsafe saccessor \
- accessor :: Ptr (IORef a) -> IO (Ptr (IORef a));
-
-
#define ASSERT(e) if debugIsOn && not (e) then (assertPanic __FILE__ __LINE__) else
#define ASSERT2(e,msg) if debugIsOn && not (e) then (assertPprPanic __FILE__ __LINE__ (msg)) else
#define WARN( e, msg ) (warnPprTrace (e) __FILE__ __LINE__ (msg)) $