re PR c/79837 (incomplete diagnostic in c-parser: expected +, *, -, &, ^, |, &&,...
authorJakub Jelinek <jakub@redhat.com>
Fri, 3 Mar 2017 20:16:58 +0000 (21:16 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 3 Mar 2017 20:16:58 +0000 (21:16 +0100)
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.

From-SVN: r245885

gcc/c/ChangeLog
gcc/c/c-parser.c

index efee0cf..92be3e1 100644 (file)
@@ -1,5 +1,11 @@
 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.
+
        PR c/79836
        * c-parser.c (c_parser_generic_selection): Use %<_Generic%>
        instead of %<_Generic>.
index 8636dcc..fa4e950 100644 (file)
@@ -12112,7 +12112,7 @@ c_parser_omp_clause_reduction (c_parser *parser, tree list)
        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 *parser, enum pragma_context context)
     default:
       c_parser_error (parser,
                      "expected %<+%>, %<*%>, %<-%>, %<&%>, "
-                     "%<^%>, %<|%>, %<&&%>, %<||%>, %<min%> or identifier");
+                     "%<^%>, %<|%>, %<&&%>, %<||%> or identifier");
       goto fail;
     }