Wrap gcc on Windows, to provide the -B flags
[ghc-hetmet.git] / rts / sm / GCThread.h
index f91092b..ab5aca7 100644 (file)
  *
  * ---------------------------------------------------------------------------*/
 
-#ifndef GCTHREAD_H
-#define GCTHREAD_H
+#ifndef SM_GCTHREAD_H
+#define SM_GCTHREAD_H
 
-#include "OSThreads.h"
 #include "WSDeque.h"
 
+BEGIN_RTS_PRIVATE
+
 /* -----------------------------------------------------------------------------
    General scheme
    
@@ -216,6 +217,9 @@ extern gc_thread **gc_threads;
 // we have too few registers available.  In my tests it was worth
 // about 5% in GC performance, but of course that might change as gcc
 // improves. -- SDM 2009/04/03
+//
+// We ought to do the same on MacOS X, but __thread is not
+// supported there yet (gcc 4.0.1).
 
 extern __thread gc_thread* gct;
 #define DECLARE_GCT __thread gc_thread* gct;
@@ -271,5 +275,7 @@ extern StgWord8 the_gc_thread[];
 
 #endif
 
-#endif // GCTHREAD_H
+END_RTS_PRIVATE
+
+#endif // SM_GCTHREAD_H