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;
Paths
| Differential D102070
[AIX][TLS] Diagnose use of unimplemented TLS models ClosedPublic Authored by NeHuang on May 7 2021, 6:46 AM.
Details
Summary Add front end diagnostics to report error for unimplemented TLS models set by
Diff Detail
Event TimelineComment Actions LGTM. Maybe give this a couple of days to see if any other reviewers have further input. This revision is now accepted and ready to land.May 10 2021, 4:10 AM This revision was landed with ongoing or failed builds.May 11 2021, 3:22 PM Closed by commit rG46475a79f85b: [AIX][TLS] Diagnose use of unimplemented TLS models (authored by NeHuang). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 344569 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
|
This neatly avoids the problem of diagnostics not starting with a capital letter (it looks like we have other diagnostics to update, but that's not your problem to deal with).