[flang-commits] [flang] [flang][Semantics] Introduce `-Wpass-global-variable` warning (PR #160324)

via flang-commits flang-commits at lists.llvm.org
Tue Sep 23 10:22:00 PDT 2025


foxtran wrote:

>  I think this would be a very noisy warning.

In fact, it depends on code. For MRCC, the most problematic code is full of these warnings (and not only this warning), while where I do not see this warning, we also do not have a bug with `ifx`. I see only one disadvantage related to output unit, which we keep in common block and use everywhere. 

For GAMESS(US), the compilation log is full of `incompatible-implicit-interfaces`, `known-bad-implicit-interface`, and `pass-global-variable` which is dominant, unfortunately. However, for some of files, there is no `pass-global-variable` warnings :-)


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


More information about the flang-commits mailing list