]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: try simplifications during reductions of array constructors
authorHarald Anlauf <anlauf@gmx.de>
Sun, 6 Feb 2022 20:47:20 +0000 (21:47 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 9 Feb 2022 21:13:53 +0000 (22:13 +0100)
commitf3ffea93ef31c03ad8cdcb54e71ec868b57b264f
treeb54428211044161b14105f4c07a0fba1f472bfc7
parentf6ff6738fa25fb012ed208e01de5a84d8668d538
Fortran: try simplifications during reductions of array constructors

gcc/fortran/ChangeLog:

PR fortran/66193
* arith.cc (reduce_binary_ac): When reducing binary expressions,
try simplification.  Handle case of empty constructor.
(reduce_binary_ca): Likewise.

gcc/testsuite/ChangeLog:

PR fortran/66193
* gfortran.dg/array_constructor_55.f90: New test.
gcc/fortran/arith.cc
gcc/testsuite/gfortran.dg/array_constructor_55.f90 [new file with mode: 0644]