* trans-stmt.c (forall_info): Replace the next_nest and outer
commit1a1fd7149459b0380c85f91e0d3378703b66b104
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 27 Jan 2007 19:02:25 +0000 (27 19:02 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 27 Jan 2007 19:02:25 +0000 (27 19:02 +0000)
treea0770f87c543313505f4e635c59d46c79bd78a3c
parent74f588f2e509200e376dc02f2b7f96f67e634202
* trans-stmt.c (forall_info): Replace the next_nest and outer
fields that previously implemented a doubly-linked list with a
single prev_nest field (singly-linked list).
(gfc_trans_nested_forall_loop): The nested_forall_info argument
now denotes the innermost FORALL in the loop nest.
(compute_overall_iter_number): Use prev_nest instead of next_nest.
(gfc_trans_forall_1): Link/cons the new "info" to the head of the
nested_forall_info linked list.  Free the current "info" when done.

* gfortran.dg/forall_7.f90: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121236 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/forall_7.f90 [new file with mode: 0644]