From bd04809a6475c57250ffebb265efebf13e9493b8 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Thu, 10 Sep 2009 15:21:46 +0000 Subject: [PATCH] add comment: __thread is not supported by gcc on OS X yet --- rts/sm/GCThread.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rts/sm/GCThread.h b/rts/sm/GCThread.h index d2459fd..ab5aca7 100644 --- a/rts/sm/GCThread.h +++ b/rts/sm/GCThread.h @@ -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; -- 1.7.10.4