aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-03-18 12:56:26 +0100
committerJakub Jelinek <jakub@redhat.com>2020-03-18 12:56:26 +0100
commitd5029d45940e8c12b425b4d1a23081b4155caa61 (patch)
treee04a027c2ab748c3ac851b7a6dcbadb4863a5c5f /gcc/cp
parentd91480dee934478063fe5945b73ff3c108e40a91 (diff)
downloadgcc-d5029d45940e8c12b425b4d1a23081b4155caa61.zip
gcc-d5029d45940e8c12b425b4d1a23081b4155caa61.tar.gz
gcc-d5029d45940e8c12b425b4d1a23081b4155caa61.tar.bz2
Fix up duplicated duplicated words in comments
Another set of duplicated word fixes for things I've missed last time. These include e.g. *.cc files I forgot about, or duplicated words at the start or end of line. 2020-03-18 Jakub Jelinek <jakub@redhat.com> * asan.c (get_mem_refs_of_builtin_call): Fix up duplicated word issue in a comment. * config/arc/arc.c (frame_stack_add): Likewise. * gimple-loop-versioning.cc (loop_versioning::analyze_arbitrary_term): Likewise. * ipa-predicate.c (predicate::remap_after_inlining): Likewise. * tree-ssa-strlen.h (handle_printf_call): Likewise. * tree-ssa-strlen.c (is_strlen_related_p): Likewise. * optinfo-emit-json.cc (optrecord_json_writer::add_record): Likewise. analyzer/ * sm-malloc.cc (malloc_state_machine::on_stmt): Fix up duplicated word issue in a comment. * region-model.cc (region_model::make_region_for_unexpected_tree_code, region_model::delete_region_and_descendents): Likewise. * engine.cc (class exploded_cluster): Likewise. * diagnostic-manager.cc (class path_builder): Likewise. cp/ * constraint.cc (resolve_function_concept_check, subsumes_constraints, strictly_subsumes): Fix up duplicated word issue in a comment. * coroutines.cc (build_init_or_final_await, captures_temporary): Likewise. * logic.cc (dnf_size_r, cnf_size_r): Likewise. * pt.c (append_type_to_template_for_access_check): Likewise. d/ * expr.cc (ExprVisitor::visit (CatAssignExp *)): Fix up duplicated word issue in a comment. * d-target.cc (Target::FPTypeProperties<T>::max): Likewise. fortran/ * class.c (generate_finalization_wrapper): Fix up duplicated word issue in a comment. * trans-types.c (gfc_get_nodesc_array_type): Likewise.
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog7
-rw-r--r--gcc/cp/constraint.cc6
-rw-r--r--gcc/cp/coroutines.cc4
-rw-r--r--gcc/cp/logic.cc8
-rw-r--r--gcc/cp/pt.c2
5 files changed, 17 insertions, 10 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 9aaa81a..938504b 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,12 @@
2020-03-18 Jakub Jelinek <jakub@redhat.com>
+ * constraint.cc (resolve_function_concept_check, subsumes_constraints,
+ strictly_subsumes): Fix up duplicated word issue in a comment.
+ * coroutines.cc (build_init_or_final_await, captures_temporary):
+ Likewise.
+ * logic.cc (dnf_size_r, cnf_size_r): Likewise.
+ * pt.c (append_type_to_template_for_access_check): Likewise.
+
PR c++/91759
* decl.c (grokfndecl): Restore old diagnostics about deduction
guide declared in different scope if in_namespace is NULL_TREE.
diff --git a/gcc/cp/constraint.cc b/gcc/cp/constraint.cc
index 2176978..5e434be 100644
--- a/gcc/cp/constraint.cc
+++ b/gcc/cp/constraint.cc
@@ -316,7 +316,7 @@ resolve_function_concept_overload (tree ovl, tree args)
return cands;
}
-/* Determine if the the call expression CALL is a constraint check, and
+/* Determine if the call expression CALL is a constraint check, and
return the concept declaration and arguments being checked. If CALL
does not denote a constraint check, return NULL. */
@@ -2958,7 +2958,7 @@ equivalently_constrained (tree d1, tree d2)
Partial ordering of constraints
---------------------------------------------------------------------------*/
-/* Returns true when the the constraints in A subsume those in B. */
+/* Returns true when the constraints in A subsume those in B. */
bool
subsumes_constraints (tree a, tree b)
@@ -2968,7 +2968,7 @@ subsumes_constraints (tree a, tree b)
return subsumes (a, b);
}
-/* Returns true when the the constraints in CI (with arguments
+/* Returns true when the constraints in CI (with arguments
ARGS) strictly subsume the associated constraints of TMPL. */
bool
diff --git a/gcc/cp/coroutines.cc b/gcc/cp/coroutines.cc
index f70b3ab..a943ba0 100644
--- a/gcc/cp/coroutines.cc
+++ b/gcc/cp/coroutines.cc
@@ -2466,7 +2466,7 @@ build_init_or_final_await (location_t loc, bool is_final)
return error_mark_node;
/* So build the co_await for this */
- /* For initial/final suspends the call is is "a" per [expr.await] 3.2. */
+ /* For initial/final suspends the call is "a" per [expr.await] 3.2. */
return build_co_await (loc, setup_call, (is_final ? FINAL_SUSPEND_POINT
: INITIAL_SUSPEND_POINT));
}
@@ -2547,7 +2547,7 @@ static tree
captures_temporary (tree *stmt, int *do_subtree, void *d)
{
/* Stop recursing if we see an await expression, the subtrees
- of that will be handled when it it processed. */
+ of that will be handled when it is processed. */
if (TREE_CODE (*stmt) == CO_AWAIT_EXPR || TREE_CODE (*stmt) == CO_YIELD_EXPR)
{
*do_subtree = 0;
diff --git a/gcc/cp/logic.cc b/gcc/cp/logic.cc
index 4e376fd..194b743 100644
--- a/gcc/cp/logic.cc
+++ b/gcc/cp/logic.cc
@@ -355,7 +355,7 @@ atomic_p (tree t)
/* Recursively count the number of clauses produced when converting T
to DNF. Returns a pair containing the number of clauses and a bool
- value signifying that the the tree would be rewritten as a result of
+ value signifying that the tree would be rewritten as a result of
distributing. In general, a conjunction for which this flag is set
is considered a disjunction for the purpose of counting. */
@@ -421,7 +421,7 @@ dnf_size_r (tree t)
/* Matches constraints of the form P /\ Q, possibly resulting
in the distribution of one side over the other. When both
P and Q are disjunctions, the number of clauses are multiplied.
- When only one of P and Q is a disjunction, the the number of
+ When only one of P and Q is a disjunction, the number of
clauses are added. Otherwise, neither side is a disjunction and
no clauses are created. */
if (disjunction_p (lhs))
@@ -463,7 +463,7 @@ dnf_size_r (tree t)
/* Recursively count the number of clauses produced when converting T
to CNF. Returns a pair containing the number of clauses and a bool
- value signifying that the the tree would be rewritten as a result of
+ value signifying that the tree would be rewritten as a result of
distributing. In general, a disjunction for which this flag is set
is considered a conjunction for the purpose of counting. */
@@ -488,7 +488,7 @@ cnf_size_r (tree t)
/* Matches constraints of the form P \/ Q, possibly resulting
in the distribution of one side over the other. When both
P and Q are conjunctions, the number of clauses are multiplied.
- When only one of P and Q is a conjunction, the the number of
+ When only one of P and Q is a conjunction, the number of
clauses are added. Otherwise, neither side is a conjunction and
no clauses are created. */
if (disjunction_p (lhs))
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index c57d570..03a8dfb 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -29078,7 +29078,7 @@ append_type_to_template_for_access_check_1 (tree t,
}
/* Append TYPE_DECL to the template TEMPL.
- TEMPL is either a class type, a FUNCTION_DECL or a a TEMPLATE_DECL.
+ TEMPL is either a class type, a FUNCTION_DECL or a TEMPLATE_DECL.
At TEMPL instanciation time, TYPE_DECL will be checked to see
if it can be accessed through SCOPE.
LOCATION is the location of the usage point of TYPE_DECL.