allocate_alloc_opt_4.f90: New test.
authorSteven G. Kargl <kargl@gcc.gnu.org>
Sun, 23 Aug 2009 03:19:55 +0000 (03:19 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Sun, 23 Aug 2009 03:19:55 +0000 (03:19 +0000)
commit8234e5e0e205db40a4b09067a875a50f111d6ef6
treeddb726a4bc9d6858868e01db05219108c423d6b8
parente25b7843ec7184bf740693005ab35619ab9ed561
allocate_alloc_opt_4.f90: New test.

2009-08-22 Steven K. kargl  <kargl@gcc.gnu.org>

* gfortran.dg/allocate_alloc_opt_4.f90: New test.
* gfortran.dg/allocate_alloc_opt_5.f90: New test.
* gfortran.dg/allocate_alloc_opt_6.f90: New test.

2009-08-22 Steven K. kargl  <kargl@gcc.gnu.org>

* fortran/decl.c (match_char_spec): Rename to gfc_match_char_spec,
and remove static.
* fortran/gfortran.h: Add *expr3 entity to gfc_code.  Add prototype
for gfc_match_char_spec.
* fortran/trans-stmt.c (gfc_trans_allocate): Translate the SOURCE=
tag.
* fortran/match.c (match_intrinsic_typespec): New function to match
F2003 intrinsic-type-spec.
(conformable_arrays): New function. Check SOURCE= and
allocation-object are conformable.
(gfc_match_allocate): Use new functions.  Match SOURCE= tag.

From-SVN: r151023
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/gfortran.h
gcc/fortran/match.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_alloc_opt_4.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/allocate_alloc_opt_5.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/allocate_alloc_opt_6.f90 [new file with mode: 0644]