diff mbox

[committed] Fix 3 C FE diagnostic messages (PR c/79836)

Message ID 20170303195820.GI1849@tucnak
State New
Headers show

Commit Message

Jakub Jelinek March 3, 2017, 7:58 p.m. UTC
Hi!

Missed % before > in 3 spots (strangely, all of them in the C FE).

The first hunk committed as obvious, the second two falls under OpenMP
maintainance, committed to trunk.

2017-03-03  Jakub Jelinek  <jakub@redhat.com>

	PR c/79836
	* c-parser.c (c_parser_generic_selection): Use %<_Generic%>
	instead of %<_Generic>.
	(c_parser_omp_ordered): Use %<depend%> instead of %<depend>.
	(c_parser_omp_target_exit_data): Use %<release%> instead of
	%<release>.


	Jakub
diff mbox

Patch

--- gcc/c/c-parser.c.jj	2017-02-28 16:24:05.000000000 +0100
+++ gcc/c/c-parser.c	2017-03-03 20:53:36.394531548 +0100
@@ -7452,7 +7452,7 @@  c_parser_generic_selection (c_parser *pa
 	  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,
 	  if (context == pragma_stmt)
 	    {
 	      error_at (loc,
-			"%<#pragma omp ordered%> with %<depend> clause may "
+			"%<#pragma omp ordered%> with %<depend%> 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_
 	    map_seen |= 1;
 	    error_at (OMP_CLAUSE_LOCATION (*pc),
 		      "%<#pragma omp target exit data%> with map-type other "
-		      "than %<from%>, %<release> or %<delete%> on %<map%>"
+		      "than %<from%>, %<release%> or %<delete%> on %<map%>"
 		      " clause");
 	    *pc = OMP_CLAUSE_CHAIN (*pc);
 	    continue;