This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] gcc/*.[ch]: Fix comment typos.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 13 Dec 2004 11:05:20 -0500 (EST)
- Subject: [patch] gcc/*.[ch]: Fix comment typos.
Hi,
Committed as obvious.
Kazu Hirata
2004-12-13 Kazu Hirata <kazu@cs.umass.edu>
* defaults.h, stmt.c, tree-cfg.c, tree-ssa-dce.c: Fix comment
typos.
Index: defaults.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/defaults.h,v
retrieving revision 1.163
diff -u -d -p -r1.163 defaults.h
--- defaults.h 13 Dec 2004 06:57:11 -0000 1.163
+++ defaults.h 13 Dec 2004 15:58:10 -0000
@@ -339,7 +339,7 @@ do { fputs (integer_asm_op (POINTER_SIZE
#endif
#endif
-/* This decision to use a .jcr section can be overriden by defining
+/* This decision to use a .jcr section can be overridden by defining
USE_JCR_SECTION to 0 in target file. This is necessary if target
can define JCR_SECTION_NAME but does not have crtstuff or
linker support for .jcr section. */
Index: stmt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/stmt.c,v
retrieving revision 1.411
diff -u -d -p -r1.411 stmt.c
--- stmt.c 29 Nov 2004 20:46:10 -0000 1.411
+++ stmt.c 13 Dec 2004 15:58:10 -0000
@@ -3041,11 +3041,12 @@ emit_case_nodes (rtx index, case_node_pt
else if (node->right != 0 && node->left == 0)
{
- /* Here we have a right child but no left so we issue conditional
+ /* Here we have a right child but no left so we issue a conditional
branch to default and process the right child.
- Omit the conditional branch to default if we it avoid only one
- right child; it costs too much space to save so little time. */
+ Omit the conditional branch to default if the right child
+ does not have any children and is single valued; it would
+ cost too much space to save so little time. */
if (node->right->right || node->right->left
|| !tree_int_cst_equal (node->right->low, node->right->high))
Index: tree-cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-cfg.c,v
retrieving revision 2.134
diff -u -d -p -r2.134 tree-cfg.c
--- tree-cfg.c 10 Dec 2004 19:32:08 -0000 2.134
+++ tree-cfg.c 13 Dec 2004 15:58:11 -0000
@@ -450,7 +450,7 @@ make_edges (void)
statements in it. */
make_edge (ENTRY_BLOCK_PTR, BASIC_BLOCK (0), EDGE_FALLTHRU);
- /* Traverse basic block array placing edges. */
+ /* Traverse the basic block array placing edges. */
FOR_EACH_BB (bb)
{
tree first = first_stmt (bb);
@@ -3087,8 +3087,8 @@ bsi_insert_on_edge (edge e, tree stmt)
append_to_statement_list (stmt, &PENDING_STMT (e));
}
-/* Similar to bsi_insert_on_edge+bsi_commit_edge_inserts. If new block has to
- be created, it is returned. */
+/* Similar to bsi_insert_on_edge+bsi_commit_edge_inserts. If a new
+ block has to be created, it is returned. */
basic_block
bsi_insert_on_edge_immediate (edge e, tree stmt)
@@ -3941,7 +3941,7 @@ has_abnormal_incoming_edge_p (basic_bloc
return false;
}
-/* Removes forwarder block BB. Returns false if this failed. If new
+/* Removes forwarder block BB. Returns false if this failed. If a new
forwarder block is created due to redirection of edges, it is
stored to worklist. */
Index: tree-ssa-dce.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-dce.c,v
retrieving revision 2.28
diff -u -d -p -r2.28 tree-ssa-dce.c
--- tree-ssa-dce.c 22 Nov 2004 12:23:58 -0000 2.28
+++ tree-ssa-dce.c 13 Dec 2004 15:58:11 -0000
@@ -264,7 +264,7 @@ mark_operand_necessary (tree op, bool ph
}
-/* Mark STMT as necessary if it is obviously is. Add it to the worklist if
+/* Mark STMT as necessary if it obviously is. Add it to the worklist if
it can make other statements necessary.
If AGGRESSIVE is false, control statements are conservatively marked as