This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r110989 - in /branches/gcc-4_1-branch/gcc: fort...
- From: eedelman at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 14 Feb 2006 17:34:08 -0000
- Subject: r110989 - in /branches/gcc-4_1-branch/gcc: fort...
Author: eedelman
Date: Tue Feb 14 17:34:07 2006
New Revision: 110989
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110989
Log:
fortran/
2006-02-14 Erik Edelmann <eedelman@gcc.gnu.org>
PR fortran/25806
* trans-array.c (gfc_trans_allocate_array_storage): New argument
dealloc; free the temporary only if dealloc is true.
(gfc_trans_allocate_temp_array): New argument bool dealloc, to be
passed onwards to gfc_trans_allocate_array_storage.
(gfc_trans_array_constructor, gfc_conv_loop_setup): Update call to
gfc_trans_allocate_temp_array.
* trans-array.h (gfc_trans_allocate_temp_array): Update function
prototype.
* trans-expr.c (gfc_conv_function_call): Set new argument 'dealloc'
to gfc_trans_allocate_temp_array to false in case of functions
returning pointers.
(gfc_trans_arrayfunc_assign): Return NULL for functions returning
pointers.
testsuite/
2006-02-14 Erik Edelmann <eedelman@gcc.gnu.org>
PR fortran/25806
* gfortran.dg/ret_pointer_2.f90: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/ret_pointer_2.f90
- copied unchanged from r110893, trunk/gcc/testsuite/gfortran.dg/ret_pointer_2.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/trans-array.c
branches/gcc-4_1-branch/gcc/fortran/trans-array.h
branches/gcc-4_1-branch/gcc/fortran/trans-expr.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog