[clang] [OpenMP] Mark critical region lock variables dso_local for static relocation model (PR #201157)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 2 11:48:56 PDT 2026


MaskRay wrote:

Unfamiliar with openmp, but whether to use dso_local should be decided by whether the variable can be defined a different DSO, unrelated to `-fno-pic`/`-fpic`.  

See https://maskray.me/blog/2021-01-09-copy-relocations-canonical-plt-entries-and-protected and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100593 The GCC behavior may not be desired

https://github.com/llvm/llvm-project/pull/201157


More information about the cfe-commits mailing list