This reverts commit 809a1e0ffd7af40ee27270ff8ba2ffc927330e71.
Mach-O doesn't support dso_local and this change broke XNU because of the use of dso_local.
Paths
| Differential D98458
Revert "[CodeGenModule] Set dso_local for Mach-O GlobalValue" ClosedPublic Authored by arphaman on Mar 11 2021, 2:57 PM.
Details Summary This reverts commit 809a1e0ffd7af40ee27270ff8ba2ffc927330e71. Mach-O doesn't support dso_local and this change broke XNU because of the use of dso_local.
Diff Detail
Unit TestsFailed Event TimelineComment Actions
Can you elaborate on the unsupportness? For example, the backend can ignore dso_local if it does not want to support it. The main purpose is to reduce target differences: currently both COFF and ELF can use dso_local. If Mach-O doesn't like dso_local, there is an additional difference. Comment Actions
The model for dso_local is different on Mach-O. While it's a laudable goal to unify the three formats, we might want to consider to not push these changes willy-nilly. This revision is now accepted and ready to land.Mar 11 2021, 3:39 PM Comment Actions + Lang, who probably has a better understanding of this, for visibility. This revision was landed with ongoing or failed builds.Mar 17 2021, 5:27 PM Closed by commit rGd672d5219a72: Revert "[CodeGenModule] Set dso_local for Mach-O GlobalValue" (authored by arphaman). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 330077 clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGenCXX/const-init.cpp
clang/test/CodeGenCXX/linkage.cpp
clang/test/CodeGenCXX/type_visibility.cpp
clang/test/CodeGenCXX/visibility.cpp
|