[clang] [llvm] [clang][driver] Set TLSDESC as the default for Android on RISC-V (PR #81198)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 8 17:48:11 PST 2024


================
@@ -3,6 +3,11 @@
 // RUN: %clang -### --target=riscv64-linux %s 2>&1 | FileCheck --check-prefix=NODESC %s
 // RUN: %clang -### --target=x86_64-linux -mtls-dialect=gnu %s 2>&1 | FileCheck --check-prefix=NODESC %s
 
+/// Android supports TLSDESC by default after Android version 29 and all RISC-V
+/// TLSDESC is not on by default in Linux, even on RISC-V
+// RUN: %clang -### --target=riscv64-android %s 2>&1 | FileCheck --check-prefix=DESC %s
+// RUN: %clang -### --target=riscv64-linux %s 2>&1 | FileCheck --check-prefix=NODESC %s
----------------
MaskRay wrote:

Delete `riscv64-linux` check. It's redundant. 

https://github.com/llvm/llvm-project/pull/81198


More information about the cfe-commits mailing list