[all-commits] [llvm/llvm-project] 46475a: [AIX][TLS] Diagnose use of unimplemented TLS models

Victor Huang via All-commits all-commits at lists.llvm.org
Tue May 11 15:22:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 46475a79f85b230fde3e7de8966c96bef14f0d24
      https://github.com/llvm/llvm-project/commit/46475a79f85b230fde3e7de8966c96bef14f0d24
  Author: Victor Huang <wei.huang at ibm.com>
  Date:   2021-05-11 (Tue, 11 May 2021)

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

  Log Message:
  -----------
  [AIX][TLS] Diagnose use of unimplemented TLS models

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;`

Reviewed by: aaron.ballman, nemanjai, PowerPC

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




More information about the All-commits mailing list