X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=rts%2Fsm%2FGCThread.h;h=ab5aca72b775b8ab6e55aa0277542b4bbc2ca671;hp=44ea537cda39db293af0bbf7aa02eca77691e2ce;hb=bd04809a6475c57250ffebb265efebf13e9493b8;hpb=7d7c187b4a12f1bb350e85cdb0115e19537cc704 diff --git a/rts/sm/GCThread.h b/rts/sm/GCThread.h index 44ea537..ab5aca7 100644 --- a/rts/sm/GCThread.h +++ b/rts/sm/GCThread.h @@ -16,7 +16,7 @@ #include "WSDeque.h" -#pragma GCC visibility push(hidden) +BEGIN_RTS_PRIVATE /* ----------------------------------------------------------------------------- General scheme @@ -217,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; @@ -272,7 +275,7 @@ extern StgWord8 the_gc_thread[]; #endif -#pragma GCC visibility pop +END_RTS_PRIVATE #endif // SM_GCTHREAD_H