aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2011-12-15 20:40:11 +0000
committerDimitry Andric <dim@FreeBSD.org>2011-12-15 20:40:11 +0000
commite7ac9483a98de7414ebb862323c723b3564d7e59 (patch)
tree9be53b2061bab820cf72fcc01c4eeba5d6c18831 /lib/libc/stdlib
parent5b63c1252bfc9e5b8f1cc8572dcb22dc4566d4e8 (diff)
downloadsrc-e7ac9483a98de7414ebb862323c723b3564d7e59.tar.gz
src-e7ac9483a98de7414ebb862323c723b3564d7e59.zip
Since clang does not support the tls_model attribute used in malloc.c
yet (see LLVM PR 9788), and warns about it, rub it out for now. When clang grows support for this attribute, I will revert this again. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=228540
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/malloc.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index 52905125f389..7ef59e4d1427 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/lib/libc/stdlib/malloc.c
@@ -219,7 +219,11 @@ __FBSDID("$FreeBSD$");
# define LG_QUANTUM 4
# define LG_SIZEOF_PTR 2
# define CPU_SPINWAIT __asm__ volatile("pause")
-# define TLS_MODEL __attribute__((tls_model("initial-exec")))
+# ifdef __clang__
+# define TLS_MODEL /* clang does not support tls_model yet */
+# else
+# define TLS_MODEL __attribute__((tls_model("initial-exec")))
+# endif
#endif
#ifdef __ia64__
# define LG_QUANTUM 4
@@ -240,7 +244,11 @@ __FBSDID("$FreeBSD$");
# define LG_QUANTUM 4
# define LG_SIZEOF_PTR 3
# define CPU_SPINWAIT __asm__ volatile("pause")
-# define TLS_MODEL __attribute__((tls_model("initial-exec")))
+# ifdef __clang__
+# define TLS_MODEL /* clang does not support tls_model yet */
+# else
+# define TLS_MODEL __attribute__((tls_model("initial-exec")))
+# endif
#endif
#ifdef __arm__
# define LG_QUANTUM 3