2009-08-22 Steven K. kargl <kargl@gcc.gnu.org>
commit10f5dcc072169f5b3c7075b723a53e0da5c3d10d
authorkargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 Aug 2009 03:19:55 +0000 (23 03:19 +0000)
committerkargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 Aug 2009 03:19:55 +0000 (23 03:19 +0000)
treeddb726a4bc9d6858868e01db05219108c423d6b8
parentf92bd2dda8819e6c0128b58074e70bc72f0c927b
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151023 138bc75d-0d04-0410-961f-82ee72b054a4
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]