[PATCH] D102070: [AIX][TLS] Diagnose use of unimplemented TLS models

Victor Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 7 06:46:20 PDT 2021


NeHuang created this revision.
Herald added a reviewer: aaron.ballman.
NeHuang requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Add front end diagnostics to report error for unimplemented TLS models set by

- compiler option `-ftls-model`
- attributes like `__thread int __attribute__((tls_model("local-exec"))) var_name;`


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102070

Files:
  clang/include/clang/Basic/DiagnosticDriverKinds.td
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/Frontend/CompilerInvocation.cpp
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/test/CodeGen/aix-tls-model.cpp
  clang/test/Sema/aix-attr-tls_model.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102070.343667.patch
Type: text/x-patch
Size: 5759 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210507/b049a2e3/attachment.bin>


More information about the llvm-commits mailing list