[flang-commits] [flang] [flang][OpenMP] Make static duration variables default to shared DSA (PR #142783)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Wed Jun 4 09:46:40 PDT 2025
================
@@ -2367,7 +2369,8 @@ void OmpAttributeVisitor::CreateImplicitSymbols(const Symbol *symbol) {
dsa = prevDSA;
} else if (taskGenDir) {
// TODO 5) dummy arg in orphaned taskgen construct -> firstprivate
- if (prevDSA.test(Symbol::Flag::OmpShared)) {
+ // variables with static storage duration are predetermined as shared
+ if (prevDSA.test(Symbol::Flag::OmpShared) || isStaticStorageDuration) {
----------------
tblah wrote:
Please could you make this into a separate if branch with matching debug print and comment. Right now the debug print does not match the reason.
https://github.com/llvm/llvm-project/pull/142783
More information about the flang-commits
mailing list