aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>2005-02-24 21:55:15 +0000
committerVolker Reichelt <reichelt@gcc.gnu.org>2005-02-24 21:55:15 +0000
commit78dcd41a317d983e376790610471bdcb4967fc93 (patch)
treeeb97d91b98de2dfcb8bb5c867dfa39c69b60df87 /gcc
parent3f1176568bb51d0d953470763a715ec12dcbfea6 (diff)
downloadgcc-78dcd41a317d983e376790610471bdcb4967fc93.zip
gcc-78dcd41a317d983e376790610471bdcb4967fc93.tar.gz
gcc-78dcd41a317d983e376790610471bdcb4967fc93.tar.bz2
call.c, [...]: Fix comment typo(s).
* call.c, class.c, cp-tree.h, decl2.c, error.c, init.c, mangle.c, parser.c: Fix comment typo(s). From-SVN: r95517
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/call.c5
-rw-r--r--gcc/cp/class.c8
-rw-r--r--gcc/cp/cp-tree.h6
-rw-r--r--gcc/cp/decl2.c2
-rw-r--r--gcc/cp/error.c2
-rw-r--r--gcc/cp/init.c2
-rw-r--r--gcc/cp/mangle.c2
-rw-r--r--gcc/cp/parser.c4
9 files changed, 20 insertions, 16 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index bc9e1ea..d11e321 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ * call.c, class.c, cp-tree.h, decl2.c, error.c, init.c, mangle.c,
+ parser.c: Fix comment typo(s).
+
2005-02-24 Jakub Jelinek <jakub@redhat.com>
PR c++/20175
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 4655430..5737e4f 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -538,8 +538,7 @@ build_conv (conversion_kind code, tree type, conversion *from)
}
/* 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 *candidates)
/* 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 *
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 77e9b80..f6ba914 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -3505,7 +3505,7 @@ layout_empty_base (tree binfo, tree eoc, splay_tree offsets)
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
@@ -4035,7 +4035,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;
@@ -7680,8 +7680,8 @@ build_rtti_vtbl_entries (tree binfo, vtbl_init_data* vid)
*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);
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index d99ae7f..caac8b2 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -1683,7 +1683,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))
@@ -2836,7 +2836,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))
@@ -4371,7 +4371,7 @@ extern tree mangle_ref_init_variable (tree);
/* in dump.c */
extern bool cp_dump_tree (void *, tree);
-/* in cp-simplify.c */
+/* in cp-gimplify.c */
extern int cp_gimplify_expr (tree *, tree *, tree *);
extern void cp_genericize (tree);
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 7ed490e..474e04e 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -2437,7 +2437,7 @@ do_static_initialization (tree decl, tree init)
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));
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index fc26560..c53e032 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -2201,7 +2201,7 @@ print_instantiation_full_context (diagnostic_context *context)
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",
diff --git a/gcc/cp/init.c b/gcc/cp/init.c
index 1a81961..0878686 100644
--- a/gcc/cp/init.c
+++ b/gcc/cp/init.c
@@ -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;
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c
index eb9f8f0..1d49490 100644
--- a/gcc/cp/mangle.c
+++ b/gcc/cp/mangle.c
@@ -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);
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 765991f..3db7f2e 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -9580,7 +9580,7 @@ cp_parser_simple_type_specifier (cp_parser* parser,
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)
@@ -14333,7 +14333,7 @@ cp_parser_lookup_name (cp_parser *parser, tree name,
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. */