Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(841)

Unified Diff: gcc/gthr-nacl.h

Issue 841313002: Remove hack in __gthread_active_p() to always return 0 on x86_64 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gcc.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gthr-nacl.h
diff --git a/gcc/gthr-nacl.h b/gcc/gthr-nacl.h
index ca04410ec6311f3e46223aff30ac812f9a2faef5..f99bedd52d86bdae22a890516fda06f5ab998955 100644
--- a/gcc/gthr-nacl.h
+++ b/gcc/gthr-nacl.h
@@ -116,15 +116,9 @@ __gthread_active_p (void)
* TODO: change to reference a thread creation/destruction function
* when one becomes available.
*/
- // This is a dirty workaround over our inability to use locks in NaCl x86-64.
- // TODO(pasko): fix this by enabling correct builtins.
-#ifndef __x86_64__
static void *const __gthread_active_ptr
= __extension__ (void *) &__gthrw_(pthread_mutex_lock);
return __gthread_active_ptr != 0;
-#else
- return 0;
-#endif
}
#ifdef _LIBOBJC
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698