This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Small C OpenMP diagnostics fix (PR c/79837)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 3 Mar 2017 21:18:55 +0100
- Subject: [committed] Small C OpenMP diagnostics fix (PR c/79837)
- Authentication-results: sourceware.org; auth=none
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
In both cases starting with the UDR additions we are looking for any
identifiers, both min and max are identifiers, so no need to mention them
explicitly. They are just kind like predefined UDRs.
Committed to trunk.
2017-03-03 Jakub Jelinek <jakub@redhat.com>
PR c/79837
* c-parser.c (c_parser_omp_clause_reduction): Don't mention
%<min%> or %<max%> in the diagnostics, instead mention identifier.
(c_parser_omp_declare_reduction): Don't mention %<min%> in the
diagnostics.
--- gcc/c/c-parser.c.jj 2017-03-03 20:53:36.000000000 +0100
+++ gcc/c/c-parser.c 2017-03-03 21:13:35.058836286 +0100
@@ -12112,7 +12112,7 @@ c_parser_omp_clause_reduction (c_parser
default:
c_parser_error (parser,
"expected %<+%>, %<*%>, %<-%>, %<&%>, "
- "%<^%>, %<|%>, %<&&%>, %<||%>, %<min%> or %<max%>");
+ "%<^%>, %<|%>, %<&&%>, %<||%> or identifier");
c_parser_skip_until_found (parser, CPP_CLOSE_PAREN, 0);
return list;
}
@@ -16960,7 +16960,7 @@ c_parser_omp_declare_reduction (c_parser
default:
c_parser_error (parser,
"expected %<+%>, %<*%>, %<-%>, %<&%>, "
- "%<^%>, %<|%>, %<&&%>, %<||%>, %<min%> or identifier");
+ "%<^%>, %<|%>, %<&&%>, %<||%> or identifier");
goto fail;
}
Jakub