[flang-commits] [flang] [flang][NFC] Engineering option for optimizing allocatable assignments. (PR #119936)

via flang-commits flang-commits at lists.llvm.org
Mon Dec 16 01:45:11 PST 2024


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

Thanks!

FYI, some compilers actually have user flags to do that since that was the F90 semantics and not everybody was happy with the F2003 semantic change here.

For instance, gfortran has `-fno-realloc-lhs`, ifx has `-assume norealloc_lhs`, and nvfortran has `-Mallocatable=95`.

So we could also make that a  `-fno-realloc-lhs` user option.

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


More information about the flang-commits mailing list