]> gcc.gnu.org Git - gcc.git/commit
re PR fortran/56872 (Incorrect SUM evaluation, involving implied-do loop, with -ffron...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Fri, 19 Apr 2013 09:58:41 +0000 (09:58 +0000)
committerMikael Morin <mikael@gcc.gnu.org>
Fri, 19 Apr 2013 09:58:41 +0000 (09:58 +0000)
commitb91a551ff0974e8031e1168389d6ac168e883f02
treee616424c2cdeea4121811800aa2e92170e87eb9a
parentdad89f7c034b3b8d8851ab9dc8960ee88d6ea784
re PR fortran/56872 (Incorrect SUM evaluation, involving implied-do loop, with -ffrontend-optimize)

2013-04-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
    Mikael Morin  <mikael@gcc.gnu.org>

PR fortran/56872
* frontend-passes.c (copy_walk_reduction_arg): Change argument type
to gfc_constructor.  If it has an iterator, wrap the copy of its
expression in an array constructor with that iterator.  Don't special
case function expressions.
(callback_reduction): Update caller.  Don't return early if there is
an iterator.

2013-04-19  Thomas Koenig  <tkoenig@gcc.gnu.org>
    Mikael Morin  <mikael@gcc.gnu.org>

PR fortran/56872
* gfortran.dg/array_constructor_45.f90:  New test.
* gfortran.dg/array_constructor_46.f90:  New test.
* gfortran.dg/array_constructor_47.f90:  New test.
* gfortran.dg/array_constructor_40.f90:  Adjust number of
while loops.

Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org>
From-SVN: r198086
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_constructor_40.f90
gcc/testsuite/gfortran.dg/array_constructor_45.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/array_constructor_46.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/array_constructor_47.f90 [new file with mode: 0644]
This page took 0.074508 seconds and 5 git commands to generate.