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, cp: Fix comment typos.


Hi,

Committed as obvious.

Kazu Hirata

gcc/
2004-03-25  Kazu Hirata  <kazu@cs.umass.edu>

	* cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
	config/arm/arm.c, objc/objc-act.c: Fix comment typos.
	* doc/invoke.texi: Fix a typo.

cp/
2004-03-25  Kazu Hirata  <kazu@cs.umass.edu>

	* cxx-pretty-print.c: Fix comment typos.

Index: cfgrtl.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/cfgrtl.c,v
retrieving revision 1.114
diff -u -p -r1.114 cfgrtl.c
--- cfgrtl.c	22 Mar 2004 02:57:26 -0000	1.114
+++ cfgrtl.c	25 Mar 2004 16:47:51 -0000
@@ -2105,7 +2105,7 @@ rtl_verify_flow_info (void)
 	      break;
 
 	    case CODE_LABEL:
-	      /* An addr_vec is placed outside any block block.  */
+	      /* An addr_vec is placed outside any basic block.  */
 	      if (NEXT_INSN (x)
 		  && GET_CODE (NEXT_INSN (x)) == JUMP_INSN
 		  && (GET_CODE (PATTERN (NEXT_INSN (x))) == ADDR_DIFF_VEC
Index: dbxout.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/dbxout.c,v
retrieving revision 1.181
diff -u -p -r1.181 dbxout.c
--- dbxout.c	20 Mar 2004 04:52:52 -0000	1.181
+++ dbxout.c	25 Mar 2004 16:47:51 -0000
@@ -884,8 +884,8 @@ dbxout_type_fields (tree type)
      field that we can support.  */
   for (tem = TYPE_FIELDS (type); tem; tem = TREE_CHAIN (tem))
     {
-
-      /* If on of the nodes is an error_mark or its type is then return early.  */
+      /* If one of the nodes is an error_mark or its type is then
+	 return early.  */
       if (tem == error_mark_node || TREE_TYPE (tem) == error_mark_node)
 	return;
 
Index: tree.def
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/tree.def,v
retrieving revision 1.72
diff -u -p -r1.72 tree.def
--- tree.def	21 Mar 2004 18:09:18 -0000	1.72
+++ tree.def	25 Mar 2004 16:47:51 -0000
@@ -553,7 +553,7 @@ DEFTREECODE (CLEANUP_POINT_EXPR, "cleanu
    fact that the expression for the array contains the dereference of
    the fat pointer that obtained the array pointer.  */
 
-/* Denotes a record to later be substitued before evaluating this expression.
+/* Denotes a record to later be substituted before evaluating this expression.
    The type of this expression is used to find the record to replace it.  */
 DEFTREECODE (PLACEHOLDER_EXPR, "placeholder_expr", 'x', 0)
 
Index: config/darwin.h
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/config/darwin.h,v
retrieving revision 1.75
diff -u -p -r1.75 darwin.h
--- config/darwin.h	12 Mar 2004 17:08:58 -0000	1.75
+++ config/darwin.h	25 Mar 2004 16:47:52 -0000
@@ -341,7 +341,7 @@ do { text_section ();							\
 #undef USE_COMMON_FOR_ONE_ONLY
 #define USE_COMMON_FOR_ONE_ONLY 0
 
-/* The Darwin linker doesn't like explicit template instantions to be
+/* The Darwin linker doesn't like explicit template instantiations to be
    coalesced, because it doesn't want coalesced symbols to appear in
    a static archive's table of contents. */
 #undef TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY
Index: config/arm/arm.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/config/arm/arm.c,v
retrieving revision 1.340
diff -u -p -r1.340 arm.c
--- config/arm/arm.c	24 Mar 2004 17:20:13 -0000	1.340
+++ config/arm/arm.c	25 Mar 2004 16:47:52 -0000
@@ -2288,7 +2288,7 @@ arm_function_arg (CUMULATIVE_ARGS *pcum,
     /* Compute operand 2 of the call insn.  */
     return GEN_INT (pcum->call_cookie);
 
-  /* Only allow splitting an arg between regs and memory if all preceeding
+  /* Only allow splitting an arg between regs and memory if all preceding
      args were allocated to regs.  For args passed by reference we only count
      the reference pointer.  */
   if (pcum->can_split)
@@ -9874,8 +9874,8 @@ arm_get_frame_offsets (void)
   if (reload_completed)
     return offsets;
 
-  /* Initialy this is the size of the local variables.  It will translated
-     into an offset once we have determined the size of preceeding data.  */
+  /* Initially this is the size of the local variables.  It will translated
+     into an offset once we have determined the size of preceding data.  */
   frame_size = ROUND_UP_WORD (get_frame_size ());
 
   leaf = leaf_function_p ();
@@ -9998,7 +9998,7 @@ arm_get_frame_offsets (void)
 }
 
 
-/* Calculate the realative offsets for the different stack pointers.  Positive
+/* Calculate the relative offsets for the different stack pointers.  Positive
    offsets are in the direction of stack growth.  */
 
 unsigned int
Index: cp/cxx-pretty-print.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/cp/cxx-pretty-print.c,v
retrieving revision 1.17
diff -u -p -r1.17 cxx-pretty-print.c
--- cp/cxx-pretty-print.c	24 Mar 2004 23:45:50 -0000	1.17
+++ cp/cxx-pretty-print.c	25 Mar 2004 16:47:52 -0000
@@ -198,7 +198,7 @@ pp_cxx_unqualified_id (cxx_pretty_printe
 
 /* Pretty-print out the token sequence ":: template" in template codes
    where it is needed to "inline declare" the (following) member as
-   a template.  This situtation arises when SCOPE of T is dependent
+   a template.  This situation arises when SCOPE of T is dependent
    on template parameters.  */
 
 static inline void
@@ -242,7 +242,7 @@ pp_cxx_qualified_id (cxx_pretty_printer 
 
       /* In Standard C++, functions cannot possibly be used as
          nested-name-specifiers.  However, there are situations where
-         is "makes sense" to output the surrouding function name for the
+         is "makes sense" to output the surrounding function name for the
          purpose of emphasizing on the scope kind.  Just printing the
          function name might not be sufficient as it may be overloaded; so,
          we decorate the function with its signature too.
Index: doc/invoke.texi
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/doc/invoke.texi,v
retrieving revision 1.436
diff -u -p -r1.436 invoke.texi
--- doc/invoke.texi	24 Mar 2004 18:27:49 -0000	1.436
+++ doc/invoke.texi	25 Mar 2004 16:47:52 -0000
@@ -6653,7 +6653,7 @@ if the underlying ABI supports it.
 Specifying the larger number can produce faster, more efficient code, but
 can also increase the size of the program.  Different values are potentially
 incompatible.  Code compiled with one value cannot necessarily expect to
-work with code or libraries compiled with annother value, if they exchange
+work with code or libraries compiled with another value, if they exchange
 information using structures or unions.
 
 @item -mabort-on-noreturn
Index: objc/objc-act.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/objc/objc-act.c,v
retrieving revision 1.209
diff -u -p -r1.209 objc-act.c
--- objc/objc-act.c	24 Mar 2004 19:53:04 -0000	1.209
+++ objc/objc-act.c	25 Mar 2004 16:47:52 -0000
@@ -3304,7 +3304,7 @@ build_objc_exception_stuff (void)
   finish_struct (objc_exception_data_template, field_decl_chain, NULL_TREE);
 
   /* int _setjmp(...); */
-  /* If the user includes <setjmp.h>, this shall be superceded by
+  /* If the user includes <setjmp.h>, this shall be superseded by
      'int _setjmp(jmp_buf);' */
   temp_type = build_function_type (integer_type_node, NULL_TREE);
   objc_setjmp_decl
@@ -5536,7 +5536,7 @@ receiver_is_class_object (tree receiver,
       && (exp = TREE_OPERAND (exp, 0))
       && TREE_CODE (exp) == FUNCTION_DECL
       /* For some reason, we sometimes wind up with multiple FUNCTION_DECL
-	 prototypes for objc_get_class().  Thankfuly, they seem to share the
+	 prototypes for objc_get_class().  Thankfully, they seem to share the
 	 same function type.  */
       && TREE_TYPE (exp) == TREE_TYPE (objc_get_class_decl)
       && !strcmp (IDENTIFIER_POINTER (DECL_NAME (exp)), TAG_GETCLASS)
@@ -9015,7 +9015,7 @@ handle_impent (struct imp_entry *impent)
     }
 }
 
-/* The Fix-and-Countinue functionality available in Mac OS X 10.3 and
+/* The Fix-and-Continue functionality available in Mac OS X 10.3 and
    later requires that ObjC translation units participating in F&C be
    specially marked.  The following routine accomplishes this.  */
 


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