]> git.ipfire.org Git - thirdparty/gcc.git/commit
alloc_alloc_expr_1.f90: Adjust for new error message.
authorSteven G. Kargl <kargls@comcast.net>
Tue, 31 Mar 2009 04:38:12 +0000 (04:38 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Tue, 31 Mar 2009 04:38:12 +0000 (04:38 +0000)
commit3759634f3208cbc1226bec19d22cbff989a287c3
tree68d7f06e5527fece36527f377f12c08b89a27d34
parent9752c4ad248eb383f72f9bd354af4c1890f1f1a3
alloc_alloc_expr_1.f90: Adjust for new error message.

2008-12-10  Steven G. Kargl  <kargls@comcast.net>

* gfortran.dg/alloc_alloc_expr_1.f90: Adjust for new error message.
* gfortran.dg/allocate_alloc_opt_1.f90: New test.
* gfortran.dg/allocate_alloc_opt_2.f90: Ditto.
* gfortran.dg/allocate_alloc_opt_3.f90: Ditto.
* gfortran.dg/deallocate_alloc_opt_1.f90: Ditto.
* gfortran.dg/deallocate_alloc_opt_2.f90: Ditto.
* gfortran.dg/deallocate_alloc_opt_3.f90: Ditto.

2008-12-10  Steven G. Kargl  <kargls@comcast.net>

* trans-stmt.c(gfc_trans_allocate): Add translation of ERRMSG.
(gfc_trans_deallocate): Add translation of ERRMSG.  Remove stale
comments.  Minor whitespace cleanup.
* resolve.c(is_scalar_expr_ptr): Whitespace cleanup.
(resolve_deallocate_expr (gfc_expr *e): Update error message.
(resolve_allocate_expr):  Remove dead code.  Update error message.
Move error checking to ...
(resolve_allocate_deallocate): ... here.  Add additional error
checking for STAT, ERRMSG, and allocate-objects.
* match.c(gfc_match_allocate,gfc_match_deallocate):  Parse ERRMSG.
Check for redundant uses of STAT and ERRMSG.  Reword error message
and add checking for pointer, allocatable, and proc_pointer attributes.

From-SVN: r145331
12 files changed:
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/fortran/resolve.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/alloc_alloc_expr_1.f90
gcc/testsuite/gfortran.dg/allocate_alloc_opt_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/allocate_alloc_opt_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/allocate_alloc_opt_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/deallocate_alloc_opt_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/deallocate_alloc_opt_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/deallocate_alloc_opt_3.f90 [new file with mode: 0644]