summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2010-10-20 20:25:33 +0000
committerdrahn <drahn@openbsd.org>2010-10-20 20:25:33 +0000
commit53c043b5f3fa0953819b19b81c8c7a370175d6b3 (patch)
tree8e9ebf521f1c5a80c7bdfed9750899a5435eb02f
parentMerge OpenCVS' rcs_deltatext_set into OpenRCS, fixing a memory leak. (diff)
downloadwireguard-openbsd-53c043b5f3fa0953819b19b81c8c7a370175d6b3.tar.xz
wireguard-openbsd-53c043b5f3fa0953819b19b81c8c7a370175d6b3.zip
Disable __thread for alpha on OpenBSD. ok matthieu.
A few others mumbled and grumbled and didn't say much but this is blocking X builds on alpha.
-rw-r--r--gnu/usr.bin/gcc/gcc/config/alpha/openbsd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/gcc/config/alpha/openbsd.h b/gnu/usr.bin/gcc/gcc/config/alpha/openbsd.h
index 4077a71c359..9a09e869c16 100644
--- a/gnu/usr.bin/gcc/gcc/config/alpha/openbsd.h
+++ b/gnu/usr.bin/gcc/gcc/config/alpha/openbsd.h
@@ -79,3 +79,8 @@ Boston, MA 02111-1307, USA. */
/* don't want no friggin' stack checks. */
#undef STACK_CHECK_BUILTIN
#define STACK_CHECK_BUILTIN 0
+
+/* OpenBSD doesn't currently supprot thread-local storage. */
+/* alpha.c undefs TARGET_HAVE_TLS and redefines it to HAVE_AS_TLS !?!?! */
+#undef HAVE_AS_TLS
+#define HAVE_AS_TLS false