Support TYPE as alias for PRINT with -fdec.
authorFritz Reese <fritzoreese@gmail.com>
Tue, 25 Oct 2016 15:24:36 +0000 (15:24 +0000)
committerFritz Reese <foreese@gcc.gnu.org>
Tue, 25 Oct 2016 15:24:36 +0000 (15:24 +0000)
commit90051c26da7abd0999ce0afdd9471e354009b861
treee01b0eb63f28905e753fbf1c8cd6160907cdfc2b
parentef14476730875df063a5788a0072984e22b7c2ec
Support TYPE as alias for PRINT with -fdec.

gcc/fortran/
* decl.c (gfc_match_type): New function.
* match.h (gfc_match_type): New function.
* match.c (gfc_match_if): Special case for one-line IFs.
* gfortran.texi: Update documentation.
* parse.c (decode_statement): Invoke gfc_match_type.

gcc/testsuite/gfortran.dg/
* dec_type_print.f90: New testcase.

From-SVN: r241518
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/gfortran.texi
gcc/fortran/match.c
gcc/fortran/match.h
gcc/fortran/parse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dec_type_print.f90 [new file with mode: 0644]