[clang] [llvm] [X86] Add Support for X86 TLSDESC Relocations (PR #83136)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 6 11:50:40 PST 2024


================
@@ -740,7 +740,8 @@ bool tools::isTLSDESCEnabled(const ToolChain &TC,
     SupportedArgument = V == "desc" || V == "trad";
     EnableTLSDESC = V == "desc";
   } else if (Triple.isX86()) {
-    SupportedArgument = V == "gnu";
+    SupportedArgument = V == "gnu" || V == "gnu2";
+    EnableTLSDESC = V == "gnu2";
----------------
MaskRay wrote:

If GCC is happy to accept `trad` and `desc` aliases, then we can accept the aliases; otherwise, I do not want to introduce another way to express the same thing.

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


More information about the cfe-commits mailing list