]> granicus.if.org Git - clang/commitdiff
[Cygwin] Enable TLS as emutls.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 21 Dec 2015 02:37:23 +0000 (02:37 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 21 Dec 2015 02:37:23 +0000 (02:37 +0000)
It resolves clang selfhosting with std::once() for Cygwin.

FIXME: It may be EmulatedTLS-generic also for X86-Android.
FIXME: Pass EmulatedTLS to LLVM CodeGen from Clang with -femulated-tls.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256134 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp
test/CXX/concepts-ts/dcl.dcl/dcl.spec/dcl.spec.concept/p2.cpp
test/OpenMP/parallel_copyin_codegen.cpp
test/PCH/chain-openmp-threadprivate.cpp

index 132864fa8df8ee47367ccf5f98cc7c20ece83ae6..e6864d9db8b0e51c2cca3a955997bf92bd4aca05 100644 (file)
@@ -3834,7 +3834,6 @@ class CygwinX86_32TargetInfo : public X86_32TargetInfo {
 public:
   CygwinX86_32TargetInfo(const llvm::Triple &Triple)
       : X86_32TargetInfo(Triple) {
-    TLSSupported = false;
     WCharType = UnsignedShort;
     DoubleAlign = LongLongAlign = 64;
     DataLayoutString = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32";
index 36e17aa8611924256d48c21b76a69a92492c3cc9..477910986de12fe46d3641495d7ff19497bf2187 100644 (file)
@@ -1,5 +1,4 @@
 // RUN:  %clang_cc1 -std=c++14 -fconcepts-ts -x c++ -verify %s
-// REQUIRES: tls
 
 template<typename T> concept thread_local bool VCTL = true; // expected-error {{variable concept cannot be declared 'thread_local'}}
 
index 1ae8a1612412e3437e207da3bb16b84fbf11a6af..ff76cfe4dd6c876cc227c0ff544d2954552f3e15 100644 (file)
@@ -11,7 +11,6 @@
 // RUN: %clang_cc1 -verify -fopenmp -x c++ -std=c++11 -DLAMBDA -triple %itanium_abi_triple -emit-llvm %s -o - | FileCheck -check-prefix=TLS-LAMBDA %s
 // RUN: %clang_cc1 -verify -fopenmp -x c++ -fblocks -DBLOCKS -triple %itanium_abi_triple -emit-llvm %s -o - | FileCheck -check-prefix=TLS-BLOCKS %s
 // RUN: %clang_cc1 -verify -fopenmp -x c++ -std=c++11 -DARRAY -triple x86_64-linux-gnu -emit-llvm %s -o - | FileCheck -check-prefix=TLS-ARRAY %s
-// REQUIRES: tls
 // expected-no-diagnostics
 #ifndef ARRAY
 #ifndef HEADER
index c75b872ba2a03e9770394dec85fc5dfbd528d0d1..c7f0f419596705ec78d845dd81c1e464e0a0362f 100644 (file)
@@ -9,8 +9,6 @@
 // RUN: %clang_cc1 -fopenmp -emit-llvm -chain-include %s -chain-include %s %s -o - | FileCheck %s -check-prefix=CHECK-TLS-1
 // RUN: %clang_cc1 -fopenmp -emit-llvm -chain-include %s -chain-include %s %s -o - | FileCheck %s -check-prefix=CHECK-TLS-2
 
-// REQUIRES: tls
-
 #if !defined(PASS1)
 #define PASS1