svn commit: r229079 - stable/9/lib/libc/stdlib

Dimitry Andric dim at FreeBSD.org
Sat Dec 31 12:58:22 UTC 2011


Author: dim
Date: Sat Dec 31 12:58:21 2011
New Revision: 229079
URL: http://svn.freebsd.org/changeset/base/229079

Log:
  MFC r228540:
  
  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.

Modified:
  stable/9/lib/libc/stdlib/malloc.c
Directory Properties:
  stable/9/lib/libc/   (props changed)

Modified: stable/9/lib/libc/stdlib/malloc.c
==============================================================================
--- stable/9/lib/libc/stdlib/malloc.c	Sat Dec 31 12:52:18 2011	(r229078)
+++ stable/9/lib/libc/stdlib/malloc.c	Sat Dec 31 12:58:21 2011	(r229079)
@@ -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


More information about the svn-src-all mailing list