https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91496

--- Comment #6 from anlauf at gcc dot gnu.org ---
Author: anlauf
Date: Thu Sep  5 21:02:44 2019
New Revision: 275445

URL: https://gcc.gnu.org/viewcvs?rev=275445&root=gcc&view=rev
Log:
2019-09-05  Harald Anlauf  <anl...@gmx.de>

        Backport from mainline
        PR fortran/91496
        * gfortran.h: Extend struct gfc_iterator for loop annotations.
        * array.c (gfc_copy_iterator): Copy loop annotations by IVDEP,
        VECTOR, and NOVECTOR pragmas.
        * decl.c (gfc_match_gcc_ivdep, gfc_match_gcc_vector)
        (gfc_match_gcc_novector): New matcher functions handling IVDEP,
        VECTOR, and NOVECTOR pragmas.
        * match.h: Declare prototypes of matcher functions handling IVDEP,
        VECTOR, and NOVECTOR pragmas.
        * parse.c (decode_gcc_attribute, parse_do_block)
        (parse_executable): Decode IVDEP, VECTOR, and NOVECTOR pragmas;
        emit warning for unrecognized pragmas instead of error.
        * trans-stmt.c (gfc_trans_simple_do, gfc_trans_do): Add code to
        emit annotations for IVDEP, VECTOR, and NOVECTOR pragmas.
        * gfortran.texi: Document IVDEP, VECTOR, and NOVECTOR pragmas.

        PR fortran/91496
        * parse.c (parse_executable): Improve error messages for
        improperly placed pragmas not preceeding a loop.

        PR fortran/91496
        * gfortran.dg/pr91496.f90: New testcase.

        PR fortran/91496
        * gfortran.dg/directive_unroll_5.f90: Adjust error message.

Added:
    branches/gcc-9-branch/gcc/testsuite/gfortran.dg/pr91496.f90
Modified:
    branches/gcc-9-branch/gcc/fortran/ChangeLog
    branches/gcc-9-branch/gcc/fortran/array.c
    branches/gcc-9-branch/gcc/fortran/decl.c
    branches/gcc-9-branch/gcc/fortran/gfortran.h
    branches/gcc-9-branch/gcc/fortran/gfortran.texi
    branches/gcc-9-branch/gcc/fortran/match.h
    branches/gcc-9-branch/gcc/fortran/parse.c
    branches/gcc-9-branch/gcc/fortran/trans-stmt.c
    branches/gcc-9-branch/gcc/testsuite/ChangeLog
    branches/gcc-9-branch/gcc/testsuite/gfortran.dg/directive_unroll_5.f90

Reply via email to