On Wed, Nov 21, 2018 at 08:31:17AM +0100, Thomas Koenig wrote: > > I'd like to ping this patch, ok for trunk? > > OK. Thanks for the patch!
Thanks. > Before 9.0 is released, we should also document the flag > (and the extension it supports) in the manual, and note it > in changes.html and on the Wiki. Would you also do that? Like this? Ok for trunk/wwwdocs? 2018-11-21 Jakub Jelinek <ja...@redhat.com> * invoke.texi (-fdec-include): Document. --- gcc/fortran/invoke.texi.jj 2018-08-26 22:42:19.907823618 +0200 +++ gcc/fortran/invoke.texi 2018-11-21 09:14:21.449174232 +0100 @@ -119,7 +119,7 @@ by type. Explanations are in the follow @gccoptlist{-fall-intrinsics -fbackslash -fcray-pointer -fd-lines-as-code @gol -fd-lines-as-comments @gol -fdec -fdec-structure -fdec-intrinsic-ints -fdec-static -fdec-math @gol --fdefault-double-8 -fdefault-integer-8 -fdefault-real-8 @gol +-fdec-include -fdefault-double-8 -fdefault-integer-8 -fdefault-real-8 @gol -fdefault-real-10 -fdefault-real-16 -fdollar-ok -ffixed-line-length-@var{n} @gol -ffixed-line-length-none -ffree-form -ffree-line-length-@var{n} @gol -ffree-line-length-none -fimplicit-none -finteger-4-integer-8 @gol @@ -277,6 +277,12 @@ functions (e.g. TAND, ATAND, etc...) for Enable DEC-style STATIC and AUTOMATIC attributes to explicitly specify the storage of variables and other objects. +@item -fdec-include +@opindex @code{fdec-include} +Enable parsing of INCLUDE as a statement in addition to parsing it as +INCLUDE line. When parsed as INCLUDE statement, INCLUDE does not have to +be on a single line and can use line continuations. + @item -fdollar-ok @opindex @code{fdollar-ok} @cindex @code{$} Jakub
--- gcc-9/changes.html.jj 2018-11-14 17:46:10.747799079 +0100 +++ gcc-9/changes.html 2018-11-21 09:23:48.974896385 +0100 @@ -118,6 +118,14 @@ a work-in-progress.</p> the <code>IEEE_IS_NAN</code> function from the intrinsic module <code>IEEE_ARITHMETIC</code>. </li> + <li> + A new command line option <code>-fdec-include</code>, set also + by <code>-fdec</code> option, has been added for an extension + for compatibility with legacy code. With this option, + <code>INCLUDE</code> directive is parsed also as a statement, + which allows the directive to be written on multiple source lines + with line continuations. + </li> </ul> <!-- <h3 id="go">Go</h3> -->