Hi!

After more than 2 years I've run my
https://gcc.gnu.org/ml/gcc-patches/2017-02/msg00844.html
script again.  While it has lots of false positives, it discovered
two bugs.

Committed to trunk as obvious.

2022-03-07  Jakub Jelinek  <ja...@redhat.com>

gcc/c/
        * c-parser.cc (c_parser_omp_clause_map): Add missing space in string
        literal.
gcc/cp/
        * parser.cc (cp_parser_omp_clause_map): Add missing space in string
        literal.

--- gcc/c/c-parser.cc.jj        2022-02-17 10:28:51.780275535 +0100
+++ gcc/c/c-parser.cc   2022-03-07 15:11:03.749647618 +0100
@@ -16230,8 +16230,8 @@ c_parser_omp_clause_map (c_parser *parse
       else
        {
          c_parser_error (parser, "%<#pragma omp target%> with "
-                                 "modifier other than %<always%> or %<close%>"
-                                 "on %<map%> clause");
+                                 "modifier other than %<always%> or "
+                                 "%<close%> on %<map%> clause");
          parens.skip_until_found_close (parser);
          return list;
        }
--- gcc/cp/parser.cc.jj 2022-02-11 00:19:22.230066001 +0100
+++ gcc/cp/parser.cc    2022-03-07 15:11:58.438889997 +0100
@@ -39432,8 +39432,8 @@ cp_parser_omp_clause_map (cp_parser *par
       else
        {
          cp_parser_error (parser, "%<#pragma omp target%> with "
-                                  "modifier other than %<always%> or %<close%>"
-                                  "on %<map%> clause");
+                                  "modifier other than %<always%> or "
+                                  "%<close%> on %<map%> clause");
          cp_parser_skip_to_closing_parenthesis (parser,
                                                 /*recovering=*/true,
                                                 /*or_comma=*/false,


        Jakub

Reply via email to