summaryrefslogtreecommitdiff
path: root/rts/Task.c
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2013-01-17 16:42:38 +0000
committerSimon Marlow <marlowsd@gmail.com>2013-01-17 20:30:01 +0000
commit0dcccf0ca650a3f6fd69e4af428e827b718f0b4b (patch)
tree619f13bbb52acb78a403ffff155d15e56abf1674 /rts/Task.c
parent81f4cd3e08996d35b3a70dfee4d70a829f2f2622 (diff)
downloadhaskell-0dcccf0ca650a3f6fd69e4af428e827b718f0b4b.tar.gz
Hopefully fix breakage on OS X w/ LLVM
Reordering of includes in GC.c broke on OS X because gctKey is declared in Task.h and is needed in the storage manager. This is really the wrong place for it anyway, so I've moved the gctKey pieces to where they should be.
Diffstat (limited to 'rts/Task.c')
-rw-r--r--rts/Task.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/rts/Task.c b/rts/Task.c
index 78725dd41c..e6781a17ff 100644
--- a/rts/Task.c
+++ b/rts/Task.c
@@ -54,9 +54,6 @@ __thread Task *my_task;
# else
ThreadLocalKey currentTaskKey;
# endif
-#ifdef llvm_CC_FLAVOR
-ThreadLocalKey gctKey;
-#endif
#else
Task *my_task;
#endif
@@ -78,9 +75,6 @@ initTaskManager (void)
#if !defined(MYTASK_USE_TLV)
newThreadLocalKey(&currentTaskKey);
#endif
-#if defined(llvm_CC_FLAVOR)
- newThreadLocalKey(&gctKey);
-#endif
initMutex(&all_tasks_mutex);
#endif
}
@@ -115,9 +109,6 @@ freeTaskManager (void)
#if !defined(MYTASK_USE_TLV)
freeThreadLocalKey(&currentTaskKey);
#endif
-#if defined(llvm_CC_FLAVOR)
- freeThreadLocalKey(&gctKey);
-#endif
#endif
tasksInitialized = 0;