gcc/libgfortran/runtime
Francois-Xavier Coudert 4376b7cf2b builtin-types.def (BT_FN_PTR_PTR_SIZE): New type.
* builtin-types.def (BT_FN_PTR_PTR_SIZE): New type.
	* builtins.def (BUILT_IN_REALLOC): New builtin.

	* trans-array.c (gfc_grow_array): Use gfc_call_realloc.
	(gfc_array_allocate): Use gfc_allocate_with_status and
	gfc_allocate_array_with_status.
	(gfc_array_deallocate): Use gfc_deallocate_with_status.
	(gfc_trans_dealloc_allocated): Use gfc_deallocate_with_status.
	* trans-stmt.c (gfc_trans_allocate): Use gfc_allocate_with_status.
	(gfc_trans_deallocate): Use gfc_deallocate_with_status.
	* trans.c (gfc_allocate_with_status, gfc_allocate_array_with_status,
	gfc_deallocate_with_status, gfc_call_realloc): New functions.
	* trans.h (gfc_allocate_with_status, gfc_allocate_array_with_status,
	gfc_deallocate_with_status, gfc_call_realloc): New prototypes.
	(gfor_fndecl_internal_realloc, gfor_fndecl_allocate,
	gfor_fndecl_allocate_array, gfor_fndecl_deallocate): Remove.
	* f95-lang.c (gfc_init_builtin_functions): Create decl for
	BUILT_IN_REALLOC.
	* trans-decl.c (gfor_fndecl_internal_realloc,
	gfor_fndecl_allocate, gfor_fndecl_allocate_array,
	gfor_fndecl_deallocate): Remove function decls.
	(gfc_build_builtin_function_decls): Likewise.

	* runtime/memory.c (internal_realloc, allocate, allocate_array,
	deallocate): Remove functions.
	* gfortran.map (_gfortran_allocate, _gfortran_allocate_array,
	_gfortran_deallocate, _gfortran_internal_realloc): Remove symbols.
	* libgfortran.h (error_codes): Add comment.

	* gfortran.dg/alloc_comp_basics_1.f90: Update check.
	* gfortran.dg/alloc_comp_constructor_1.f90: Update check.

From-SVN: r127897
2007-08-29 12:44:32 +00:00
..
backtrace.c re PR fortran/31189 (Support backtracing for non-library errors) 2007-08-11 21:52:22 +00:00
compile_options.c re PR fortran/31189 (Support backtracing for non-library errors) 2007-08-11 21:52:22 +00:00
environ.c re PR fortran/31917 ([4.1 only] GFORTRAN_CONVERT_UNIT is ignored) 2007-05-17 10:39:32 +02:00
error.c re PR fortran/31270 (print subscript value and array bounds when out-of-bounds error occurs) 2007-08-10 22:12:04 +00:00
fpu.c re PR fortran/14943 (read/write code generation is not thread safe) 2005-11-21 23:03:56 +01:00
in_pack_generic.c in_pack.m4: Fixed a typo. 2006-10-18 19:17:49 +02:00
in_unpack_generic.c in_pack.m4: Fixed a typo. 2006-10-18 19:17:49 +02:00
main.c re PR fortran/30964 (optional arguments to random_seed) 2007-08-12 20:45:29 +00:00
memory.c builtin-types.def (BT_FN_PTR_PTR_SIZE): New type. 2007-08-29 12:44:32 +00:00
pause.c re PR fortran/14943 (read/write code generation is not thread safe) 2005-11-21 23:03:56 +01:00
select.c re PR fortran/32035 ('<anonymous>' may be used uninitialized in this function) 2007-07-27 14:26:43 +00:00
stop.c re PR fortran/14943 (read/write code generation is not thread safe) 2005-11-21 23:03:56 +01:00
string.c string.c (compare0): Use gfc_charlen_type instead of int. 2007-05-27 00:15:22 +03:00