On Fri, Aug 20, 2021 at 12:00:10PM +0200, Tobias Burnus wrote:
> gcc/fortran/ChangeLog:
> 
>       * dump-parse-tree.c (show_omp_clauses): Handle 'at', 'severity'
>       and 'message' clauses.
>       (show_omp_node, show_code_node): Handle EXEC_OMP_ERROR.
>       * gfortran.h (gfc_statement): Add ST_OMP_ERROR.
>       (gfc_omp_severity_type, gfc_omp_at_type): New.
>       (gfc_omp_clauses): Add 'at', 'severity' and 'message' clause;
>       use more bitfields + ENUM_BITFIELD.
>       (gfc_exec_op): Add EXEC_OMP_ERROR.
>       * match.h (gfc_match_omp_error): New.
>       * openmp.c (enum omp_mask1): Add OMP_CLAUSE_(AT,SEVERITY,MESSAGE).
>       (gfc_match_omp_clauses): Handle new clauses.
>       (OMP_ERROR_CLAUSES, gfc_match_omp_error): New.
>       (resolve_omp_clauses): Resolve new clauses.
>       (omp_code_to_statement, gfc_resolve_omp_directive): Handle
>       EXEC_OMP_ERROR.
>       * parse.c (decode_omp_directive, next_statement,
>       gfc_ascii_statement): Handle 'omp error'.
>       * resolve.c (gfc_resolve_blocks): Likewise.
>       * st.c (gfc_free_statement): Likewise.
>       * trans-openmp.c (gfc_trans_omp_error): Likewise.
>       (gfc_trans_omp_directive): Likewise.
>       * trans.c (trans_code): Likewise.
> 
> libgomp/ChangeLog:
> 
>       * testsuite/libgomp.fortran/error-1.f90: New test.
> 
> gcc/testsuite/ChangeLog:
> 
>       * gfortran.dg/gomp/error-1.f90: New test.
>       * gfortran.dg/gomp/error-2.f90: New test.
>       * gfortran.dg/gomp/error-3.f90: New test.

LGTM, thanks.

        Jakub

Reply via email to