* pthread_support.c: fix compilation when TLS_ALLOC is not defined.
svn path=/trunk/mono/; revision=47033
+
+Thu Jul 7 12:15:22 CEST 2005 Paolo Molaro <lupus@ximian.com>
+
+ * pthread_support.c: fix compilation when TLS_ALLOC is not defined.
+
Thu Jul 7 11:59:42 CEST 2005 Paolo Molaro <lupus@ximian.com>
* pthread_support.c, Makefile.am: make the __thread var use
* gcc-3.3.6 miscompiles the &GC_thread_key+sizeof(&GC_thread_key) expression so
* put it into a separate function.
*/
-# ifdef __GNUC__
+# if defined(__GNUC__) && defined(THREAD_LOCAL_ALLOC) && !defined(DBG_HDRS_ALL)
static __attribute__((noinline)) unsigned char* get_gc_thread_key_addr GC_PROTO((void))
{
return (unsigned char*)&GC_thread_key;