re PR fortran/85841 ([F2018] reject deleted features)
authorJanus Weil <janus@gcc.gnu.org>
Mon, 21 May 2018 06:45:55 +0000 (08:45 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Mon, 21 May 2018 06:45:55 +0000 (08:45 +0200)
commit67e9518e20b8b836bbaa9dc783bd6a4db56c2bcb
tree746807b3f3b84235d9e02e992b13eca29b037db2
parentf3f7cefecc833b4ab652215ceb8b408c21dca225
re PR fortran/85841 ([F2018] reject deleted features)

2018-05-21  Janus Weil  <janus@gcc.gnu.org>

PR fortran/85841
* libgfortran.h: New macros GFC_STD_OPT_*.
* error.c (notify_std_msg): New function.
(gfc_notify_std): Adjust such that it can handle combinations of
GFC_STD_* flags in the 'std' argument, not just a single one.
* match.c (match_arithmetic_if, gfc_match_if): Reject arithmetic if
in Fortran 2018.
(gfc_match_stopcode): Use GFC_STD_OPT_* macros.
* options.c (set_default_std_flags): Warn for F2018 deleted features
by default.
(gfc_handle_option): F2018 deleted features are allowed in earlier
standards.
* symbol.c (gfc_define_st_label, gfc_reference_st_label): Reject
nonblock do constructs in Fortran 2018.

2018-05-21  Janus Weil  <janus@gcc.gnu.org>

PR fortran/85841
* gfortran.dg/g77/19990826-3.f: Add option "-std=legacy".
* gfortran.dg/g77/20020307-1.f: Ditto.
* gfortran.dg/g77/980310-3.f: Ditto.
* gfortran.dg/goacc/loop-1-2.f95: Ditto.
* gfortran.dg/goacc/loop-1.f95: Ditto.
* gfortran.dg/gomp/appendix-a/a.6.1.f90: Ditto.
* gfortran.dg/gomp/appendix-a/a.6.2.f90: Ditto.
* gfortran.dg/gomp/do-1.f90: Ditto.
* gfortran.dg/gomp/omp_do1.f90: Ditto.
* gfortran.dg/pr17229.f: Ditto.
* gfortran.dg/pr37243.f: Ditto.
* gfortran.dg/pr49721-1.f: Ditto.
* gfortran.dg/pr58484.f: Ditto.
* gfortran.dg/pr81175.f: Ditto.
* gfortran.dg/pr81723.f: Ditto.
* gfortran.dg/predcom-2.f: Ditto.
* gfortran.dg/vect/Ofast-pr50414.f90: Ditto.
* gfortran.dg/vect/cost-model-pr34445a.f: Ditto.
* gfortran.dg/vect/fast-math-mgrid-resid.f: Ditto.
* gfortran.dg/vect/pr52580.f: Ditto.

From-SVN: r260433
27 files changed:
gcc/fortran/ChangeLog
gcc/fortran/error.c
gcc/fortran/libgfortran.h
gcc/fortran/match.c
gcc/fortran/options.c
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/g77/19990826-3.f
gcc/testsuite/gfortran.dg/g77/20020307-1.f
gcc/testsuite/gfortran.dg/g77/980310-3.f
gcc/testsuite/gfortran.dg/goacc/loop-1-2.f95
gcc/testsuite/gfortran.dg/goacc/loop-1.f95
gcc/testsuite/gfortran.dg/gomp/appendix-a/a.6.1.f90
gcc/testsuite/gfortran.dg/gomp/appendix-a/a.6.2.f90
gcc/testsuite/gfortran.dg/gomp/do-1.f90
gcc/testsuite/gfortran.dg/gomp/omp_do1.f90
gcc/testsuite/gfortran.dg/pr17229.f
gcc/testsuite/gfortran.dg/pr37243.f
gcc/testsuite/gfortran.dg/pr49721-1.f
gcc/testsuite/gfortran.dg/pr58484.f
gcc/testsuite/gfortran.dg/pr81175.f
gcc/testsuite/gfortran.dg/pr81723.f
gcc/testsuite/gfortran.dg/predcom-2.f
gcc/testsuite/gfortran.dg/vect/Ofast-pr50414.f90
gcc/testsuite/gfortran.dg/vect/cost-model-pr34445a.f
gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f
gcc/testsuite/gfortran.dg/vect/pr52580.f