From 5b725b8d04fff8583103bbea88f3d42f5443367d Mon Sep 17 00:00:00 2001 From: Thomas Koenig Date: Fri, 3 Mar 2006 16:18:46 +0000 Subject: re PR fortran/25031 ([4.1 only] Allocatable array can be reallocated.) 2006-03-03 Thomas Koenig 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 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 PR fortran/25031 * multiple_allocation_1.f90: New test. From-SVN: r111677 --- libgfortran/libgfortran.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libgfortran/libgfortran.h') diff --git a/libgfortran/libgfortran.h b/libgfortran/libgfortran.h index 524c57e..5efc8ae 100644 --- a/libgfortran/libgfortran.h +++ b/libgfortran/libgfortran.h @@ -379,6 +379,7 @@ typedef enum ERROR_READ_OVERFLOW, ERROR_INTERNAL, ERROR_INTERNAL_UNIT, + ERROR_ALLOCATION, ERROR_LAST /* Not a real error, the last error # + 1. */ } error_codes; -- cgit v1.1