]> granicus.if.org Git - clang/commitdiff
Bitrig now supports TLS, so enable TLS support when targeting it. Patch by Patrick...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 1 May 2014 23:19:06 +0000 (23:19 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 1 May 2014 23:19:06 +0000 (23:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207812 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp
test/Sema/tls.c

index 6fdd0d061e91464bf2c15fe52cc77097882c871f..a5144663281f4a88338793365d6280bcc271e617 100644 (file)
@@ -445,7 +445,6 @@ protected:
 public:
   BitrigTargetInfo(const llvm::Triple &Triple) : OSTargetInfo<Target>(Triple) {
     this->UserLabelPrefix = "";
-    this->TLSSupported = false;
     this->MCountName = "__mcount";
   }
 };
index 9da7bc8163290f2cabcc9b85fb1da36f96b0145b..a3fdc8ea513207df7a186e8004ea772a40af31ef 100644 (file)
@@ -19,4 +19,8 @@
 // Haiku does not suppport TLS.
 // RUN: not %clang_cc1 -triple i586-pc-haiku -fsyntax-only %s
 
+// Bitrig suppports TLS.
+// RUN: %clang_cc1 -triple x86_64-pc-bitrig -fsyntax-only %s
+// RUN: %clang_cc1 -triple armv6-unknown-bitrig -fsyntax-only %s
+
 __thread int x;