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] java/*.[ch]: Fix comment typos.


Hi,

Attached is a patch to fix comment typos.  Committed as obvious.

Kazu Hirata

2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>

	* check-init.c: Fix comment typos.
	* class.c: Likewise.
	* constants.c: Likewise.
	* decl.c: Likewise.
	* except.c: Likewise.
	* expr.c: Likewise.
	* java-except.h: Likewise.
	* java-tree.h: Likewise.
	* javaop.h: Likewise.
	* jcf-dump.c: Likewise.
	* jcf-io.c: Likewise.
	* jcf-parse.c: Likewise.
	* jcf-write.c: Likewise.
	* lang.c: Likewise.
	* mangle.c: Likewise.
	* typeck.c: Likewise.
	* verify.c: Likewise.

Index: check-init.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/check-init.c,v
retrieving revision 1.47
diff -u -r1.47 check-init.c
--- check-init.c	12 Jan 2003 02:14:55 -0000	1.47
+++ check-init.c	18 Jan 2003 22:06:00 -0000
@@ -407,7 +407,7 @@
   /* The value of num_current_locals at the start of this compound. */
   int num_locals;
 
-  /* The value of the "before" set at the start of the control stucture.
+  /* The value of the "before" set at the start of the control structure.
    Used for SWITCH_EXPR but not set for LABELED_BLOCK_EXPR. */
   words saved;
 
Index: class.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/class.c,v
retrieving revision 1.147
diff -u -r1.147 class.c
--- class.c	14 Jan 2003 18:59:01 -0000	1.147
+++ class.c	18 Jan 2003 22:06:01 -0000
@@ -2044,7 +2044,7 @@
 
    The preferred mechanism is through the .jcr section, which contain
    a list of pointers to classes which get registered during
-   constructor invoction time.  The fallback mechanism is to generate
+   constructor invocation time.  The fallback mechanism is to generate
    a `constructor' function which calls _Jv_RegisterClass for each
    class in this file.  */
 
Index: constants.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/constants.c,v
retrieving revision 1.28
diff -u -r1.28 constants.c
--- constants.c	12 Jan 2003 02:14:55 -0000	1.28
+++ constants.c	18 Jan 2003 22:06:01 -0000
@@ -401,7 +401,7 @@
   return build1 (INDIRECT_REF, ptr_type_node, t);
 }
 
-/* Build an initializer for the constants field of the current constal pool.
+/* Build an initializer for the constants field of the current constant pool.
    Should only be called at top-level, since it may emit declarations. */
 
 tree
Index: decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/decl.c,v
retrieving revision 1.147
diff -u -r1.147 decl.c
--- decl.c	14 Jan 2003 17:01:04 -0000	1.147
+++ decl.c	18 Jan 2003 22:06:02 -0000
@@ -65,7 +65,7 @@
 /* Name of the Serializable class.  */
 tree java_io_serializable_identifier_node;
 
-/* Set to nonzero value in order to emit class initilization code
+/* Set to nonzero value in order to emit class initialization code
    before static field references.  */
 extern int always_initialize_class_p;
 
Index: except.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/except.c,v
retrieving revision 1.35
diff -u -r1.35 except.c
--- except.c	12 Jan 2003 02:14:55 -0000	1.35
+++ except.c	18 Jan 2003 22:06:02 -0000
@@ -315,7 +315,7 @@
 
   /* The "type" (metch_info) in a (Java) exception table is one:
    * a) NULL - meaning match any type in a try-finally.
-   * b) a pointer to a (ccmpiled) class (low-order bit 0).
+   * b) a pointer to a (compiled) class (low-order bit 0).
    * c) a pointer to the Utf8Const name of the class, plus one
    * (which yields a value with low-order bit 1). */
 
Index: expr.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/expr.c,v
retrieving revision 1.159
diff -u -r1.159 expr.c
--- expr.c	12 Jan 2003 02:14:55 -0000	1.159
+++ expr.c	18 Jan 2003 22:06:04 -0000
@@ -92,7 +92,7 @@
 static GTY(()) tree ncode_ident;
 tree dtable_ident = NULL_TREE;
 
-/* Set to nonzero value in order to emit class initilization code
+/* Set to nonzero value in order to emit class initialization code
    before static field references.  */
 int always_initialize_class_p;
 
@@ -125,7 +125,7 @@
 
 static GTY(()) tree quick_stack;
 
-/* A free-list of unused permamnet TREE_LIST nodes. */
+/* A free-list of unused permanent TREE_LIST nodes.  */
 static GTY((deletable (""))) tree tree_list_free_list;
 
 /* The stack pointer of the Java virtual machine.
@@ -795,7 +795,7 @@
 
   /* No check is needed if the element type is final or is itself an array.  
      Also check that element_type matches object_type, since in the bytecode 
-     compilation case element_type may be the actual element type of the arra
+     compilation case element_type may be the actual element type of the array
      rather than its declared type. */
   if (element_type == object_type
       && (TYPE_ARRAY_P (TREE_TYPE (element_type))
@@ -955,7 +955,7 @@
     ARRAY is an array type. May expand some bound checking and NULL
     pointer checking. RHS_TYPE_NODE we are going to store. In the case
     of the CHAR/BYTE/BOOLEAN SHORT, the type popped of the stack is an
-    INT. In those cases, we make the convertion.
+    INT. In those cases, we make the conversion.
 
     if ARRAy is a reference type, the assignment is checked at run-time
     to make sure that the RHS can be assigned to the array element
Index: java-except.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/java-except.h,v
retrieving revision 1.11
diff -u -r1.11 java-except.h
--- java-except.h	9 Jan 2003 23:16:52 -0000	1.11
+++ java-except.h	18 Jan 2003 22:06:04 -0000
@@ -34,7 +34,7 @@
        and the TREE_VALUE is the LABEL_DECL of the handler. */
     tree handlers;
 
-    /* Surrunding handler, if any. */
+    /* Surrounding handler, if any. */
     struct eh_range *outer;
 
     /* The first child range.  It is is nested inside this range
Index: java-tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/java-tree.h,v
retrieving revision 1.168
diff -u -r1.168 java-tree.h
--- java-tree.h	10 Jan 2003 02:22:24 -0000	1.168
+++ java-tree.h	18 Jan 2003 22:06:05 -0000
@@ -810,7 +810,7 @@
   (DECL_LANG_SPECIFIC(DECL)->u.f.ict)
 /* A list of all the static method calls in the method DECL (if optimizing).
    Actually each TREE_VALUE points to a COMPONT_EXPR that wraps the
-   invoation so we can later patch it. */
+   invocation so we can later patch it.  */
 #define DECL_FUNCTION_STATIC_METHOD_INVOCATION_COMPOUND(DECL) \
   (DECL_LANG_SPECIFIC(DECL)->u.f.smic)
 /* The Number of Artificial Parameters (NAP) DECL contains. this$<n>
@@ -838,7 +838,7 @@
 #define FIELD_LOCAL_ALIAS_USED(DECL) DECL_LANG_FLAG_7 (DECL)
 
 /* True when DECL is a this$<n> field. Note that
-   FIELD_LOCAL_ALIAS_USED can be differenciated when tested against
+   FIELD_LOCAL_ALIAS_USED can be differentiated when tested against
    FIELD_LOCAL_ALIAS.  */
 #define FIELD_THISN(DECL) DECL_LANG_FLAG_7 (DECL)
 
@@ -1517,7 +1517,7 @@
 #define MODIFY_EXPR_FROM_INITIALIZATION_P(EXPR) TREE_LANG_FLAG_2 (EXPR)
 
 /* True if EXPR (a TREE_TYPE denoting a class type) has its methods
-   already checked (for redifitions, etc, see java_check_regular_methods.) */
+   already checked (for redefinitions, etc, see java_check_regular_methods.) */
 #define CLASS_METHOD_CHECKED_P(EXPR) TREE_LANG_FLAG_2 (EXPR)
 
 /* True if TYPE (a TREE_TYPE denoting a class type) was found to
Index: javaop.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/javaop.h,v
retrieving revision 1.12
diff -u -r1.12 javaop.h
--- javaop.h	9 Jan 2003 23:13:02 -0000	1.12
+++ javaop.h	18 Jan 2003 22:06:05 -0000
@@ -39,7 +39,7 @@
 #endif
 typedef unsigned int32	uint32;
 
-/* A signed 64-bit (or more) integral type, suiteable for Java's 'long'. */
+/* A signed 64-bit (or more) integral type, suitable for Java's 'long'.  */
 #ifndef int64
 #define int64 long long
 #endif
Index: jcf-dump.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-dump.c,v
retrieving revision 1.54
diff -u -r1.54 jcf-dump.c
--- jcf-dump.c	12 Jan 2003 02:14:55 -0000	1.54
+++ jcf-dump.c	18 Jan 2003 22:06:05 -0000
@@ -1079,7 +1079,7 @@
 /* This is the actual code emitted for each of opcodes in javaops.def.
    The actual opcode-specific stuff is handled by the OPKIND macro.
    I.e. for an opcode whose OPKIND is BINOP, the BINOP will be called.
-   Those macros are defiend below.  The OPKINDs that do not have any
+   Those macros are defined below.  The OPKINDs that do not have any
    inline parameters (such as BINOP) and therefore do mot need anything
    else to me printed out just use an empty body. */
 
Index: jcf-io.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-io.c,v
retrieving revision 1.40
diff -u -r1.40 jcf-io.c
--- jcf-io.c	17 Jan 2003 14:27:29 -0000	1.40
+++ jcf-io.c	18 Jan 2003 22:06:06 -0000
@@ -310,7 +310,7 @@
   struct dirent **files;
 } memoized_dirlist_entry;
 
-/* Returns true if ENTRY (a memoized_dirlist_entry *) correponds to
+/* Returns true if ENTRY (a memoized_dirlist_entry *) corresponds to
    the directory given by KEY (a char *) giving the directory 
    name.  */
 
@@ -378,7 +378,7 @@
   else
     dent = *((memoized_dirlist_entry **) slot);
 
-  /* Put the spearator back.  */
+  /* Put the separator back.  */
   if (sep)
     *sep = DIR_SEPARATOR;
 
Index: jcf-parse.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-parse.c,v
retrieving revision 1.131
diff -u -r1.131 jcf-parse.c
--- jcf-parse.c	16 Jan 2003 15:58:40 -0000	1.131
+++ jcf-parse.c	18 Jan 2003 22:06:06 -0000
@@ -71,7 +71,7 @@
 
 extern struct obstack temporary_obstack;
 
-/* Set to nonzero value in order to emit class initilization code
+/* Set to nonzero value in order to emit class initialization code
    before static field references.  */
 extern int always_initialize_class_p;
 
@@ -357,7 +357,7 @@
 	 entry isn't a member (like an inner class) the value is 0. */
       int ocii = JCF_readu2 (jcf);
       /* Read inner_name_index. If the class we're dealing with is
-	 an annonymous class, it must be 0. */
+	 an anonymous class, it must be 0. */
       int ini = JCF_readu2 (jcf);
       /* Read the access flag. */
       int acc = JCF_readu2 (jcf);
Index: jcf-write.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-write.c,v
retrieving revision 1.118
diff -u -r1.118 jcf-write.c
--- jcf-write.c	18 Jan 2003 19:15:07 -0000	1.118
+++ jcf-write.c	18 Jan 2003 22:06:08 -0000
@@ -129,7 +129,7 @@
 
      If the label has been defined:
      Until perform_relocations is finished, this is the maximum possible
-     value of the bytecode offset at the begnning of this block.
+     value of the bytecode offset at the beginning of this block.
      After perform_relocations, it is the actual offset (pc). */
   int pc;
 
@@ -537,7 +537,7 @@
 /* The index of jvm local variable allocated for this DECL.
    This is assigned when generating .class files;
    contrast DECL_LOCAL_SLOT_NUMBER which is set when *reading* a .class file.
-   (We don't allocate DECL_LANG_SPECIFIC for locals from Java sourc code.) */
+   (We don't allocate DECL_LANG_SPECIFIC for locals from Java source code.) */
 
 #define DECL_LOCAL_INDEX(DECL) DECL_ALIGN(DECL)
 
@@ -1069,7 +1069,7 @@
 
 /* Generate code to evaluate EXP.  If the result is true,
    branch to TRUE_LABEL; otherwise, branch to FALSE_LABEL.
-   TRUE_BRANCH_FIRST is a code geneation hint that the
+   TRUE_BRANCH_FIRST is a code generation hint that the
    TRUE_LABEL may follow right after this. (The idea is that we
    may be able to optimize away GOTO TRUE_LABEL; TRUE_LABEL:) */
 
@@ -2820,7 +2820,7 @@
   append_chunk (NULL, 0, state);
   cpool_chunk = state->chunk;
 
-  /* Next allocate the chunk containing acces_flags through fields_counr. */
+  /* Next allocate the chunk containing acces_flags through fields_count. */
   if (clas == object_type_node)
     i = 10;
   else
@@ -3292,7 +3292,7 @@
   return r;
 }
 
-/* Write out the contens of a class (RECORD_TYPE) CLAS, as a .class file.
+/* Write out the contents of a class (RECORD_TYPE) CLAS, as a .class file.
    The output .class file name is make_class_file_name(CLAS). */
 
 void
Index: lang.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/lang.c,v
retrieving revision 1.119
diff -u -r1.119 lang.c
--- lang.c	12 Jan 2003 02:14:55 -0000	1.119
+++ lang.c	18 Jan 2003 22:06:08 -0000
@@ -920,7 +920,7 @@
    This variable is used to avoid multiple calls to the static
    constructor for each class.  
 
-   It looks somthing like this:
+   It looks something like this:
 
    foo ()
    {
@@ -937,7 +937,7 @@
    Each of these boolean variables has an entry in the
    DECL_FUNCTION_INIT_TEST_TABLE of a method.  When inlining a method
    we must merge the DECL_FUNCTION_INIT_TEST_TABLE from the function
-   being linlined and create the boolean variables in the outermost
+   being inlined and create the boolean variables in the outermost
    scope of the method being inlined into.  */
 
 /* Create a mapping from a boolean variable in a method being inlined
Index: mangle.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/mangle.c,v
retrieving revision 1.28
diff -u -r1.28 mangle.c
--- mangle.c	12 Jan 2003 02:14:55 -0000	1.28
+++ mangle.c	18 Jan 2003 22:06:09 -0000
@@ -278,7 +278,7 @@
 
 /* We go through the compression table and try to find a complete or
    partial match. The function returns the compression table entry
-   that (evenutally partially) matches TYPE. *NEXT_CURRENT can be set
+   that (eventually partially) matches TYPE. *NEXT_CURRENT can be set
    to the rest of TYPE to be mangled. */
 
 static int
@@ -380,7 +380,7 @@
 }
 
 /* Mangle a pointer type. There are two cases: the pointer is already
-   in the compression table: the compression is emited sans 'P'
+   in the compression table: the compression is emitted sans 'P'
    indicator. Otherwise, a 'P' is emitted and, depending on the type,
    a partial compression or/plus the rest of the mangling. */
 
@@ -474,7 +474,7 @@
   compression_table_add (p_type);
 }
 
-/* Write a substition string for entry I. Substitution string starts a
+/* Write a substitution string for entry I. Substitution string starts a
    -1 (encoded S_.) The base is 36, and the code shamlessly taken from
    cp/mangle.c.  */
 
Index: typeck.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/typeck.c,v
retrieving revision 1.55
diff -u -r1.55 typeck.c
--- typeck.c	12 Jan 2003 02:14:56 -0000	1.55
+++ typeck.c	18 Jan 2003 22:06:09 -0000
@@ -337,7 +337,7 @@
 
 /* An array of unknown length will be ultimately given an length of
    -2, so that we can still have `length' producing a negative value
-   even if found. This was part of an optimization amaing at removing
+   even if found. This was part of an optimization aiming at removing
    `length' from static arrays. We could restore it, FIXME.  */
 
 tree
Index: verify.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/verify.c,v
retrieving revision 1.56
diff -u -r1.56 verify.c
--- verify.c	12 Jan 2003 02:14:56 -0000	1.56
+++ verify.c	18 Jan 2003 22:06:09 -0000
@@ -363,7 +363,7 @@
 #define VERIFICATION_ERROR_WITH_INDEX(MESSAGE) \
   do { message = MESSAGE;  goto error_with_index; } while (0)
 
-/* Recursive helper function to pop argument types during verifiation.
+/* Recursive helper function to pop argument types during verification.
    ARG_TYPES is the list of formal parameter types.
    Return NULL on success and a freshly malloc'd error message on failure. */
 
@@ -713,7 +713,7 @@
 	prev_eh_ranges = NULL_EH_RANGE;
 
 	/* Allocate decl and rtx for this variable now, so if we're not
-	   optmizing, we get a temporary that survives the whole method. */
+	   optimizing, we get a temporary that survives the whole method. */
 	find_local_variable (index, type, oldpc);
 
         if (TYPE_IS_WIDE (type))


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