From 883c8f06ff164714d1e62c954c6e035d197ccd61 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 3 Mar 2017 20:56:54 +0100 Subject: [PATCH] re PR c/79836 (typo in c/c-parser.c: pragma omp ordered) PR c/79836 * c-parser.c (c_parser_generic_selection): Use %<_Generic%> instead of %<_Generic>. (c_parser_omp_ordered): Use % instead of %. (c_parser_omp_target_exit_data): Use % instead of %. From-SVN: r245883 --- gcc/c/ChangeLog | 9 +++++++++ gcc/c/c-parser.c | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 95cea175d3f..efee0cf2a87 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,12 @@ +2017-03-03 Jakub Jelinek + + PR c/79836 + * c-parser.c (c_parser_generic_selection): Use %<_Generic%> + instead of %<_Generic>. + (c_parser_omp_ordered): Use % instead of %. + (c_parser_omp_target_exit_data): Use % instead of + %. + 2017-02-28 Jakub Jelinek * c-parser.c (c_parser_asm_statement): Use cond ? G_("...") : G_("...") diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index c74b3cff001..8636dcc9fb7 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -7452,7 +7452,7 @@ c_parser_generic_selection (c_parser *parser) else { error_at (assoc.type_location, - "%<_Generic> selector matches multiple associations"); + "%<_Generic%> selector matches multiple associations"); inform (matched_assoc.type_location, "other match is here"); } @@ -15454,7 +15454,7 @@ c_parser_omp_ordered (c_parser *parser, enum pragma_context context, if (context == pragma_stmt) { error_at (loc, - "%<#pragma omp ordered%> with % clause may " + "%<#pragma omp ordered%> with % clause may " "only be used in compound statements"); c_parser_skip_to_pragma_eol (parser, false); return false; @@ -16297,7 +16297,7 @@ c_parser_omp_target_exit_data (location_t loc, c_parser *parser, map_seen |= 1; error_at (OMP_CLAUSE_LOCATION (*pc), "%<#pragma omp target exit data%> with map-type other " - "than %, % or % on %" + "than %, % or % on %" " clause"); *pc = OMP_CLAUSE_CHAIN (*pc); continue; -- 2.30.2