summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-03-02 13:15:21 +0000
committerIan Lynagh <ian@well-typed.com>2013-03-02 13:15:21 +0000
commit7bc3bdf6ed6114ba04edcc1c3536b5e20218f20f (patch)
tree6fe448ffd663299c5a73b1e9881a15f3cbe572e3
parent0606e6e73b30fb9307fa11dc417f2988c7b9aa48 (diff)
downloadhaskell-7bc3bdf6ed6114ba04edcc1c3536b5e20218f20f.tar.gz
ios fix from Stephen Blackheath; part of #7707
Apparently ios doesn't understand .type %function.
-rw-r--r--rts/StgCRun.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rts/StgCRun.c b/rts/StgCRun.c
index e16de75b72..f0fa6c7c5e 100644
--- a/rts/StgCRun.c
+++ b/rts/StgCRun.c
@@ -686,7 +686,9 @@ StgRun(StgFunPtr f, StgRegTable *basereg) {
".globl " STG_RETURN "\n\t"
THUMB_FUNC
+#if !defined(ios_HOST_OS)
".type " STG_RETURN ", %%function\n"
+#endif
STG_RETURN ":\n\t"
/*
* Free the space we allocated