re PR fortran/25031 ([4.1 only] Allocatable array can be reallocated.)
2006-03-03 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/25031 * trans-array.h: Adjust gfc_array_allocate prototype. * trans-array.c (gfc_array_allocate): Change type of gfc_array_allocatate to bool. Function returns true if it operates on an array. Change second argument to gfc_expr. Find last reference in chain. If the function operates on an allocatable array, emit call to allocate_array() or allocate64_array(). * trans-stmt.c (gfc_trans_allocate): Code to follow to last reference has been moved to gfc_array_allocate. * trans.h: Add declaration for gfor_fndecl_allocate_array and gfor_fndecl_allocate64_array. (gfc_build_builtin_function_decls): Add gfor_fndecl_allocate_array and gfor_fndecl_allocate64_array. 2006-03-03 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/25031 * runtime/memory.c: Adjust copyright years. (allocate_array): New function. (allocate64_array): New function. * libgfortran.h (error_codes): Add ERROR_ALLOCATION. 2006-03-03 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/25031 * multiple_allocation_1.f90: New test. From-SVN: r111677
Showing
- gcc/fortran/ChangeLog 17 additions, 0 deletionsgcc/fortran/ChangeLog
- gcc/fortran/trans-array.c 32 additions, 4 deletionsgcc/fortran/trans-array.c
- gcc/fortran/trans-array.h 1 addition, 1 deletiongcc/fortran/trans-array.h
- gcc/fortran/trans-decl.c 12 additions, 0 deletionsgcc/fortran/trans-decl.c
- gcc/fortran/trans-stmt.c 1 addition, 16 deletionsgcc/fortran/trans-stmt.c
- gcc/fortran/trans.h 2 additions, 0 deletionsgcc/fortran/trans.h
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gfortran.dg/multiple_allocation_1.f90 19 additions, 0 deletionsgcc/testsuite/gfortran.dg/multiple_allocation_1.f90
- libgfortran/ChangeLog 8 additions, 0 deletionslibgfortran/ChangeLog
- libgfortran/libgfortran.h 1 addition, 0 deletionslibgfortran/libgfortran.h
- libgfortran/runtime/memory.c 46 additions, 1 deletionlibgfortran/runtime/memory.c
Loading
Please register or sign in to comment