Add missing space in various string literals
authorJakub Jelinek <jakub@redhat.com>
Mon, 7 Mar 2022 14:16:56 +0000 (15:16 +0100)
committerJakub Jelinek <jakub@redhat.com>
Mon, 7 Mar 2022 14:16:56 +0000 (15:16 +0100)
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.

2022-03-07  Jakub Jelinek  <jakub@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
gcc/cp/parser.cc

index 84deac04c4430771757fb000b040517761dd1218..129dd727ef396257fc1ca28f2201c1c6f1a3819d 100644 (file)
@@ -16230,8 +16230,8 @@ c_parser_omp_clause_map (c_parser *parser, tree list)
       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;
        }
index 03d99aba13e3c06241ff5c7e54ef3d0100a7fac2..20aab5eb6b1568849bcde70a9bec8e22adfe3bc0 100644 (file)
@@ -39432,8 +39432,8 @@ cp_parser_omp_clause_map (cp_parser *parser, tree list)
       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,