[flang-commits] [flang] [flang][OpenACC] Relax COMMON block usage restriction in OpenACC directives (PR #162659)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Mon Oct 20 15:56:54 PDT 2025


================
@@ -3627,6 +3627,27 @@ void ModuleVisitor::Post(const parser::UseStmt &x) {
       }
     }
   }
+  // Go through the list of COMMON block symbols in the module scope and add
----------------
eugeneepshteyn wrote:

> Maybe you would want to retain the largest definition of the COMMON block

I implemented that, but unfortunately in PerformStatementSemantics(), ResolveNames() is called before ComputeOffsets(), so don't know COMMON block sizes at the time of the name resolution. I undid my implementation, but kept `AddCommonBlockUse()` change

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


More information about the flang-commits mailing list