[flang-commits] [clang] [flang] [Flang][Driver] Add a flag to control zero initialization of global v… (PR #122144)

via flang-commits flang-commits at lists.llvm.org
Thu Jan 9 05:32:56 PST 2025


https://github.com/jeanPerier approved this pull request.

Thanks Kiran!
Regarding the name, I never have strong opinions about them. Maybe `fno-zero-init-globals` is enough (the description talks about the without-init part, and it is rather obvious I think that this will not affect/control user define initialization). I also like `-fno-init-uninitialized-globals`.

gfortran has `-finit-local-zero` which flang will likely eventually have. It has nothing specific to globals (it is putting everything is .bss ASFAIK). So maybe `-fno-init-global-zero` would be consistent whith that existing name. 

Maybe ask in the flang slack channel for opinions?

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


More information about the flang-commits mailing list