]> granicus.if.org Git - clang/commitdiff
[RISCV] Mark TLS as supported
authorLewis Revill <lewis.revill@embecosm.com>
Wed, 19 Jun 2019 08:53:46 +0000 (08:53 +0000)
committerLewis Revill <lewis.revill@embecosm.com>
Wed, 19 Jun 2019 08:53:46 +0000 (08:53 +0000)
Inform Clang that TLS is implemented by LLVM for RISC-V

Differential Revision: https://reviews.llvm.org/D57055

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

lib/Basic/Targets/RISCV.h
test/CodeGen/thread-specifier.c

index c2d0f73b1af060a22d48903234e363318d2e1a62..4fa696953e32680d44fad82de596f09766a7ecf8 100644 (file)
@@ -35,7 +35,6 @@ public:
   RISCVTargetInfo(const llvm::Triple &Triple, const TargetOptions &)
       : TargetInfo(Triple), HasM(false), HasA(false), HasF(false),
         HasD(false), HasC(false) {
-    TLSSupported = false;
     LongDoubleWidth = 128;
     LongDoubleAlign = 128;
     LongDoubleFormat = &llvm::APFloat::IEEEquad();
index 8e21651cd8854e0c7ba818386e092dbf14e15f55..ddcb4375a8d6ace0ae48246157acd635f70d8e97 100644 (file)
@@ -1,4 +1,6 @@
 // RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple riscv32 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple riscv64 -emit-llvm -o - %s | FileCheck %s
 
 // CHECK: @b = external thread_local global
 // CHECK: @d.e = internal thread_local global