re PR fortran/89103 (Allow blank format items in format strings)
commit17f62b7e1fef0a04c738419b0108eeb89f6b7463
authorJim MacArthur <jim.macarthur@codethink.co.uk>
Wed, 19 Jun 2019 03:02:21 +0000 (19 03:02 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 19 Jun 2019 03:02:21 +0000 (19 03:02 +0000)
treeff00dffb7f13addcdaa0121629e4649ffdef0fce
parenteb54b267a168b87d38d6ea89dcb57b355b0d1b35
re PR fortran/89103 (Allow blank format items in format strings)

2019-06-19  Jim MacArthur  <jim.macarthur@codethink.co.uk>
    Mark Eggleston  <mark.eggleston@codethink.com>

PR fortran/89103
* gfortran.texi: Add -fdec-blank-format-item
* invoke.texi: Add option to list of options.
* invoke.texi: Add to section on Commas in FORMAT specifications.
* io.c (check_format): At FMT_RPAREN goto finished if
-fdec-blank-format-item otherwise set error string.
* lang.opt: Add new option.
* options.c (set_dec_flags): Add SET_BITFLAG for
flag_dec_format_defaults.

* gfortran.dg/dec_format_empty_item_1.f: New test.
* gfortran.dg/dec_format_empty_item_2.f: New test.
* gfortran.dg/dec_format_empty_item_3.f: New test.

Co-Authored-By: Mark Eggleston <mark.eggleston@codethink.com>
From-SVN: r272467
gcc/fortran/ChangeLog
gcc/fortran/gfortran.texi
gcc/fortran/invoke.texi
gcc/fortran/io.c
gcc/fortran/lang.opt
gcc/fortran/options.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dec_format_empty_item_1.f [new file with mode: 0644]
gcc/testsuite/gfortran.dg/dec_format_empty_item_2.f [new file with mode: 0644]
gcc/testsuite/gfortran.dg/dec_format_empty_item_3.f [new file with mode: 0644]