diff options
author | Ian Lynagh <igloo@earth.li> | 2009-04-04 00:34:45 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-04-04 00:34:45 +0000 |
commit | 20612276a81bc12ab6ed752f6c3ec19b4b57c8aa (patch) | |
tree | 92eb1eaf99bf082783bf29c66d50f7d8f2cd00c0 /rts | |
parent | 174dccda5a8213f9a777ddf5230effef6b5f464d (diff) | |
download | haskell-20612276a81bc12ab6ed752f6c3ec19b4b57c8aa.tar.gz |
Don't use thread local storage on x86/not-Linux
With the
On x86, use thread-local storage instead of stealing a reg for gct
patch, on Windows and OS X:
error: thread-local storage not supported for this target
Diffstat (limited to 'rts')
-rw-r--r-- | rts/sm/GCThread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/sm/GCThread.h b/rts/sm/GCThread.h index 5646eddb51..a274bb21bb 100644 --- a/rts/sm/GCThread.h +++ b/rts/sm/GCThread.h @@ -209,11 +209,11 @@ extern gc_thread **gc_threads; #define SET_GCT(to) gct = (to) -#if defined(sparc_HOST_ARCH) || defined(i386_HOST_ARCH) +#if defined(sparc_HOST_ARCH) || (defined(i386_HOST_ARCH) && defined(linux_HOST_OS)) // Don't use REG_base or R1 for gct on SPARC because they're getting clobbered // by something else. Not sure what yet. -- BL 2009/01/03 -// Using __thread is better than stealing a register on x86, because +// Using __thread is better than stealing a register on x86/Linux, because // 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 |