This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r156554 - in /branches/gcc-4_4-branch/gcc: fort...
- From: pault at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sat, 06 Feb 2010 19:44:41 -0000
- Subject: r156554 - in /branches/gcc-4_4-branch/gcc: fort...
Author: pault
Date: Sat Feb 6 19:44:41 2010
New Revision: 156554
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156554
Log:
2010-02-06 Paul Thomas <pault@gcc.gnu.org>
PR fortran/42309
* trans-expr.c (gfc_conv_subref_array_arg): Add new argument
'formal_ptr'. If this is true, give returned descriptor unity
lbounds, in all dimensions, and the appropriate offset.
(gfc_conv_procedure_call); If formal is a pointer, set the last
argument of gfc_conv_subref_array_arg to true.
* trans.h : Add last argument for gfc_conv_subref_array_arg.
* trans-io.c (set_internal_unit, gfc_trans_transfer): Set the
new arg of gfc_conv_subref_array_arg to false.
* trans-stmt.c (forall_make_variable_temp): The same.
2010-02-06 Paul Thomas <pault@gcc.gnu.org>
PR fortran/42309
* gfortran.dg/subref_array_pointer_4.f90 : New test.
Added:
branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/subref_array_pointer_4.f90
Modified:
branches/gcc-4_4-branch/gcc/fortran/ChangeLog
branches/gcc-4_4-branch/gcc/fortran/trans-expr.c
branches/gcc-4_4-branch/gcc/fortran/trans-io.c
branches/gcc-4_4-branch/gcc/fortran/trans-stmt.c
branches/gcc-4_4-branch/gcc/fortran/trans.h
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog