aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-03-14 08:15:08 +0100
committerJakub Jelinek <jakub@redhat.com>2020-03-14 08:15:08 +0100
commit53b28abf8e4ba37e47d3bb05476e0a80ae761567 (patch)
tree852c7ce396caa57ba7a3880fa4b07d539d6f11cb /gcc/cp
parent0034955eb16f7a3a79e242750c27fcad62d90147 (diff)
downloadgcc-53b28abf8e4ba37e47d3bb05476e0a80ae761567.zip
gcc-53b28abf8e4ba37e47d3bb05476e0a80ae761567.tar.gz
gcc-53b28abf8e4ba37e47d3bb05476e0a80ae761567.tar.bz2
Fix doubled indefinite articles, mostly in comments.
2020-03-14 Jakub Jelinek <jakub@redhat.com> * gimple-fold.c (gimple_fold_builtin_strncpy): Change "a an" to "an" in a comment. * hsa-common.h (is_a_helper): Likewise. * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. * config/arc/arc.c (arc600_corereg_hazard): Likewise. * config/s390/s390.c (s390_indirect_branch_via_thunk): Likewise. * logic.cc (formula::formula): Change "a an" to "an" in a comment. * parser.c (cp_debug_parser): Change "a an" to "an" in a string literal.
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/logic.cc2
-rw-r--r--gcc/cp/parser.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index eea795d..79434c9 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+2020-03-14 Jakub Jelinek <jakub@redhat.com>
+
+ * logic.cc (formula::formula): Change "a an" to "an" in a comment.
+ * parser.c (cp_debug_parser): Change "a an" to "an" in a string
+ literal.
+
2020-03-13 Patrick Palka <ppalka@redhat.com>
PR c++/67960
diff --git a/gcc/cp/logic.cc b/gcc/cp/logic.cc
index e0ffbd8..4e376fd 100644
--- a/gcc/cp/logic.cc
+++ b/gcc/cp/logic.cc
@@ -238,7 +238,7 @@ struct formula
formula (tree t)
{
- /* This should call emplace_back(). There's a an extra copy being
+ /* This should call emplace_back(). There's an extra copy being
invoked by using push_back(). */
m_clauses.push_back (t);
m_current = m_clauses.begin ();
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 24f7167..0c7db8b 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -556,7 +556,7 @@ cp_debug_parser (FILE *file, cp_parser *parser)
parser->in_statement & IN_SWITCH_STMT);
cp_debug_print_flag (file, "Parsing a structured OpenMP block",
parser->in_statement & IN_OMP_BLOCK);
- cp_debug_print_flag (file, "Parsing a an OpenMP loop",
+ cp_debug_print_flag (file, "Parsing an OpenMP loop",
parser->in_statement & IN_OMP_FOR);
cp_debug_print_flag (file, "Parsing an if statement",
parser->in_statement & IN_IF_STMT);