summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>2020-01-28 10:07:34 (GMT)
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-02-04 14:29:00 (GMT)
commite580e5b8d08b02c39ca49e387882196931163bcf (patch)
tree2b7db3d1e490771424a8556842da7f03c4d9bfda
parent5e63d9c07c0585b85c8fa340d30aeff0130af3f4 (diff)
downloadghc-e580e5b8d08b02c39ca49e387882196931163bcf.zip
ghc-e580e5b8d08b02c39ca49e387882196931163bcf.tar.gz
ghc-e580e5b8d08b02c39ca49e387882196931163bcf.tar.bz2
Do not build StgCRunAsm.S for unregisterised builds
For unregisterised builds StgRun/StgReturn are implemented via a mini interpreter in StgCRun.c and therefore would collide with the implementations in StgCRunAsm.S.
-rw-r--r--rts/StgCRunAsm.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/rts/StgCRunAsm.S b/rts/StgCRunAsm.S
index 946f577..bb44eca 100644
--- a/rts/StgCRunAsm.S
+++ b/rts/StgCRunAsm.S
@@ -1,6 +1,8 @@
#include "ghcconfig.h"
#include "rts/Constants.h"
+#if !defined(USE_MINIINTERPRETER)
+
#if defined(powerpc64le_HOST_ARCH)
# if defined(linux_HOST_OS)
# define STACK_FRAME_SIZE RESERVED_C_STACK_BYTES+304
@@ -273,3 +275,5 @@ StgReturn:
.section .note.GNU-stack,"",@progbits
#endif
+
+#endif /* !USE_MINIINTERPRETER */