diff options
Diffstat (limited to 'gcc-4.8/libgomp/team.c')
-rw-r--r-- | gcc-4.8/libgomp/team.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc-4.8/libgomp/team.c b/gcc-4.8/libgomp/team.c index 243aa9aa9..86a83be5d 100644 --- a/gcc-4.8/libgomp/team.c +++ b/gcc-4.8/libgomp/team.c @@ -37,7 +37,7 @@ pthread_key_t gomp_thread_destructor; /* This is the libgomp per-thread data structure. */ -#ifdef HAVE_TLS +#if defined HAVE_TLS || defined USE_EMUTLS __thread struct gomp_thread gomp_tls_data; #else pthread_key_t gomp_tls_key; @@ -69,7 +69,7 @@ gomp_thread_start (void *xdata) void (*local_fn) (void *); void *local_data; -#ifdef HAVE_TLS +#if defined HAVE_TLS || defined USE_EMUTLS thr = &gomp_tls_data; #else struct gomp_thread local_thr; @@ -534,7 +534,7 @@ initialize_team (void) { struct gomp_thread *thr; -#ifndef HAVE_TLS +#if !defined HAVE_TLS && !defined USE_EMUTLS static struct gomp_thread initial_thread_tls_data; pthread_key_create (&gomp_tls_key, NULL); @@ -544,7 +544,7 @@ initialize_team (void) if (pthread_key_create (&gomp_thread_destructor, gomp_free_thread) != 0) gomp_fatal ("could not create thread pool destructor."); -#ifdef HAVE_TLS +#if defined HAVE_TLS || defined USE_EMUTLS thr = &gomp_tls_data; #else thr = &initial_thread_tls_data; |