[PATCH] Fix typo in comments

Felix Yang fei.yang0953@gmail.com
Thu Sep 25 14:04:00 GMT 2014


Please apply this patch if OK for trunk. Thanks.

Index: gcc/lra.c
===================================================================
--- gcc/lra.c    (revision 215598)
+++ gcc/lra.c    (working copy)
@@ -933,7 +933,7 @@ lra_set_insn_recog_data (rtx_insn *insn)
       nalt = 1;
       if (nop < 0)
     {
-      /* Its is a special insn like USE or CLOBBER.  We should
+      /* It is a special insn like USE or CLOBBER.  We should
          recognize any regular insn otherwise LRA can do nothing
          with this insn.  */
       gcc_assert (GET_CODE (PATTERN (insn)) == USE
Index: gcc/genautomata.c
===================================================================
--- gcc/genautomata.c    (revision 215598)
+++ gcc/genautomata.c    (working copy)
@@ -6178,7 +6178,7 @@ merge_states (automaton_t automaton, vec<state_t>
             alt_states = new_alt_state;
           }
         }
-      /* Its is important that alt states were sorted before and
+      /* It is important that alt states were sorted before and
          after merging to have the same querying results.  */
       new_state->component_states = uniq_sort_alt_states (alt_states);
     }
Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog    (revision 215598)
+++ gcc/ChangeLog    (working copy)
@@ -1,3 +1,8 @@
+2014-09-25  Felix Yang  <felix.yang@huawei.com>
+
+    * lra.c (lra_set_insn_recog_data): Fix typo in comment.
+    * genautomata.c (merge_states): Ditto.
+
 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
         Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
         Anna Tikhonova  <anna.tikhonova@intel.com>


Cheers,
Felix
-------------- next part --------------
Index: gcc/lra.c
===================================================================
--- gcc/lra.c	(revision 215598)
+++ gcc/lra.c	(working copy)
@@ -933,7 +933,7 @@ lra_set_insn_recog_data (rtx_insn *insn)
       nalt = 1;
       if (nop < 0)
 	{
-	  /* Its is a special insn like USE or CLOBBER.  We should
+	  /* It is a special insn like USE or CLOBBER.  We should
 	     recognize any regular insn otherwise LRA can do nothing
 	     with this insn.  */
 	  gcc_assert (GET_CODE (PATTERN (insn)) == USE
Index: gcc/genautomata.c
===================================================================
--- gcc/genautomata.c	(revision 215598)
+++ gcc/genautomata.c	(working copy)
@@ -6178,7 +6178,7 @@ merge_states (automaton_t automaton, vec<state_t>
 		    alt_states = new_alt_state;
 		  }
 	    }
-	  /* Its is important that alt states were sorted before and
+	  /* It is important that alt states were sorted before and
 	     after merging to have the same querying results.  */
 	  new_state->component_states = uniq_sort_alt_states (alt_states);
 	}
Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog	(revision 215598)
+++ gcc/ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2014-09-25  Felix Yang  <felix.yang@huawei.com>
+
+	* lra.c (lra_set_insn_recog_data): Fix typo in comment.
+	* genautomata.c (merge_states): Ditto.
+
 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
 	    Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
 	    Anna Tikhonova  <anna.tikhonova@intel.com>


More information about the Gcc-patches mailing list