]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: frontend code for F2018 QUIET specifier to STOP and ERROR STOP
authorHarald Anlauf <anlauf@gmx.de>
Wed, 23 Feb 2022 22:08:29 +0000 (23:08 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 24 Feb 2022 19:38:13 +0000 (20:38 +0100)
commit916b809fbfdd2740006270baf549bf22fe9ec3c4
tree9d2d6e000b37e084950454f1b0f108a9a9b21625
parent8645370af18979123d9e94e3ed215d23dd740721
Fortran: frontend code for F2018 QUIET specifier to STOP and ERROR STOP

Fortran 2018 allows for a QUIET specifier to the STOP and ERROR STOP
statements.  Whilst the gfortran library code provides support for this
specifier for quite some time, the frontend implementation was missing.

gcc/fortran/ChangeLog:

PR fortran/84519
* dump-parse-tree.cc (show_code_node): Dump QUIET specifier when
present.
* match.cc (gfc_match_stopcode): Implement parsing of F2018 QUIET
specifier.  F2018 stopcodes may have non-default integer kind.
* resolve.cc (gfc_resolve_code): Add checks for QUIET argument.
* trans-stmt.cc (gfc_trans_stop): Pass QUIET specifier to call of
library function.

gcc/testsuite/ChangeLog:

PR fortran/84519
* gfortran.dg/stop_1.f90: New test.
* gfortran.dg/stop_2.f: New test.
* gfortran.dg/stop_3.f90: New test.
* gfortran.dg/stop_4.f90: New test.
gcc/fortran/dump-parse-tree.cc
gcc/fortran/match.cc
gcc/fortran/resolve.cc
gcc/fortran/trans-stmt.cc
gcc/testsuite/gfortran.dg/stop_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/stop_2.f [new file with mode: 0644]
gcc/testsuite/gfortran.dg/stop_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/stop_4.f90 [new file with mode: 0644]