[clang] [llvm] [clang][driver] Set TLSDESC as the default for Android on RISC-V (PR #81198)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 9 10:31:33 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
----------------
ilovepi wrote:
That's a good point. I went ahead and updated the comment to point that out.
https://github.com/llvm/llvm-project/pull/81198
More information about the cfe-commits
mailing list