From 02b7dd7f8233eb83f660cc021857be36cab2b846 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 7 Mar 2022 15:16:56 +0100 Subject: [PATCH] Add missing space in various string literals 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 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 | 4 ++-- gcc/cp/parser.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/c/c-parser.cc b/gcc/c/c-parser.cc index 84deac0..129dd72 100644 --- a/gcc/c/c-parser.cc +++ b/gcc/c/c-parser.cc @@ -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 % or %" - "on % clause"); + "modifier other than % or " + "% on % clause"); parens.skip_until_found_close (parser); return list; } diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc index 03d99ab..20aab5e 100644 --- a/gcc/cp/parser.cc +++ b/gcc/cp/parser.cc @@ -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 % or %" - "on % clause"); + "modifier other than % or " + "% on % clause"); cp_parser_skip_to_closing_parenthesis (parser, /*recovering=*/true, /*or_comma=*/false, -- 2.7.4