Spelling patch for code

Joseph S. Myers jsm28@cam.ac.uk
Tue Nov 13 15:03:00 GMT 2001


I've applied as obvious the following spelling patch for spelling errors
in actual code, after testing by bootstrap with no regressions on
i686-pc-linux-gnu.

Index: gcc/ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 1.12007
diff -u -r1.12007 ChangeLog
--- ChangeLog	2001/11/22 16:51:45	1.12007
+++ ChangeLog	2001/11/23 01:34:36
@@ -1,3 +1,7 @@
+2001-11-23  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+	* predict.c, reg-stack.c: Fix spelling errors.
+
 2001-10-09  Andrew Haley  <aph@redhat.com>
 
 	* calls.c (check_sibcall_argument_overlap): Use slot_offset for
Index: gcc/predict.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/predict.c,v
retrieving revision 1.46
diff -u -r1.46 predict.c
--- predict.c	2001/11/19 17:08:48	1.46
+++ predict.c	2001/11/23 01:34:36
@@ -611,7 +611,7 @@
   int tovisit:1;
 
   /* Number of predecessors we need to visit first.  */
-  int npredecesors;
+  int npredecessors;
 } *block_info;
 
 /* Similar information for edges.  */
@@ -659,7 +659,7 @@
 	      fprintf (rtl_dump_file,
 		       "Irreducible region hit, ignoring edge to %i->%i\n",
 		       e->src->index, bb->index);
-	  BLOCK_INFO (bb)->npredecesors = count;
+	  BLOCK_INFO (bb)->npredecessors = count;
 	}
     }
 
@@ -706,10 +706,10 @@
       /* Propagate to successor blocks.  */
       for (e = bb->succ; e; e = e->succ_next)
 	if (!(e->flags & EDGE_DFS_BACK)
-	    && BLOCK_INFO (e->dest)->npredecesors)
+	    && BLOCK_INFO (e->dest)->npredecessors)
 	  {
-	    BLOCK_INFO (e->dest)->npredecesors--;
-	    if (!BLOCK_INFO (e->dest)->npredecesors)
+	    BLOCK_INFO (e->dest)->npredecessors--;
+	    if (!BLOCK_INFO (e->dest)->npredecessors)
 	      {
 		if (!nextbb)
 		  nextbb = e->dest;
Index: gcc/reg-stack.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/reg-stack.c,v
retrieving revision 1.97
diff -u -r1.97 reg-stack.c
--- reg-stack.c	2001/11/11 11:25:27	1.97
+++ reg-stack.c	2001/11/23 01:34:37
@@ -197,7 +197,7 @@
   struct stack_def stack_out;	/* Output stack configuration.  */
   HARD_REG_SET out_reg_set;	/* Stack regs live on output.  */
   int done;			/* True if block already converted.  */
-  int predecesors;		/* Number of predecessors that needs
+  int predecessors;		/* Number of predecessors that needs
 				   to be visited.  */
 } *block_info;
 
@@ -458,7 +458,7 @@
       for (e = bb->pred; e; e=e->pred_next)
 	if (!(e->flags & EDGE_DFS_BACK)
 	    && e->src != ENTRY_BLOCK_PTR)
-	  BLOCK_INFO (bb)->predecesors++;
+	  BLOCK_INFO (bb)->predecessors++;
     }
 
   /* Create the replacement registers up front.  */
@@ -2797,8 +2797,8 @@
       for (e = block->succ; e ; e = e->succ_next)
 	if (! (e->flags & EDGE_DFS_BACK))
 	  {
-	    BLOCK_INFO (e->dest)->predecesors--;
-	    if (!BLOCK_INFO (e->dest)->predecesors)
+	    BLOCK_INFO (e->dest)->predecessors--;
+	    if (!BLOCK_INFO (e->dest)->predecessors)
 	       *sp++ = e->dest;
 	  }
     }
Index: libstdc++-v3/ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/ChangeLog,v
retrieving revision 1.853
diff -u -r1.853 ChangeLog
--- ChangeLog	2001/11/22 19:19:22	1.853
+++ ChangeLog	2001/11/23 01:34:38
@@ -1,3 +1,8 @@
+2001-11-23  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+	* config/locale/moneypunct_members_gnu.cc,
+	include/bits/locale_facets.h: Fix spelling errors.
+
 2001-11-22  Stephen M. Webb  <stephen@bregmasoft.com>
 
         * testsuite/23_containers/list_capacity.cc: New file.
Index: libstdc++-v3/config/locale/moneypunct_members_gnu.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/config/locale/moneypunct_members_gnu.cc,v
retrieving revision 1.3
diff -u -r1.3 moneypunct_members_gnu.cc
--- moneypunct_members_gnu.cc	2001/09/14 22:09:35	1.3
+++ moneypunct_members_gnu.cc	2001/11/23 01:34:38
@@ -40,14 +40,14 @@
   // Construct and return valid pattern consisting of some combination of:
   // space none symbol sign value
   money_base::pattern
-  money_base::_S_construct_pattern(char __preceeds, char __space, char __posn)
+  money_base::_S_construct_pattern(char __precedes, char __space, char __posn)
   { 
     pattern __ret;
 
     // This insanely complicated routine attempts to construct a valid
     // pattern for use with monyepunct. A couple of invariants:
 
-    // if (__preceeds) symbol -> value
+    // if (__precedes) symbol -> value
     // else value -> symbol
     
     // if (__space) space
@@ -65,7 +65,7 @@
 	if (__space)
 	  {
 	    // Pattern starts with sign.
-	    if (__preceeds)
+	    if (__precedes)
 	      {
 		__ret.field[1] = symbol;
 		__ret.field[2] = space;
@@ -82,7 +82,7 @@
 	else
 	  {
 	    // Pattern starts with sign and ends with none.
-	    if (__preceeds)
+	    if (__precedes)
 	      {
 		__ret.field[1] = symbol;
 		__ret.field[2] = value;
@@ -101,7 +101,7 @@
 	if (__space)
 	  {
 	    // Pattern either ends with sign.
-	    if (__preceeds)
+	    if (__precedes)
 	      {
 		__ret.field[0] = symbol;
 		__ret.field[1] = space;
@@ -118,7 +118,7 @@
 	else
 	  {
 	    // Pattern ends with sign then none.
-	    if (__preceeds)
+	    if (__precedes)
 	      {
 		__ret.field[0] = symbol;
 		__ret.field[1] = value;
@@ -137,7 +137,7 @@
 	if (__space)
 	  {
 	    // Have space.
-	    if (__preceeds)
+	    if (__precedes)
 	      {
 		__ret.field[0] = sign;
 		__ret.field[1] = symbol;
@@ -155,7 +155,7 @@
 	else
 	  {
 	    // Have none.
-	    if (__preceeds)
+	    if (__precedes)
 	      {
 		__ret.field[0] = sign;
 		__ret.field[1] = symbol;
@@ -175,7 +175,7 @@
 	if (__space)
 	  {
 	    // Have space.
-	    if (__preceeds)
+	    if (__precedes)
 	      {
 		__ret.field[0] = symbol;
 		__ret.field[1] = sign;
@@ -193,7 +193,7 @@
 	else
 	  {
 	    // Have none.
-	    if (__preceeds)
+	    if (__precedes)
 	      {
 		__ret.field[0] = symbol;
 		__ret.field[1] = sign;
@@ -243,16 +243,16 @@
 	  // _Intl == true
 	  _M_curr_symbol = __nl_langinfo_l(__INT_CURR_SYMBOL, __cloc);
 	  _M_frac_digits = *(__nl_langinfo_l(__INT_FRAC_DIGITS, __cloc));
-	  char __ppreceeds = *(__nl_langinfo_l(__INT_P_CS_PRECEDES, __cloc));
+	  char __pprecedes = *(__nl_langinfo_l(__INT_P_CS_PRECEDES, __cloc));
 	  char __pspace = *(__nl_langinfo_l(__INT_P_SEP_BY_SPACE, __cloc));
 	  char __pposn = *(__nl_langinfo_l(__INT_P_SIGN_POSN, __cloc));
-	  _M_pos_format = _S_construct_pattern(__ppreceeds, __pspace, __pposn);
-	  char __npreceeds = *(__nl_langinfo_l(__INT_N_CS_PRECEDES, __cloc));
+	  _M_pos_format = _S_construct_pattern(__pprecedes, __pspace, __pposn);
+	  char __nprecedes = *(__nl_langinfo_l(__INT_N_CS_PRECEDES, __cloc));
 	  char __nspace = *(__nl_langinfo_l(__INT_N_SEP_BY_SPACE, __cloc));
 	  char __nposn = *(__nl_langinfo_l(__INT_N_SIGN_POSN, __cloc));
 	  if (!__nposn)
 	    _M_negative_sign = "()";
-	  _M_neg_format = _S_construct_pattern(__npreceeds, __nspace, __nposn);
+	  _M_neg_format = _S_construct_pattern(__nprecedes, __nspace, __nposn);
 	}
     }
 
@@ -285,16 +285,16 @@
 	  // _Intl == false
 	  _M_curr_symbol = __nl_langinfo_l(__CURRENCY_SYMBOL, __cloc);
 	  _M_frac_digits = *(__nl_langinfo_l(__FRAC_DIGITS, __cloc));
-	  char __ppreceeds = *(__nl_langinfo_l(__P_CS_PRECEDES, __cloc));
+	  char __pprecedes = *(__nl_langinfo_l(__P_CS_PRECEDES, __cloc));
 	  char __pspace = *(__nl_langinfo_l(__P_SEP_BY_SPACE, __cloc));
 	  char __pposn = *(__nl_langinfo_l(__P_SIGN_POSN, __cloc));
-	  _M_pos_format = _S_construct_pattern(__ppreceeds, __pspace, __pposn);
-	  char __npreceeds = *(__nl_langinfo_l(__N_CS_PRECEDES, __cloc));
+	  _M_pos_format = _S_construct_pattern(__pprecedes, __pspace, __pposn);
+	  char __nprecedes = *(__nl_langinfo_l(__N_CS_PRECEDES, __cloc));
 	  char __nspace = *(__nl_langinfo_l(__N_SEP_BY_SPACE, __cloc));
 	  char __nposn = *(__nl_langinfo_l(__N_SIGN_POSN, __cloc));
 	  if (!__nposn)
 	    _M_negative_sign = "()";
-	  _M_neg_format = _S_construct_pattern(__npreceeds, __nspace, __nposn);
+	  _M_neg_format = _S_construct_pattern(__nprecedes, __nspace, __nposn);
 	}
     }
 
@@ -365,16 +365,16 @@
 	    _M_curr_symbol = string_type();
 
 	  _M_frac_digits = *(__nl_langinfo_l(__INT_FRAC_DIGITS, __cloc));
-	  char __ppreceeds = *(__nl_langinfo_l(__INT_P_CS_PRECEDES, __cloc));
+	  char __pprecedes = *(__nl_langinfo_l(__INT_P_CS_PRECEDES, __cloc));
 	  char __pspace = *(__nl_langinfo_l(__INT_P_SEP_BY_SPACE, __cloc));
 	  char __pposn = *(__nl_langinfo_l(__INT_P_SIGN_POSN, __cloc));
-	  _M_pos_format = _S_construct_pattern(__ppreceeds, __pspace, __pposn);
-	  char __npreceeds = *(__nl_langinfo_l(__INT_N_CS_PRECEDES, __cloc));
+	  _M_pos_format = _S_construct_pattern(__pprecedes, __pspace, __pposn);
+	  char __nprecedes = *(__nl_langinfo_l(__INT_N_CS_PRECEDES, __cloc));
 	  char __nspace = *(__nl_langinfo_l(__INT_N_SEP_BY_SPACE, __cloc));
 	  char __nposn = *(__nl_langinfo_l(__INT_N_SIGN_POSN, __cloc));
 	  if (!__nposn)
 	    _M_negative_sign = L"()";
-	  _M_neg_format = _S_construct_pattern(__npreceeds, __nspace, __nposn);
+	  _M_neg_format = _S_construct_pattern(__nprecedes, __nspace, __nposn);
 	}
     }
 
@@ -444,16 +444,16 @@
 	    _M_curr_symbol = string_type();
 
 	  _M_frac_digits = *(__nl_langinfo_l(__FRAC_DIGITS, __cloc));
-	  char __ppreceeds = *(__nl_langinfo_l(__P_CS_PRECEDES, __cloc));
+	  char __pprecedes = *(__nl_langinfo_l(__P_CS_PRECEDES, __cloc));
 	  char __pspace = *(__nl_langinfo_l(__P_SEP_BY_SPACE, __cloc));
 	  char __pposn = *(__nl_langinfo_l(__P_SIGN_POSN, __cloc));
-	  _M_pos_format = _S_construct_pattern(__ppreceeds, __pspace, __pposn);
-	  char __npreceeds = *(__nl_langinfo_l(__N_CS_PRECEDES, __cloc));
+	  _M_pos_format = _S_construct_pattern(__pprecedes, __pspace, __pposn);
+	  char __nprecedes = *(__nl_langinfo_l(__N_CS_PRECEDES, __cloc));
 	  char __nspace = *(__nl_langinfo_l(__N_SEP_BY_SPACE, __cloc));
 	  char __nposn = *(__nl_langinfo_l(__N_SIGN_POSN, __cloc));
 	  if (!__nposn)
 	    _M_negative_sign = L"()";
-	  _M_neg_format = _S_construct_pattern(__npreceeds, __nspace, __nposn);
+	  _M_neg_format = _S_construct_pattern(__nprecedes, __nspace, __nposn);
 	}
     }
 #endif
Index: libstdc++-v3/include/bits/locale_facets.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/locale_facets.h,v
retrieving revision 1.26
diff -u -r1.26 locale_facets.h
--- locale_facets.h	2001/11/02 17:38:10	1.26
+++ locale_facets.h	2001/11/23 01:34:40
@@ -1476,7 +1476,7 @@
     // Construct and return valid pattern consisting of some combination of:
     // space none symbol sign value
     static pattern 
-    _S_construct_pattern(char __preceeds, char __space, char __posn);
+    _S_construct_pattern(char __precedes, char __space, char __posn);
   };
 
   template<typename _CharT, bool _Intl>

-- 
Joseph S. Myers
jsm28@cam.ac.uk



More information about the Gcc-patches mailing list