gcc/gcc/fortran
Daniel Kraft f25a62a5f3 re PR fortran/37507 (Print location in (DE)ALLOCATION errors)
2008-09-18  Daniel Kraft  <d@domob.eu>

	PR fortran/37507
	* trans.h (gfc_trans_runtime_error): New method.
	(gfc_trans_runtime_error_vararg): New method.
	(gfc_allocate_array_with_status): New argument `expr' for locus/varname.
	(gfc_deallocate_array_with_status): Ditto.
	* trans-array.h (gfc_array_deallocate): Ditto.
	* trans.c (gfc_trans_runtime_error): New method.
	(gfc_trans_runtime_error_vararg): New method, moved parts of the code
	from gfc_trans_runtime_check here.
	(gfc_trans_runtime_error_check): Moved code partly to new method.
	(gfc_call_malloc): Fix tab-indentation.
	(gfc_allocate_array_with_status): New argument `expr' and call
	gfc_trans_runtime_error for error reporting to include locus.
	(gfc_deallocate_with_status): Ditto.
	* trans-stmt.c (gfc_trans_deallocate): Pass expr as new argument.
	* trans-array.c (gfc_array_allocate): Ditto.
	(gfc_array_deallocate): New argument `expr', passed on.
	(gfc_trans_dealloc_allocated): Pass NULL for expr.
	* trans-openmp.c (gfc_omp_clause_default): Ditto.

2008-09-18  Daniel Kraft  <d@domob.eu>

	PR fortran/37507
	* gfortran.dg/allocate_error_1.f90: New test.
	* gfortran.dg/deallocate_error_1.f90: New test.
	* gfortran.dg/deallocate_error_2.f90: New test.

From-SVN: r140451
2008-09-18 14:02:50 +02:00
..
ChangeLog re PR fortran/37507 (Print location in (DE)ALLOCATION errors) 2008-09-18 14:02:50 +02:00
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004 Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
ChangeLog-2005 Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
ChangeLog-2006 Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
ChangeLog-2007 Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
ChangeLog.ptr
Make-lang.in re PR fortran/29635 (debug info of modules) 2008-08-29 20:41:19 +02:00
arith.c
arith.h
array.c
bbt.c
check.c
config-lang.in
convert.c
cpp.c
cpp.h
data.c
data.h
decl.c gfortran.h (struct gfc_namespace): New member `implicit_loc'. 2008-09-02 10:13:21 +02:00
dependency.c gfortran.h (gfc_component): Add field "symbol_attribute attr"... 2008-08-23 23:04:01 +02:00
dependency.h
dump-parse-tree.c gfortran.h (struct gfc_namespace): New member `implicit_loc'. 2008-09-02 10:13:21 +02:00
error.c
expr.c expr.c (find_array_element): Reformat comment. 2008-09-10 14:13:44 -07:00
f95-lang.c re PR fortran/29635 (debug info of modules) 2008-08-29 20:41:19 +02:00
gfc-internals.texi gfc-internals.texi (F2003 OOP), [...]): New chapter and section to document the internals of type-bound procedures. 2008-09-01 12:55:50 +02:00
gfortran.h gfortran.h (struct gfc_namespace): New member `implicit_loc'. 2008-09-02 10:13:21 +02:00
gfortran.texi
gfortranspec.c
interface.c gfortran.h (enum gfc_statement): New entry `ST_GENERIC'. 2008-08-31 12:00:30 +02:00
intrinsic.c
intrinsic.h
intrinsic.texi
invoke.texi
io.c re PR fortran/35840 (ICE for character expression in I/O specifier) 2008-09-14 19:00:26 +00:00
ioparm.def
iresolve.c
iso-c-binding.def
iso-fortran-env.def
lang-specs.h
lang.opt
libgfortran.h
match.c gfortran.h (enum gfc_statement): New entry `ST_GENERIC'. 2008-08-31 12:00:30 +02:00
match.h gfortran.h (enum gfc_statement): New entry `ST_GENERIC'. 2008-08-31 12:00:30 +02:00
matchexp.c
mathbuiltins.def
misc.c
module.c re PR fortran/37274 ([Regression on 4.3?] error: type name is ambiguous.) 2008-09-17 22:23:51 +00:00
openmp.c
options.c
parse.c gfortran.h (struct gfc_namespace): New member `implicit_loc'. 2008-09-02 10:13:21 +02:00
parse.h gfortran.h (gfc_typebound_proc): New struct. 2008-08-24 18:15:27 +02:00
primary.c re PR fortran/35770 (implicit character(s) hides type of internal function) 2008-09-13 09:44:36 +02:00
resolve.c re PR fortran/37274 ([Regression on 4.3?] error: type name is ambiguous.) 2008-09-17 22:23:51 +00:00
scanner.c
simplify.c re PR fortran/36214 (Wrong simplification of BOZ constants) 2008-09-11 09:28:18 +02:00
st.c gfortran.h (enum gfc_statement): New entry `ST_GENERIC'. 2008-08-31 12:00:30 +02:00
symbol.c re PR fortran/37274 ([Regression on 4.3?] error: type name is ambiguous.) 2008-09-17 22:23:51 +00:00
target-memory.c re PR fortran/36214 (Wrong simplification of BOZ constants) 2008-09-11 09:28:18 +02:00
target-memory.h
trans-array.c re PR fortran/37507 (Print location in (DE)ALLOCATION errors) 2008-09-18 14:02:50 +02:00
trans-array.h re PR fortran/37507 (Print location in (DE)ALLOCATION errors) 2008-09-18 14:02:50 +02:00
trans-common.c re PR fortran/29635 (debug info of modules) 2008-08-29 20:41:19 +02:00
trans-const.c
trans-const.h
trans-decl.c re PR fortran/37420 (-Wunused-variable broken) 2008-09-10 13:54:08 +02:00
trans-expr.c re PR fortran/37199 (array assignment from function writes out of bounds) 2008-09-08 11:17:27 +02:00
trans-intrinsic.c tree-vrp.c (simplify_truth_ops_using_ranges): Fix types. 2008-09-12 09:01:35 +00:00
trans-io.c gfortran.h (gfc_component): Add field "symbol_attribute attr"... 2008-08-23 23:04:01 +02:00
trans-openmp.c re PR fortran/37507 (Print location in (DE)ALLOCATION errors) 2008-09-18 14:02:50 +02:00
trans-stmt.c re PR fortran/37507 (Print location in (DE)ALLOCATION errors) 2008-09-18 14:02:50 +02:00
trans-stmt.h
trans-types.c dwarf2out.c (descr_info_loc): Handle VAR_DECL. 2008-08-29 20:53:33 +02:00
trans-types.h
trans.c re PR fortran/37507 (Print location in (DE)ALLOCATION errors) 2008-09-18 14:02:50 +02:00
trans.h re PR fortran/37507 (Print location in (DE)ALLOCATION errors) 2008-09-18 14:02:50 +02:00
types.def