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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Mar  7 19:07:44 2017
New Revision: 245959

URL: https://gcc.gnu.org/viewcvs?rev=245959&root=gcc&view=rev
Log:
        PR c/79834
c/
        * c-parser.c (c_parser_pragma): Use error_at instead of c_parser_error
        for "may only be used in compound statements" diagnostics, change it
        such that the same translatable string is used for all pragmas.  For
        PRAGMA_OACC_WAIT use "acc wait" rather than "acc enter data" in the
        diagnostics.
        (c_parser_omp_cancellation_point, c_parser_omp_target_update,
        c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Change
        "may only be used in compound statements" diagnostics, such that the
        same translatable string is used for all pragmas.
cp/
        * parser.c (cp_parser_omp_cancellation_point,
        cp_parser_omp_target_enter_data, cp_parser_omp_target_exit_data,
        cp_parser_omp_target_update): Change "may only be used in compound
        statements" diagnostics, such that the same translatable string is
        used for all pragmas.
        (cp_parser_pragma): Likewise.  Use error_at instead of
        cp_parser_error for that diagnostics.
testsuite/
        * c-c++-common/goacc/pragma_context.c (f2): Adjust expected
        diagnostics.

Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-parser.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/goacc/pragma_context.c

Reply via email to