[clang] [flang] [flang] Support -f[no-]realloc-lhs. (PR #120165)

2024-12-17 Thread Slava Zakharin via cfe-commits
https://github.com/vzakhari closed https://github.com/llvm/llvm-project/pull/120165 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang] Support -f[no-]realloc-lhs. (PR #120165)

2024-12-17 Thread Slava Zakharin via cfe-commits
vzakhari wrote: > Just a comment, no action required. I see some hits for realloc-lhs in the > gfortran testsuite. Will some of these tests start behaving differently? Thank you for the heads up, Kiran! I did not change `-Wrealloc-lhs`, so they should behave the same way. Those that use `-fno-

[clang] [flang] [flang] Support -f[no-]realloc-lhs. (PR #120165)

2024-12-17 Thread Kiran Chandramohan via cfe-commits
https://github.com/kiranchandramohan approved this pull request. LG. Thanks. Just a comment, no action required. I see some hits for realloc-lhs in the gfortran testsuite. Will some of these tests start behaving differently? ``` CMakeLists.txt: -fno-realloc-lhs CMakeLists.txt: -Wrealloc-lhs

[clang] [flang] [flang] Support -f[no-]realloc-lhs. (PR #120165)

2024-12-17 Thread via cfe-commits
https://github.com/jeanPerier approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/120165 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang] Support -f[no-]realloc-lhs. (PR #120165)

2024-12-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-fir-hlfir Author: Slava Zakharin (vzakhari) Changes -frealloc-lhs is the default. If -fno-realloc-lhs is specified, then an allocatable on the left side of an intrinsic assignment is not implicitly (re)allocated to conform with the right hand side.

[clang] [flang] [flang] Support -f[no-]realloc-lhs. (PR #120165)

2024-12-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Slava Zakharin (vzakhari) Changes -frealloc-lhs is the default. If -fno-realloc-lhs is specified, then an allocatable on the left side of an intrinsic assignment is not implicitly (re)allocated to conform with the right hand side. Fortran r

[clang] [flang] [flang] Support -f[no-]realloc-lhs. (PR #120165)

2024-12-16 Thread Slava Zakharin via cfe-commits
https://github.com/vzakhari created https://github.com/llvm/llvm-project/pull/120165 -frealloc-lhs is the default. If -fno-realloc-lhs is specified, then an allocatable on the left side of an intrinsic assignment is not implicitly (re)allocated to conform with the right hand side. Fortran runtim