]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/40881 ([F03] warn for obsolescent features)
authorTobias Burnus <burnus@net-b.de>
Tue, 14 Aug 2012 10:26:11 +0000 (12:26 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Tue, 14 Aug 2012 10:26:11 +0000 (12:26 +0200)
commitf3e7b9d618f4b089f31c79fcad5f66ba1a58ca01
treefd8ae21355514bd9c9b84fa2b0cf9abb625369da
parent2e60cfaa2b1de4fac1fe56be8273f4c547ae74dd
re PR fortran/40881 ([F03] warn for obsolescent features)

2012-08-14  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40881
        * error.c (gfc_notify_std): Reset cur_error_buffer->flag flag
        when the error/warning has been printed.
        * gfortran.h (gfc_sl_type): Add ST_LABEL_DO_TARGET.
        * match.c (gfc_match_do): Use ST_LABEL_DO_TARGET.
        * parse.c (check_statement_label): Use ST_LABEL_DO_TARGET.
        (parse_executable): Add obsolescence check for DATA.
        * resolve.c (resolve_branch): Handle ST_LABEL_DO_TARGET.
        * symbol.c (gfc_define_st_label, gfc_reference_st_label):
        Add obsolescence diagnostics.
        * trans-stmt.c (gfc_trans_label_assign): Handle
        * ST_LABEL_DO_TARGET.

2012-08-14  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40881
        * gfortran.dg/data_constraints_3.f90: New.
        * gfortran.dg/data_constraints_1.f90: Add dg-options ""
        to disable -pedantic compilation.
        * gfortran.dg/pr37243.f: Ditto.
        * gfortran.dg/g77/19990826-3.f: Ditto.
        * gfortran.dg/g77/20020307-1.f : Ditto.
        * gfortran.dg/g77/980310-3.f: Ditto.

From-SVN: r190379
15 files changed:
gcc/fortran/ChangeLog
gcc/fortran/error.c
gcc/fortran/gfortran.h
gcc/fortran/match.c
gcc/fortran/parse.c
gcc/fortran/resolve.c
gcc/fortran/symbol.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/data_constraints_1.f90
gcc/testsuite/gfortran.dg/data_constraints_3.f90 [new file with mode: 0644]
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/pr37243.f