diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2020-11-05 14:29:33 +0100 |
---|---|---|
committer | Sylvain Henry <sylvain@haskus.fr> | 2021-01-05 15:02:58 +0100 |
commit | 6c771aafa30e261f6822b3ddddbe66f8a55f307c (patch) | |
tree | 0db9f845e28c38d5eaf618735f9be3ab892aa7f9 /compiler/ghc.mk | |
parent | 26a928b8fdb1b4ccb75e8edb620b8cf12cb38621 (diff) | |
download | haskell-6c771aafa30e261f6822b3ddddbe66f8a55f307c.tar.gz |
Implement Unique supply with Addr# atomic primop
Before this patch the compiler depended on the RTS way (threaded or not)
to use atomic incrementation or not. This is wrong because the RTS is
supposed to be switchable at link time, without recompilation.
Now we always use atomic incrementation of the unique counter.
Diffstat (limited to 'compiler/ghc.mk')
-rw-r--r-- | compiler/ghc.mk | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/compiler/ghc.mk b/compiler/ghc.mk index 6a0a937053..2751218adf 100644 --- a/compiler/ghc.mk +++ b/compiler/ghc.mk @@ -190,18 +190,6 @@ compiler_stage1_CONFIGURE_OPTS += --flags=stage1 compiler_stage2_CONFIGURE_OPTS += --flags=stage2 compiler_stage3_CONFIGURE_OPTS += --flags=stage3 -ifeq "$(GhcThreaded)" "YES" -# We pass THREADED_RTS to the stage2 C files so that cbits/genSym.c will bring -# the threaded version of atomic_inc() into scope. -compiler_stage2_CONFIGURE_OPTS += --ghc-option=-optc-DTHREADED_RTS -endif - -# If the bootstrapping GHC supplies the threaded RTS, then we can have a -# threaded stage 1 too. -ifeq "$(GhcThreadedRts)" "YES" -compiler_stage1_CONFIGURE_OPTS += --ghc-option=-optc-DTHREADED_RTS -endif - ifeq "$(GhcWithInterpreter)" "YES" compiler_stage2_CONFIGURE_OPTS += --flags=internal-interpreter |