2006-12-05 Paul Thomas <pault@gcc.gnu.org>
commit91690549f4201e3cba6d0d40225cf856a01097ec
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Dec 2006 19:45:25 +0000 (5 19:45 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Dec 2006 19:45:25 +0000 (5 19:45 +0000)
tree79bc0a98d7c614c8fe8cd8d4071da59b5d4aac4b
parent0be9312811a5a0c0da7a203ffa8549dec94b79e7
2006-12-05  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30003
* trans-array.c (gfc_trans_create_temp_array): Set the section
ends to zero.
(gfc_conv_array_transpose): Likewise.
(gfc_conv_section_startstride): Declare an expression for end,
set it from a the array reference and evaluate it for the info
structure. Zero the ends in the ss structure and set end, used
in the bounds check, from the info structure.
trans.h: Add and end array to the gfc_ss_info structure.

2006-12-05  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30003
* gfortran.dg/allocatable_function_1.f90: Increase the number
of expected calls of free to 10; the lhs section reference is
now evaluated so there is another call to bar.  Change the
comment appropriately.
* gfortran.dg/array_section_1.f90: New test.

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