diff options
author | Simon Marlow <marlowsd@gmail.com> | 2013-08-22 20:20:29 +0100 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2013-08-22 20:20:29 +0100 |
commit | 0717462d7724bfe904cffda5706dd74d0b31b883 (patch) | |
tree | ac06f021b547f66d0673814ca3968306b93895e2 /rts | |
parent | c24be4b761df558d9edc9c0b1554bb558c261b14 (diff) | |
download | haskell-0717462d7724bfe904cffda5706dd74d0b31b883.tar.gz |
Remove DYNAMIC_GHC_PROGRAMS tests in the linker
The linker is usable even when GHCi is dynamically linked. These
tests make the linker_unload test fail.
Diffstat (limited to 'rts')
-rw-r--r-- | rts/Linker.c | 18 | ||||
-rw-r--r-- | rts/ghc.mk | 4 |
2 files changed, 0 insertions, 22 deletions
diff --git a/rts/Linker.c b/rts/Linker.c index 81a267db1b..e2817ad104 100644 --- a/rts/Linker.c +++ b/rts/Linker.c @@ -137,16 +137,6 @@ #include <sys/tls.h> #endif -// Defining this as 'int' rather than 'const int' means that we don't get -// warnings like -// error: function might be possible candidate for attribute ‘noreturn’ -// from gcc: -#ifdef DYNAMIC_GHC_PROGRAMS -int dynamicGhcPrograms = 1; -#else -int dynamicGhcPrograms = 0; -#endif - /* Hash table mapping symbol names to Symbol */ static /*Str*/HashTable *symhash; @@ -2183,10 +2173,6 @@ loadArchive( pathchar *path ) IF_DEBUG(linker, debugBelch("loadArchive: start\n")); IF_DEBUG(linker, debugBelch("loadArchive: Loading archive `%" PATH_FMT" '\n", path)); - if (dynamicGhcPrograms) { - barf("loadArchive called, but using dynamic GHC (%s)", path); - } - gnuFileIndex = NULL; gnuFileIndexSize = 0; @@ -2578,10 +2564,6 @@ loadObj( pathchar *path ) #endif IF_DEBUG(linker, debugBelch("loadObj %" PATH_FMT "\n", path)); - if (dynamicGhcPrograms) { - barf("loadObj called, but using dynamic GHC (%s)", path); - } - initLinker(); /* debugBelch("loadObj %s\n", path ); */ diff --git a/rts/ghc.mk b/rts/ghc.mk index 4cc8e8de34..10e6cd5288 100644 --- a/rts/ghc.mk +++ b/rts/ghc.mk @@ -333,10 +333,6 @@ rts/RtsUtils_CC_OPTS += -DTargetVendor=\"$(TargetVendor_CPP)\" rts/RtsUtils_CC_OPTS += -DGhcUnregisterised=\"$(GhcUnregisterised)\" rts/RtsUtils_CC_OPTS += -DGhcEnableTablesNextToCode=\"$(GhcEnableTablesNextToCode)\" -ifeq "$(DYNAMIC_GHC_PROGRAMS)" "YES" -rts/Linker_CC_OPTS += -DDYNAMIC_GHC_PROGRAMS -endif - # Compile various performance-critical pieces *without* -fPIC -dynamic # even when building a shared library. If we don't do this, then the # GC runs about 50% slower on x86 due to the overheads of PIC. The |