]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: improve expansion of constant array expressions within constructors
authorHarald Anlauf <anlauf@gmx.de>
Sat, 27 Nov 2021 20:43:52 +0000 (21:43 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 11 Dec 2021 21:44:20 +0000 (22:44 +0100)
commit1f49f2ad78360ea6634deca9a8cc35f9c4f1051d
tree81a5b2d506291fc410c6a991f2eaf514a132d245
parentfe00eaefa42d17de3c98c274967dd0f7ad7be463
Fortran: improve expansion of constant array expressions within constructors

gcc/fortran/ChangeLog:

PR fortran/102787
* array.c (expand_constructor): When encountering a constant array
expression or array section within a constructor, simplify it to
enable better expansion.

gcc/testsuite/ChangeLog:

* gfortran.dg/array_constructor_54.f90: New test.

(cherry picked from commit 6b8ecbc6d6652d061d7c72c64352d51eca2df6ca)
gcc/fortran/array.c
gcc/testsuite/gfortran.dg/array_constructor_54.f90 [new file with mode: 0644]