This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Fix comment typos 2/3.
- From: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 24 Jan 2005 23:18:34 +0100 (CET)
- Subject: [patch] Fix comment typos 2/3.
The following patch fixes a bunch of comment typos in gcc/gcc/cp/.
Ok to apply to mainline?
Regards,
Volker
2005-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
* call.c: Fix comment typo(s).
* class.c: Likewise.
* cp-tree.h: Likewise.
* decl2.c: Likewise.
* error.c: Likewise.
* init.c: Likewise.
* mangle.c: Likewise.
* parser.c: Likewise.
===================================================================
--- cp/call.c 1 Jan 2005 01:43:12 -0000 1.526
+++ cp/call.c 24 Jan 2005 12:36:33 -0000
@@ -538,8 +538,7 @@ build_conv (conversion_kind code, tree t
}
/* Build a representation of the identity conversion from EXPR to
- itself. The TYPE should match the the type of EXPR, if EXPR is
- non-NULL. */
+ itself. The TYPE should match the type of EXPR, if EXPR is non-NULL. */
static conversion *
build_identity_conv (tree type, tree expr)
@@ -2450,7 +2449,7 @@ print_z_candidates (struct z_candidate *
/* USER_SEQ is a user-defined conversion sequence, beginning with a
USER_CONV. STD_SEQ is the standard conversion sequence applied to
the result of the conversion function to convert it to the final
- desired type. Merge the the two sequences into a single sequence,
+ desired type. Merge the two sequences into a single sequence,
and return the merged sequence. */
static conversion *
===================================================================
--- cp/class.c 6 Jan 2005 20:23:36 -0000 1.700
+++ cp/class.c 24 Jan 2005 12:35:39 -0000
@@ -3489,7 +3489,7 @@ layout_empty_base (tree binfo, tree eoc,
return atend;
}
-/* Layout the the base given by BINFO in the class indicated by RLI.
+/* Layout the base given by BINFO in the class indicated by RLI.
*BASE_ALIGN is a running maximum of the alignments of
any base class. OFFSETS gives the location of empty base
subobjects. T is the most derived type. Return nonzero if the new
@@ -4019,7 +4019,7 @@ check_bases_and_members (tree t)
/* Nonzero if the implicitly generated copy constructor should take
a non-const reference argument. */
int cant_have_const_ctor;
- /* Nonzero if the the implicitly generated assignment operator
+ /* Nonzero if the implicitly generated assignment operator
should take a non-const reference argument. */
int no_const_asn_ref;
tree access_decls;
@@ -7675,8 +7675,8 @@ build_rtti_vtbl_entries (tree binfo, vtb
*vid->last_init = build_tree_list (NULL_TREE, init);
vid->last_init = &TREE_CHAIN (*vid->last_init);
- /* Add the offset-to-top entry. It comes earlier in the vtable that
- the the typeinfo entry. Convert the offset to look like a
+ /* Add the offset-to-top entry. It comes earlier in the vtable than
+ the typeinfo entry. Convert the offset to look like a
function pointer, so that we can put it in the vtable. */
init = build_nop (vfunc_ptr_type_node, offset);
*vid->last_init = build_tree_list (NULL_TREE, init);
===================================================================
--- cp/cp-tree.h 10 Jan 2005 19:37:05 -0000 1.1088
+++ cp/cp-tree.h 24 Jan 2005 12:35:07 -0000
@@ -1673,7 +1673,7 @@ struct lang_decl GTY(())
/* Nonzero if NODE (a FUNCTION_DECL) is a destructor, but not the
specialized in-charge constructor, in-charge deleting constructor,
- or the the base destructor. */
+ or the base destructor. */
#define DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P(NODE) \
(DECL_DESTRUCTOR_P (NODE) && !DECL_CLONED_FUNCTION_P (NODE))
@@ -2828,7 +2828,7 @@ struct lang_decl GTY(())
/* Nonzero if this VAR_DECL or FUNCTION_DECL has already been
instantiated, i.e. its definition has been generated from the
- pattern given in the the template. */
+ pattern given in the template. */
#define DECL_TEMPLATE_INSTANTIATED(NODE) \
DECL_LANG_FLAG_1 (VAR_OR_FUNCTION_DECL_CHECK (NODE))
===================================================================
--- cp/decl2.c 5 Jan 2005 10:02:11 -0000 1.764
+++ cp/decl2.c 24 Jan 2005 10:20:39 -0000
@@ -2477,7 +2477,7 @@ do_static_initialization (tree decl, tre
if (init)
finish_expr_stmt (init);
- /* If we're using __cxa_atexit, register a a function that calls the
+ /* If we're using __cxa_atexit, register a function that calls the
destructor for the object. */
if (flag_use_cxa_atexit)
finish_expr_stmt (register_dtor_fn (decl));
===================================================================
--- cp/error.c 21 Dec 2004 17:54:23 -0000 1.275
+++ cp/error.c 24 Jan 2005 12:34:53 -0000
@@ -2203,7 +2203,7 @@ print_instantiation_full_context (diagno
else
{
if (current_function_decl == TINST_DECL (p))
- /* Avoid redundancy with the the "In function" line. */;
+ /* Avoid redundancy with the "In function" line. */;
else
pp_verbatim (context->printer,
"%s: In instantiation of %qs:\n",
===================================================================
--- cp/init.c 1 Jan 2005 01:43:12 -0000 1.408
+++ cp/init.c 24 Jan 2005 10:20:18 -0000
@@ -1762,7 +1762,7 @@ build_new_1 (tree exp)
from ELT_TYPE for a multi-dimensional array; ELT_TYPE is never an
ARRAY_TYPE, but TYPE may be an ARRAY_TYPE. */
tree type;
- /* A pointer type pointing to to the FULL_TYPE. */
+ /* A pointer type pointing to the FULL_TYPE. */
tree full_pointer_type;
tree outer_nelts = NULL_TREE;
tree nelts = NULL_TREE;
===================================================================
--- cp/mangle.c 9 Nov 2004 10:12:36 -0000 1.115
+++ cp/mangle.c 24 Jan 2005 12:34:43 -0000
@@ -2230,7 +2230,7 @@ write_template_arg (tree node)
MANGLE_TRACE_TREE ("template-arg", node);
/* A template template parameter's argument list contains TREE_LIST
- nodes of which the value field is the the actual argument. */
+ nodes of which the value field is the actual argument. */
if (code == TREE_LIST)
{
node = TREE_VALUE (node);
===================================================================
--- cp/parser.c 6 Jan 2005 20:21:13 -0000 1.302
+++ cp/parser.c 24 Jan 2005 12:34:17 -0000
@@ -9488,7 +9488,7 @@ cp_parser_simple_type_specifier (cp_pars
typedef-name:
identifier
- Returns a TYPE_DECL for the the type. */
+ Returns a TYPE_DECL for the type. */
static tree
cp_parser_type_name (cp_parser* parser)
@@ -14214,7 +14214,7 @@ cp_parser_lookup_name (cp_parser *parser
lookup_member, we must enter the scope here. */
if (dependent_p)
pushed_scope = push_scope (parser->scope);
- /* If the PARSER->SCOPE is a a template specialization, it
+ /* If the PARSER->SCOPE is a template specialization, it
may be instantiated during name lookup. In that case,
errors may be issued. Even if we rollback the current
tentative parse, those errors are valid. */
===================================================================