[PATCH] D108421: Mark openmp internal global dso_local
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 23 20:32:36 PDT 2021
MaskRay added inline comments.
================
Comment at: clang/lib/CodeGen/CGOpenMPRuntime.cpp:2194
+ getOrCreateInternalVariable(KmpCriticalNameTy, Name));
+ if (!GV->isDSOLocal())
+ GV->setDSOLocal(true);
----------------
MaskRay wrote:
> Can be variable be preemptible on ELF? (i.e. default visibility non-local linkage) If yes, it cannot be marked dso_local in that case.
> in that case
=> When -fpic is used.
`-fpic -shared` may give a linker error.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108421/new/
https://reviews.llvm.org/D108421
More information about the cfe-commits
mailing list