re PR fortran/22572 (Double occurrence of matmul intrinsic not optimised)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 14 May 2011 09:48:08 +0000 (09:48 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 14 May 2011 09:48:08 +0000 (09:48 +0000)
commit222c2a639505176798bb60e9a07b88ee90451c2a
tree6e170974fca6afa5c0b90e0f2ef27c5b8f974282
parent2d8c9ad5c96e9a66b11deedb894822143202392e
re PR fortran/22572 (Double occurrence of matmul intrinsic not optimised)

2011-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/22572
* frontend-passes.c (cfe_register_funcs):  Also register functions
for potential elimination if the rank is > 0, the shape is unknown
and reallocate on assignment is active.
(create_var):  For rank > 0 functions with unknown shape, create
an allocatable temporary.

2011-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/22572
* function_optimize_7.f90:  New test case.

From-SVN: r173752
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/function_optimize_7.f90 [new file with mode: 0644]