r207812 - Bitrig now supports TLS, so enable TLS support when targeting it. Patch by Patrick Wildt!

Richard Smith richard-llvm at metafoo.co.uk
Thu May 1 16:19:06 PDT 2014


Author: rsmith
Date: Thu May  1 18:19:06 2014
New Revision: 207812

URL: http://llvm.org/viewvc/llvm-project?rev=207812&view=rev
Log:
Bitrig now supports TLS, so enable TLS support when targeting it. Patch by Patrick Wildt!

Modified:
    cfe/trunk/lib/Basic/Targets.cpp
    cfe/trunk/test/Sema/tls.c

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=207812&r1=207811&r2=207812&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Thu May  1 18:19:06 2014
@@ -445,7 +445,6 @@ protected:
 public:
   BitrigTargetInfo(const llvm::Triple &Triple) : OSTargetInfo<Target>(Triple) {
     this->UserLabelPrefix = "";
-    this->TLSSupported = false;
     this->MCountName = "__mcount";
   }
 };

Modified: cfe/trunk/test/Sema/tls.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/tls.c?rev=207812&r1=207811&r2=207812&view=diff
==============================================================================
--- cfe/trunk/test/Sema/tls.c (original)
+++ cfe/trunk/test/Sema/tls.c Thu May  1 18:19:06 2014
@@ -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;





More information about the cfe-commits mailing list