On 24/02/2009, at 12:18 PM, Daniel Peebles wrote:
extern __thread gc_thread* gct
Yeah, but from what I understand of the __thread for thread-local
storage, it seems rather ELF-specific. Attempting to compile code that
uses it on (my) Mac OS (i.e., MachO instead of ELF) results in a
"thread-local storage not supported for this target" error, which
according to http://lists.apple.com/archives/xcode-users/2006/Jun/msg00551.html
is expected on Mac OS. Given the line of #ifdefs in that file, though,
I'm not sure how the thread-local storage works normally for Mac OS.
:) It works on Mac OS usually because gct is stored in a pinned
register. That won't work with a unregisterised build though. Sounds
like a Catch-22, better ask Simon M.
Ben.
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc