public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] cp/*.c: Fix comment typos.
@ 2007-07-29  2:02 Kazu Hirata
  0 siblings, 0 replies; 6+ messages in thread
From: Kazu Hirata @ 2007-07-29  2:02 UTC (permalink / raw)
  To: gcc-patches

Hi,

Committed as obvious.

Kazu Hirata

2007-07-28  Kazu Hirata  <kazu@codesourcery.com>

	* pt.c, tree.c, typeck2.c: Fix comment typos.

Index: cp/pt.c
===================================================================
--- cp/pt.c	(revision 127029)
+++ cp/pt.c	(working copy)
@@ -2213,7 +2213,7 @@ check_explicit_specialization (tree decl
               tree tmpl_func = DECL_TEMPLATE_RESULT (gen_tmpl);
               gcc_assert (TREE_CODE (tmpl_func) == FUNCTION_DECL);
 
-              /* This specialization has the same linkage and visiblity as
+              /* This specialization has the same linkage and visibility as
                  the function template it specializes.  */
               TREE_PUBLIC (decl) = TREE_PUBLIC (tmpl_func);
               DECL_THIS_STATIC (decl) = DECL_THIS_STATIC (tmpl_func);
@@ -4637,7 +4637,7 @@ convert_template_argument (tree parm,
   requires_type = (TREE_CODE (parm) == TYPE_DECL
 		   || requires_tmpl_type);
 
-  /* When determining whether a argument pack expansion is a template,
+  /* When determining whether an argument pack expansion is a template,
      look at the pattern.  */
   if (TREE_CODE (check_arg) == TYPE_PACK_EXPANSION)
     check_arg = PACK_EXPANSION_PATTERN (check_arg);
Index: cp/tree.c
===================================================================
--- cp/tree.c	(revision 127029)
+++ cp/tree.c	(working copy)
@@ -83,7 +83,7 @@ lvalue_p_1 (tree ref,
 	  && TREE_CODE (ref) != COMPONENT_REF)
 	return clk_none;
 
-      /* lvalue references and named rvalue refences are lvalues */
+      /* lvalue references and named rvalue references are lvalues.  */
       return clk_ordinary;
     }
 
Index: cp/typeck2.c
===================================================================
--- cp/typeck2.c	(revision 127029)
+++ cp/typeck2.c	(working copy)
@@ -764,8 +764,8 @@ picflag_from_initializer (tree init)
 }
 
 /* Subroutine of process_init_constructor, which will process an initializer
-   INIT for a array or vector of type TYPE. Returns the flags (PICFLAG_*) which
-   describe the initializers.  */
+   INIT for an array or vector of type TYPE. Returns the flags (PICFLAG_*)
+   which describe the initializers.  */
 
 static int
 process_init_constructor_array (tree type, tree init)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [patch] cp/*.c: Fix comment typos.
@ 2007-02-18  1:46 Kazu Hirata
  0 siblings, 0 replies; 6+ messages in thread
From: Kazu Hirata @ 2007-02-18  1:46 UTC (permalink / raw)
  To: gcc-patches

Hi,

Committed as obvious.

Kazu Hirata

2007-02-18  Kazu Hirata  <kazu@codesourcery.com>

	* decl.c, tree.c: Fix comment typos.

Index: cp/decl.c
===================================================================
--- cp/decl.c	(revision 122079)
+++ cp/decl.c	(working copy)
@@ -1065,7 +1065,7 @@ warn_extern_redeclared_static (tree newd
 
 /* NEW_DECL is a redeclaration of OLD_DECL; both are functions or
    function templates.  If their exception specifications do not
-   match, issue an a diagnostic.  */
+   match, issue a diagnostic.  */
 
 static void
 check_redeclaration_exception_specification (tree new_decl,
@@ -4729,7 +4729,7 @@ check_initializer (tree decl, tree init,
 	  error ("elements of array %q#D have incomplete type", decl);
 	  return NULL_TREE;
 	}
-      /* It is not valid to initialize an a VLA.  */
+      /* It is not valid to initialize a VLA.  */
       if (init
 	  && ((COMPLETE_TYPE_P (type) && !TREE_CONSTANT (TYPE_SIZE (type)))
 	      || !TREE_CONSTANT (TYPE_SIZE (element_type))))
Index: cp/tree.c
===================================================================
--- cp/tree.c	(revision 122079)
+++ cp/tree.c	(working copy)
@@ -1033,7 +1033,7 @@ build_qualified_name (tree type, tree sc
    function.  If "f" is a function or function template, "f", "c->f",
    "c.f", "C::f", and "f<int>" will all be considered possibly
    overloaded functions.  Returns 2 if the function is actually
-   overloaded, i.e., if it is impossible to know the the type of the
+   overloaded, i.e., if it is impossible to know the type of the
    function without performing overload resolution.  */
  
 int

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [patch] cp/*.c: Fix comment typos.
@ 2006-05-28 19:06 Kazu Hirata
  0 siblings, 0 replies; 6+ messages in thread
From: Kazu Hirata @ 2006-05-28 19:06 UTC (permalink / raw)
  To: gcc-patches

Hi,

Committed as obvious.

Kazu Hirata

2006-05-28  Kazu Hirata  <kazu@codesourcery.com>

	* decl.c, decl2.c, parser.c: Fix comment typos.  Follow
	spelling conventions.

Index: cp/decl.c
===================================================================
--- cp/decl.c	(revision 114167)
+++ cp/decl.c	(working copy)
@@ -217,7 +217,7 @@ struct named_label_entry GTY(())
 
   /* The following bits are set after the label is defined, and are
      updated as scopes are popped.  They indicate that a backward jump
-     to the label will illegally enter a scope of the given flavour.  */
+     to the label will illegally enter a scope of the given flavor.  */
   bool in_try_scope;
   bool in_catch_scope;
   bool in_omp_scope;
Index: cp/decl2.c
===================================================================
--- cp/decl2.c	(revision 114167)
+++ cp/decl2.c	(working copy)
@@ -2106,7 +2106,7 @@ start_objects (int method_type, int init
 
   /* We cannot allow these functions to be elided, even if they do not
      have external linkage.  And, there's no point in deferring
-     compilation of thes functions; they're all going to have to be
+     compilation of these functions; they're all going to have to be
      out anyhow.  */
   DECL_INLINE (current_function_decl) = 0;
   DECL_UNINLINABLE (current_function_decl) = 1;
Index: cp/parser.c
===================================================================
--- cp/parser.c	(revision 114167)
+++ cp/parser.c	(working copy)
@@ -13107,7 +13107,7 @@ cp_parser_class_head (cp_parser* parser,
 	 define a class that has already been declared with this
 	 syntax.
 
-	 The proposed resolution for Core Issue 180 says that whever
+	 The proposed resolution for Core Issue 180 says that wherever
 	 you see `class T::X' you should treat `X' as a type-name.
 
 	 It is OK to define an inaccessible class; for example:

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [patch] cp/*.c: Fix comment typos.
@ 2006-04-08 14:16 Kazu Hirata
  0 siblings, 0 replies; 6+ messages in thread
From: Kazu Hirata @ 2006-04-08 14:16 UTC (permalink / raw)
  To: gcc-patches

Hi,

Committed as obvious.

Kazu Hirata

2006-04-08  Kazu Hirata  <kazu@codesourcery.com>

	* decl2.c, pt.c, semantics.c: Fix comment typos.

Index: cp/decl2.c
===================================================================
--- cp/decl2.c	(revision 112778)
+++ cp/decl2.c	(working copy)
@@ -787,7 +787,7 @@ finish_static_data_member_decl (tree dec
   cp_finish_decl (decl, init, init_const_expr_p, asmspec_tree, flags);
 }
 
-/* DECLARATOR and DECLSPECS correspond to a class member.  The othe
+/* DECLARATOR and DECLSPECS correspond to a class member.  The other
    parameters are as for cp_finish_decl.  Return the DECL for the
    class member declared.  */ 
 
Index: cp/pt.c
===================================================================
--- cp/pt.c	(revision 112778)
+++ cp/pt.c	(working copy)
@@ -3984,7 +3984,7 @@ convert_template_argument (tree parm,
    warning messages are issued under control of COMPLAIN.
 
    If REQUIRE_ALL_ARGS is false, argument deduction will be performed
-   for arugments not specified in ARGS.  Otherwise, if
+   for arguments not specified in ARGS.  Otherwise, if
    USE_DEFAULT_ARGS is true, default arguments will be used to fill in
    unspecified arguments.  If REQUIRE_ALL_ARGS is true, but
    USE_DEFAULT_ARGS is false, then all arguments must be specified in
Index: cp/semantics.c
===================================================================
--- cp/semantics.c	(revision 112778)
+++ cp/semantics.c	(working copy)
@@ -3512,7 +3512,7 @@ finish_omp_clauses (tree clauses)
       while (TREE_CODE (inner_type) == ARRAY_TYPE)
 	inner_type = TREE_TYPE (inner_type);
 
-      /* Check for special function availablity by building a call to one.
+      /* Check for special function availability by building a call to one.
 	 Save the results, because later we won't be in the right context
 	 for making these queries.  */
       if (CLASS_TYPE_P (inner_type)
@@ -3658,7 +3658,7 @@ finish_omp_structured_block (tree block)
   return do_poplevel (block);
 }
 
-/* Similarly, except force the retension of the BLOCK.  */
+/* Similarly, except force the retention of the BLOCK.  */
 
 tree
 begin_omp_parallel (void)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [patch] cp/*.c: Fix comment typos.
@ 2005-12-16  5:56 Kazu Hirata
  0 siblings, 0 replies; 6+ messages in thread
From: Kazu Hirata @ 2005-12-16  5:56 UTC (permalink / raw)
  To: gcc-patches

Hi,

Committed as obvious.

Kazu Hirata

2005-12-16  Kazu Hirata  <kazu@codesourcery.com>

	* parser.c, pt.c: Fix comment typos.

Index: cp/parser.c
===================================================================
--- cp/parser.c	(revision 108623)
+++ cp/parser.c	(working copy)
@@ -2735,7 +2735,7 @@ cp_parser_translation_unit (cp_parser* p
    ADDRESS_P is true iff this expression was immediately preceded by
    "&" and therefore might denote a pointer-to-member.  CAST_P is true
    iff this expression is the target of a cast.  TEMPLATE_ARG_P is
-   true iff this expression is a tempalte argument.
+   true iff this expression is a template argument.
 
    Returns a representation of the expression.  Upon return, *IDK
    indicates what kind of id-expression (if any) was present.  */
@@ -14521,7 +14521,7 @@ cp_parser_label_declaration (cp_parser* 
    types.
 
    If AMBIGUOUS_DECLS is non-NULL, *AMBIGUOUS_DECLS is set to a
-   TREE_LIST of candiates if name-lookup results in an ambiguity, and
+   TREE_LIST of candidates if name-lookup results in an ambiguity, and
    NULL_TREE otherwise.  */ 
 
 static tree
Index: cp/pt.c
===================================================================
--- cp/pt.c	(revision 108623)
+++ cp/pt.c	(working copy)
@@ -1194,7 +1194,7 @@ register_specialization (tree spec, tree
 
   	           An explicit specialization of a function template
 		   is inline only if it is explicitly declared to be,
-		   and independently of whether its function tempalte
+		   and independently of whether its function template
 		   is.
 
 		to the primary function; now copy the inline bits to

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [patch] cp/*.c: Fix comment typos.
@ 2005-08-01  4:03 Kazu Hirata
  0 siblings, 0 replies; 6+ messages in thread
From: Kazu Hirata @ 2005-08-01  4:03 UTC (permalink / raw)
  To: gcc-patches

Hi,

Committed as obvious.

Kazu Hirata

2005-08-01  Kazu Hirata  <kazu@codesourcery.com>

	* class.c, decl.c, name-lookup.c, pt.c, typeck.c, typeck2.c:
	Fix comment typos.

Index: cp/class.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/class.c,v
retrieving revision 1.729
diff -u -d -p -r1.729 class.c
--- cp/class.c	21 Jul 2005 19:43:47 -0000	1.729
+++ cp/class.c	1 Aug 2005 03:59:08 -0000
@@ -5545,7 +5545,7 @@ pop_lang_context (void)
 
 /* Given an OVERLOAD and a TARGET_TYPE, return the function that
    matches the TARGET_TYPE.  If there is no satisfactory match, return
-   error_mark_node, and issue a error & warning messages under control
+   error_mark_node, and issue an error & warning messages under control
    of FLAGS.  Permit pointers to member function if FLAGS permits.  If
    TEMPLATE_ONLY, the name of the overloaded function was a
    template-id, and EXPLICIT_TARGS are the explicitly provided
Index: cp/decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/decl.c,v
retrieving revision 1.1415
diff -u -d -p -r1.1415 decl.c
--- cp/decl.c	20 Jul 2005 01:19:07 -0000	1.1415
+++ cp/decl.c	1 Aug 2005 03:59:09 -0000
@@ -2830,7 +2830,7 @@ record_unknown_type (tree type, const ch
   TYPE_MODE (type) = TYPE_MODE (void_type_node);
 }
 
-/* An string for which we should create an IDENTIFIER_NODE at
+/* A string for which we should create an IDENTIFIER_NODE at
    startup.  */
 
 typedef struct predefined_identifier
Index: cp/name-lookup.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/name-lookup.c,v
retrieving revision 1.132
diff -u -d -p -r1.132 name-lookup.c
--- cp/name-lookup.c	27 Jul 2005 18:31:36 -0000	1.132
+++ cp/name-lookup.c	1 Aug 2005 03:59:15 -0000
@@ -3966,7 +3966,7 @@ lookup_name (tree name, int prefer_type)
    Unlike lookup_name_real, we make sure that NAME is actually
    declared in the desired scope, not from inheritance, nor using
    directive.  For using declaration, there is DR138 still waiting
-   to be resolved.  Hidden name coming from earlier an friend
+   to be resolved.  Hidden name coming from an earlier friend
    declaration is also returned.
 
    A TYPE_DECL best matching the NAME is returned.  Catching error
Index: cp/pt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/pt.c,v
retrieving revision 1.1018
diff -u -d -p -r1.1018 pt.c
--- cp/pt.c	28 Jul 2005 18:06:06 -0000	1.1018
+++ cp/pt.c	1 Aug 2005 03:59:16 -0000
@@ -642,7 +642,7 @@ end_explicit_instantiation (void)
   processing_explicit_instantiation = false;
 }
 
-/* A explicit specialization or partial specialization TMPL is being
+/* An explicit specialization or partial specialization TMPL is being
    declared.  Check that the namespace in which the specialization is
    occurring is permissible.  Returns false iff it is invalid to
    specialize TMPL in the current namespace.  */
Index: cp/typeck.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/typeck.c,v
retrieving revision 1.645
diff -u -d -p -r1.645 typeck.c
--- cp/typeck.c	24 Jul 2005 21:37:54 -0000	1.645
+++ cp/typeck.c	1 Aug 2005 03:59:16 -0000
@@ -3764,7 +3764,7 @@ build_unary_op (enum tree_code code, tre
 	    if (!noconvert && CP_INTEGRAL_TYPE_P (TREE_TYPE (arg)))
 	      arg = perform_integral_promotions (arg);
 
-	    /* Make sure the result is not a lvalue: a unary plus or minus
+	    /* Make sure the result is not an lvalue: a unary plus or minus
 	       expression is always a rvalue.  */
 	    if (real_lvalue_p (arg))
 	      arg = build1 (NON_LVALUE_EXPR, TREE_TYPE (arg), arg);
Index: cp/typeck2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/typeck2.c,v
retrieving revision 1.191
diff -u -d -p -r1.191 typeck2.c
--- cp/typeck2.c	20 Jul 2005 01:19:26 -0000	1.191
+++ cp/typeck2.c	1 Aug 2005 03:59:16 -0000
@@ -945,7 +945,7 @@ process_init_constructor_record (tree ty
 }
 
 /* Subroutine of process_init_constructor, which will process a single
-   initializer INIT for an union of type TYPE. Returns the flags (PICFLAG_*)
+   initializer INIT for a union of type TYPE. Returns the flags (PICFLAG_*)
    which describe the initializer.  */
 
 static int

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-07-28 23:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-29  2:02 [patch] cp/*.c: Fix comment typos Kazu Hirata
  -- strict thread matches above, loose matches on Subject: below --
2007-02-18  1:46 Kazu Hirata
2006-05-28 19:06 Kazu Hirata
2006-04-08 14:16 Kazu Hirata
2005-12-16  5:56 Kazu Hirata
2005-08-01  4:03 Kazu Hirata

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).