Commit 78dcd41a by Volker Reichelt Committed by Volker Reichelt

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
parent 3f117656
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> 2005-02-24 Jakub Jelinek <jakub@redhat.com>
PR c++/20175 PR c++/20175
......
...@@ -538,8 +538,7 @@ build_conv (conversion_kind code, tree type, conversion *from) ...@@ -538,8 +538,7 @@ build_conv (conversion_kind code, tree type, conversion *from)
} }
/* Build a representation of the identity conversion from EXPR to /* Build a representation of the identity conversion from EXPR to
itself. The TYPE should match the the type of EXPR, if EXPR is itself. The TYPE should match the type of EXPR, if EXPR is non-NULL. */
non-NULL. */
static conversion * static conversion *
build_identity_conv (tree type, tree expr) build_identity_conv (tree type, tree expr)
...@@ -2450,7 +2449,7 @@ print_z_candidates (struct z_candidate *candidates) ...@@ -2450,7 +2449,7 @@ print_z_candidates (struct z_candidate *candidates)
/* USER_SEQ is a user-defined conversion sequence, beginning with a /* USER_SEQ is a user-defined conversion sequence, beginning with a
USER_CONV. STD_SEQ is the standard conversion sequence applied to USER_CONV. STD_SEQ is the standard conversion sequence applied to
the result of the conversion function to convert it to the final 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. */ and return the merged sequence. */
static conversion * static conversion *
......
...@@ -3505,7 +3505,7 @@ layout_empty_base (tree binfo, tree eoc, splay_tree offsets) ...@@ -3505,7 +3505,7 @@ layout_empty_base (tree binfo, tree eoc, splay_tree offsets)
return atend; 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 *BASE_ALIGN is a running maximum of the alignments of
any base class. OFFSETS gives the location of empty base any base class. OFFSETS gives the location of empty base
subobjects. T is the most derived type. Return nonzero if the new subobjects. T is the most derived type. Return nonzero if the new
...@@ -4035,7 +4035,7 @@ check_bases_and_members (tree t) ...@@ -4035,7 +4035,7 @@ check_bases_and_members (tree t)
/* Nonzero if the implicitly generated copy constructor should take /* Nonzero if the implicitly generated copy constructor should take
a non-const reference argument. */ a non-const reference argument. */
int cant_have_const_ctor; 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. */ should take a non-const reference argument. */
int no_const_asn_ref; int no_const_asn_ref;
tree access_decls; tree access_decls;
...@@ -7680,8 +7680,8 @@ build_rtti_vtbl_entries (tree binfo, vtbl_init_data* vid) ...@@ -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 = build_tree_list (NULL_TREE, init);
vid->last_init = &TREE_CHAIN (*vid->last_init); vid->last_init = &TREE_CHAIN (*vid->last_init);
/* Add the offset-to-top entry. It comes earlier in the vtable that /* Add the offset-to-top entry. It comes earlier in the vtable than
the the typeinfo entry. Convert the offset to look like a the typeinfo entry. Convert the offset to look like a
function pointer, so that we can put it in the vtable. */ function pointer, so that we can put it in the vtable. */
init = build_nop (vfunc_ptr_type_node, offset); init = build_nop (vfunc_ptr_type_node, offset);
*vid->last_init = build_tree_list (NULL_TREE, init); *vid->last_init = build_tree_list (NULL_TREE, init);
......
...@@ -1683,7 +1683,7 @@ struct lang_decl GTY(()) ...@@ -1683,7 +1683,7 @@ struct lang_decl GTY(())
/* Nonzero if NODE (a FUNCTION_DECL) is a destructor, but not the /* Nonzero if NODE (a FUNCTION_DECL) is a destructor, but not the
specialized in-charge constructor, in-charge deleting constructor, 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) \ #define DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P(NODE) \
(DECL_DESTRUCTOR_P (NODE) && !DECL_CLONED_FUNCTION_P (NODE)) (DECL_DESTRUCTOR_P (NODE) && !DECL_CLONED_FUNCTION_P (NODE))
...@@ -2836,7 +2836,7 @@ struct lang_decl GTY(()) ...@@ -2836,7 +2836,7 @@ struct lang_decl GTY(())
/* Nonzero if this VAR_DECL or FUNCTION_DECL has already been /* Nonzero if this VAR_DECL or FUNCTION_DECL has already been
instantiated, i.e. its definition has been generated from the 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) \ #define DECL_TEMPLATE_INSTANTIATED(NODE) \
DECL_LANG_FLAG_1 (VAR_OR_FUNCTION_DECL_CHECK (NODE)) DECL_LANG_FLAG_1 (VAR_OR_FUNCTION_DECL_CHECK (NODE))
...@@ -4371,7 +4371,7 @@ extern tree mangle_ref_init_variable (tree); ...@@ -4371,7 +4371,7 @@ extern tree mangle_ref_init_variable (tree);
/* in dump.c */ /* in dump.c */
extern bool cp_dump_tree (void *, tree); extern bool cp_dump_tree (void *, tree);
/* in cp-simplify.c */ /* in cp-gimplify.c */
extern int cp_gimplify_expr (tree *, tree *, tree *); extern int cp_gimplify_expr (tree *, tree *, tree *);
extern void cp_genericize (tree); extern void cp_genericize (tree);
......
...@@ -2437,7 +2437,7 @@ do_static_initialization (tree decl, tree init) ...@@ -2437,7 +2437,7 @@ do_static_initialization (tree decl, tree init)
if (init) if (init)
finish_expr_stmt (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. */ destructor for the object. */
if (flag_use_cxa_atexit) if (flag_use_cxa_atexit)
finish_expr_stmt (register_dtor_fn (decl)); finish_expr_stmt (register_dtor_fn (decl));
......
...@@ -2201,7 +2201,7 @@ print_instantiation_full_context (diagnostic_context *context) ...@@ -2201,7 +2201,7 @@ print_instantiation_full_context (diagnostic_context *context)
else else
{ {
if (current_function_decl == TINST_DECL (p)) if (current_function_decl == TINST_DECL (p))
/* Avoid redundancy with the the "In function" line. */; /* Avoid redundancy with the "In function" line. */;
else else
pp_verbatim (context->printer, pp_verbatim (context->printer,
"%s: In instantiation of %qs:\n", "%s: In instantiation of %qs:\n",
......
...@@ -1762,7 +1762,7 @@ build_new_1 (tree exp) ...@@ -1762,7 +1762,7 @@ build_new_1 (tree exp)
from ELT_TYPE for a multi-dimensional array; ELT_TYPE is never an from ELT_TYPE for a multi-dimensional array; ELT_TYPE is never an
ARRAY_TYPE, but TYPE may be an ARRAY_TYPE. */ ARRAY_TYPE, but TYPE may be an ARRAY_TYPE. */
tree 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 full_pointer_type;
tree outer_nelts = NULL_TREE; tree outer_nelts = NULL_TREE;
tree nelts = NULL_TREE; tree nelts = NULL_TREE;
......
...@@ -2230,7 +2230,7 @@ write_template_arg (tree node) ...@@ -2230,7 +2230,7 @@ write_template_arg (tree node)
MANGLE_TRACE_TREE ("template-arg", node); MANGLE_TRACE_TREE ("template-arg", node);
/* A template template parameter's argument list contains TREE_LIST /* 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) if (code == TREE_LIST)
{ {
node = TREE_VALUE (node); node = TREE_VALUE (node);
......
...@@ -9580,7 +9580,7 @@ cp_parser_simple_type_specifier (cp_parser* parser, ...@@ -9580,7 +9580,7 @@ cp_parser_simple_type_specifier (cp_parser* parser,
typedef-name: typedef-name:
identifier identifier
Returns a TYPE_DECL for the the type. */ Returns a TYPE_DECL for the type. */
static tree static tree
cp_parser_type_name (cp_parser* parser) cp_parser_type_name (cp_parser* parser)
...@@ -14333,7 +14333,7 @@ cp_parser_lookup_name (cp_parser *parser, tree name, ...@@ -14333,7 +14333,7 @@ cp_parser_lookup_name (cp_parser *parser, tree name,
lookup_member, we must enter the scope here. */ lookup_member, we must enter the scope here. */
if (dependent_p) if (dependent_p)
pushed_scope = push_scope (parser->scope); 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, may be instantiated during name lookup. In that case,
errors may be issued. Even if we rollback the current errors may be issued. Even if we rollback the current
tentative parse, those errors are valid. */ tentative parse, those errors are valid. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment