This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] gcc/*: Fix comment/doc typos.


Hi,

Committed as obvious.

Kazu Hirata

2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>

	* tree-flow-inline.h, tree-ssa-operands.c,
	tree-ssa-operands.h, tree-ssa-opfinalize.h:
	Likewise. tree-vn.c: Fix comment typos.
	* doc/passes.texi, doc/tree-ssa.texi: Fix typos.

Index: tree-flow-inline.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-flow-inline.h,v
retrieving revision 2.44
diff -u -d -p -r2.44 tree-flow-inline.h
--- tree-flow-inline.h	3 May 2005 12:19:37 -0000	2.44
+++ tree-flow-inline.h	4 May 2005 15:49:40 -0000
@@ -957,7 +957,7 @@ op_iter_next_tree (ssa_op_iter *ptr)
 }
 
 
-/* This functiins clears the iterator PTR, and marks it done.  This is normally
+/* This functions clears the iterator PTR, and marks it done.  This is normally
    used to prevent warnings in the compile about might be uninitailzied
    components.  */
 
@@ -1103,7 +1103,7 @@ op_iter_init_must_and_may_def (ssa_op_it
 }
 
 
-/* If there is a single opernad in STMT matching FLAGS, return it.  Otherwise
+/* If there is a single operand in STMT matching FLAGS, return it.  Otherwise
    return NULL.  PTR is the iterator to use.  */
 static inline tree
 single_ssa_tree_operand (tree stmt, int flags)
@@ -1121,7 +1121,7 @@ single_ssa_tree_operand (tree stmt, int 
 }
 
 
-/* If there is a single opernad in STMT matching FLAGS, return it.  Otherwise
+/* If there is a single operand in STMT matching FLAGS, return it.  Otherwise
    return NULL.  PTR is the iterator to use.  */
 static inline use_operand_p
 single_ssa_use_operand (tree stmt, int flags)
@@ -1140,7 +1140,7 @@ single_ssa_use_operand (tree stmt, int f
 
 
 
-/* If there is a single opernad in STMT matching FLAGS, return it.  Otherwise
+/* If there is a single operand in STMT matching FLAGS, return it.  Otherwise
    return NULL.  PTR is the iterator to use.  */
 static inline def_operand_p
 single_ssa_def_operand (tree stmt, int flags)
@@ -1158,7 +1158,7 @@ single_ssa_def_operand (tree stmt, int f
 }
 
 
-/* If there is a single opernad in STMT matching FLAGS, return it.  Otherwise
+/* If there is a single operand in STMT matching FLAGS, return it.  Otherwise
    return NULL.  PTR is the iterator to use.  */
 static inline bool
 zero_ssa_operands (tree stmt, int flags)
@@ -1170,7 +1170,7 @@ zero_ssa_operands (tree stmt, int flags)
 }
 
 
-/* Return the  number of opernads mathcing FLAGS in STMT.  */
+/* Return the number of operands matching FLAGS in STMT.  */
 static inline int
 num_ssa_operands (tree stmt, int flags)
 {
@@ -1285,7 +1285,7 @@ op_iter_init_phiuse (ssa_op_iter *ptr, t
 
   comp = (is_gimple_reg (phi_def) ? SSA_OP_USE : SSA_OP_VIRTUAL_USES);
     
-  /* if the PHI node deosn't the operand type we care about, we're done.  */
+  /* If the PHI node doesn't the operand type we care about, we're done.  */
   if ((flags & comp) == 0)
     {
       ptr->done = true;
@@ -1299,7 +1299,7 @@ op_iter_init_phiuse (ssa_op_iter *ptr, t
 }
 
 
-/* Start an iterator for a PHI defintion.  */
+/* Start an iterator for a PHI definition.  */
 
 static inline def_operand_p
 op_iter_init_phidef (ssa_op_iter *ptr, tree phi, int flags)
@@ -1314,7 +1314,7 @@ op_iter_init_phidef (ssa_op_iter *ptr, t
 
   comp = (is_gimple_reg (phi_def) ? SSA_OP_DEF : SSA_OP_VIRTUAL_DEFS);
     
-  /* if the PHI node deosn't the operand type we care about, we're done.  */
+  /* If the PHI node doesn't the operand type we care about, we're done.  */
   if ((flags & comp) == 0)
     {
       ptr->done = true;
Index: tree-ssa-operands.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-operands.c,v
retrieving revision 2.80
diff -u -d -p -r2.80 tree-ssa-operands.c
--- tree-ssa-operands.c	3 May 2005 12:19:46 -0000	2.80
+++ tree-ssa-operands.c	4 May 2005 15:49:40 -0000
@@ -104,7 +104,7 @@ Boston, MA 02111-1307, USA.  */
 struct opbuild_list_d GTY (())
 {
   varray_type vars;     /* The VAR_DECLS tree.  */
-  varray_type uid;      /* The sort value for virtaul symbols.  */
+  varray_type uid;      /* The sort value for virtual symbols.  */
   varray_type next;     /* The next index in the sorted list.  */
   int first;            /* First element in list.  */
   unsigned num;		/* Number of elements.  */
@@ -284,7 +284,7 @@ opbuild_append_virtual (struct opbuild_l
     }
   else
     {
-      /* Dont enter duplicates at all.  */
+      /* Don't enter duplicates at all.  */
       if (VARRAY_UINT (list->uid, last) == var_uid)
         return;
       
@@ -359,7 +359,7 @@ opbuild_clear (struct opbuild_list_d *li
 }
 
 
-/* Remove ELEM from LIST where PREV is the rpevious element.  Return the next 
+/* Remove ELEM from LIST where PREV is the previous element.  Return the next 
    element.  */
 
 static inline int 
@@ -1064,7 +1064,7 @@ copy_virtual_operands (tree dest, tree s
 
   build_ssa_operands (dest);
 
-  /* Copy all the virtuial fields.  */
+  /* Copy all the virtual fields.  */
   FOR_EACH_SSA_TREE_OPERAND (t, src, iter, SSA_OP_VUSE)
     append_vuse (t);
   FOR_EACH_SSA_TREE_OPERAND (t, src, iter, SSA_OP_VMAYDEF)
Index: tree-ssa-operands.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-operands.h,v
retrieving revision 2.15
diff -u -d -p -r2.15 tree-ssa-operands.h
--- tree-ssa-operands.h	3 May 2005 12:19:47 -0000	2.15
+++ tree-ssa-operands.h	4 May 2005 15:49:40 -0000
@@ -267,9 +267,9 @@ typedef struct ssa_operand_iterator_d
        !op_iter_done (&(ITER));					\
        op_iter_next_maymustdef (&(KILLVAR), &(DEFVAR), &(ITER)))
 
-/* This macro will execute a loop over all the arguemnts of a PHI which
-   match FLAGS.   A use_operand_p is alwasy returned via USEVAR.  FLAGS
-   can be eiother SSA_OP_USE or SSA_OP_VIRTUAL_USES or SSA_OP_ALL_USES.  */
+/* This macro will execute a loop over all the arguments of a PHI which
+   match FLAGS.   A use_operand_p is always returned via USEVAR.  FLAGS
+   can be either SSA_OP_USE or SSA_OP_VIRTUAL_USES or SSA_OP_ALL_USES.  */
 #define FOR_EACH_PHI_ARG (USEVAR, STMT, ITER, FLAGS)		\
   for ((USEVAR) = op_iter_init_phiuse (&(ITER), STMT, FLAGS);	\
        !op_iter_done (&(ITER));					\
@@ -314,7 +314,7 @@ typedef struct ssa_operand_iterator_d
 										/* This macro returns TRUE if there are no operands matching FLAGS in STMT.  */
 #define ZERO_SSA_OPERANDS(STMT, FLAGS) 	zero_ssa_operands (STMT, FLAGS)
 
-/* THis macro counts the number of operands in STMT matching FLAGS.  */
+/* This macro counts the number of operands in STMT matching FLAGS.  */
 #define NUM_SSA_OPERANDS(STMT, FLAGS)	num_ssa_operands (STMT, FLAGS)
 
 #endif  /* GCC_TREE_SSA_OPERANDS_H  */
Index: tree-ssa-opfinalize.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-opfinalize.h,v
retrieving revision 2.1
diff -u -d -p -r2.1 tree-ssa-opfinalize.h
--- tree-ssa-opfinalize.h	3 May 2005 12:19:47 -0000	2.1
+++ tree-ssa-opfinalize.h	4 May 2005 15:49:40 -0000
@@ -20,7 +20,7 @@ Software Foundation, 59 Temple Place - S
 
 
 /* This file contains common code which is used by each of the 5 operand 
-   types.  Macros are defined to specify the varying componenets.
+   types.  Macros are defined to specify the varying components.
 
    FINALIZE_FUNC - name of finalize function.
    FINALIZE_ALLOC - name of allocation routine.
@@ -29,8 +29,8 @@ Software Foundation, 59 Temple Place - S
    FINALIZE_OPS - Lead element in list.
    FINALIZE_USE_PTR - How to get the use_operand_p, if this is a use operand.
    FINALIZE_INITIALIZE - How to initialize an element.
-   FINALIZE_ELEM - How to retreive an element.
-   FINALIZE_BASE - How to retreive the base variable of an element.
+   FINALIZE_ELEM - How to retrieve an element.
+   FINALIZE_BASE - How to retrieve the base variable of an element.
    FINALIZE_BASE_TYPE - Type of the base variable.
    FINALIZE_OPBUILD - Opbuild array for these nodes.
    FINALIZE_OPBUILD_ELEM - How to get an element from the opbuild list.
Index: tree-vn.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-vn.c,v
retrieving revision 2.9
diff -u -d -p -r2.9 tree-vn.c
--- tree-vn.c	3 May 2005 12:19:52 -0000	2.9
+++ tree-vn.c	4 May 2005 15:49:40 -0000
@@ -175,7 +175,7 @@ set_value_handle (tree e, tree v)
 
 
 /* Insert EXPR into VALUE_TABLE with value VAL, and add expression
-   EXPR to the value set for value VAL.  STMT represent the stmt
+   EXPR to the value set for value VAL.  STMT represents the stmt
    associated with EXPR.  It is used when computing a hash value for EXPR.  */
 
 void
@@ -202,7 +202,7 @@ vn_add (tree expr, tree val, tree stmt)
 
 /* Search in VALUE_TABLE for an existing instance of expression EXPR,
    and return its value, or NULL if none has been set.  STMT
-   represent the stmt associated with EXPR.   It is arused when computing the 
+   represents the stmt associated with EXPR.  It is used when computing the 
    hash value for EXPR.  */
 
 tree
@@ -228,7 +228,7 @@ vn_lookup (tree expr, tree stmt)
 
 /* Like vn_lookup, but creates a new value for expression EXPR, if
    EXPR doesn't already have a value.  Return the existing/created
-   value for EXPR.  STMT represent the stmt associated with EXPR.  It is used
+   value for EXPR.  STMT represents the stmt associated with EXPR.  It is used
    when computing the hash value for EXPR.  */
 
 tree
Index: doc/passes.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/passes.texi,v
retrieving revision 1.52
diff -u -d -p -r1.52 passes.texi
--- doc/passes.texi	2 May 2005 13:32:20 -0000	1.52
+++ doc/passes.texi	4 May 2005 15:49:40 -0000
@@ -409,7 +409,7 @@ the number of elements operated upon in 
 Additional loop transformations such as peeling and versioning may take place
 to align the number of iterations, and to align the memory accesses in the loop.
 The pass is implemented in @file{tree-vectorizer.c} (the main driver and general
-utilities), @file{tree-vect-analyze.c} and @file{tree-vect-tranform.c}.
+utilities), @file{tree-vect-analyze.c} and @file{tree-vect-transform.c}.
 Analysis of data references is in @file{tree-data-ref.c}.
 
 @item Tree level if-conversion for vectorizer
Index: doc/tree-ssa.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/tree-ssa.texi,v
retrieving revision 1.26
diff -u -d -p -r1.26 tree-ssa.texi
--- doc/tree-ssa.texi	3 May 2005 12:19:56 -0000	1.26
+++ doc/tree-ssa.texi	4 May 2005 15:49:40 -0000
@@ -831,7 +831,7 @@ The following access routines are availa
 
 @enumerate
 @item @code{SINGLE_SSA_@{USE,DEF,TREE@}_OPERAND}: These accessors will return 
-NULL unless there is exactly one operand mathcing the specified flags.  If 
+NULL unless there is exactly one operand matching the specified flags.  If 
 there is exactly one operand, the operand is returned as either a @code{tree}, 
 @code{def_operand_p}, or @code{use_operand_p}.
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]