]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c-decl.c, [...]: Fix comment typos and formatting.
authorKazu Hirata <kazu@cs.umass.edu>
Fri, 27 Feb 2004 07:09:43 +0000 (07:09 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Fri, 27 Feb 2004 07:09:43 +0000 (07:09 +0000)
* c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
comment typos and formatting.  Follow spelling conventions.

From-SVN: r78555

16 files changed:
gcc/ChangeLog
gcc/c-decl.c
gcc/c-ppoutput.c
gcc/combine.c
gcc/cppfiles.c
gcc/dwarf2out.c
gcc/expr.c
gcc/fold-const.c
gcc/gcc.c
gcc/haifa-sched.c
gcc/loop-iv.c
gcc/params.def
gcc/read-rtl.c
gcc/rtl.c
gcc/rtlanal.c
gcc/toplev.c

index cb4c1fc188b0d8c6b3818a9e76b5a847ee5db264..a0677fe487432339e6d34644c30e39ec206403b3 100644 (file)
@@ -1,3 +1,10 @@
+2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
+       expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
+       params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
+       comment typos and formatting.  Follow spelling conventions.
+
 2004-02-26  Aldy Hernandez  <aldyh@redhat.com>
 
        * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
index 01f1761864bbb048696cde8b01503a98bfadf2d8..1145363a643b9e8f08a36aa766b29010c0d372ae 100644 (file)
@@ -611,7 +611,7 @@ poplevel (int keep, int dummy ATTRIBUTE_UNUSED, int functionbody)
              && DECL_NAME (p)
              && !DECL_ARTIFICIAL (p))
            warning ("%Junused variable `%D'", p, p);
-         /* fall through */
+         /* Fall through.  */
 
        default:
        normal:
@@ -1016,7 +1016,7 @@ diagnose_mismatched_decls (tree newdecl, tree olddecl,
   if (TREE_CODE (newdecl) == TYPE_DECL)
     {
       if (DECL_IN_SYSTEM_HEADER (newdecl) || DECL_IN_SYSTEM_HEADER (olddecl))
-       return true;  /* allow OLDDECL to continue in use */
+       return true;  /* Allow OLDDECL to continue in use.  */
       
       error ("%Jredefinition of typedef '%D'", newdecl, newdecl);
       locate_old_decl (olddecl, error);
index 24be879acb3a4ffd046ef26d494c5d83f7a24050..4d83b5d01e2c79c89cafdfb4577d284ab5339387 100644 (file)
@@ -36,7 +36,7 @@ static struct
   const cpp_token *source;     /* Source token for spacing.  */
   int src_line;                        /* Line number currently being written.  */
   unsigned char printed;       /* Nonzero if something output at line.  */
-  bool first_time;             /* pp_file_change hasn't been called yet. */
+  bool first_time;             /* pp_file_change hasn't been called yet.  */
 } print;
 
 /* General output routines.  */
index 9e541ad61f2384205dd0705d7efa093a70506b49..b7cad3fcbad51213ff1061ea5a2045123f8bbfaa 100644 (file)
@@ -1452,7 +1452,7 @@ try_combine (rtx i3, rtx i2, rtx i1, int *new_direct_jump_p)
   int added_sets_1, added_sets_2;
   /* Total number of SETs to put into I3.  */
   int total_sets;
-  /* Nonzero is I2's body now appears in I3.  */
+  /* Nonzero if I2's body now appears in I3.  */
   int i2_is_used;
   /* INSN_CODEs for new I3, new I2, and user of condition code.  */
   int insn_code_number, i2_code_number = 0, other_code_number = 0;
index 3a42e78639b1620e77ed79697e2b3f49f1baa9b9..b40521b5ed64ec3ab1c1c5b8b615f665edb50da2 100644 (file)
@@ -109,7 +109,7 @@ struct _cpp_file
   /* If BUFFER above contains the true contents of the file.  */
   bool buffer_valid;
 
-  /* File is a PCH (on return from find_include_file). */
+  /* File is a PCH (on return from find_include_file).  */
   bool pch;
 };
 
index 0bfe62c4efc5a3c49326ca52116b0740fb3a4757..841827ba5974c763fb3e3b17a92c4e703880c3a0 100644 (file)
@@ -9873,7 +9873,7 @@ add_bound_info (dw_die_ref subrange_die, enum dwarf_attribute bound_attr, tree b
          || (bound_attr == DW_AT_lower_bound
              && (((is_c_family () || is_java ()) &&  integer_zerop (bound))
                  || (is_fortran () && integer_onep (bound)))))
-       /* use the default */
+       /* Use the default.  */
        ;
       else
        add_AT_unsigned (subrange_die, bound_attr, tree_low_cst (bound, 0));
@@ -12882,7 +12882,7 @@ dwarf2out_source_line (unsigned int line, const char *filename)
          (*targetm.asm_out.internal_label) (asm_out_file, SEPARATE_LINE_CODE_LABEL,
                                     separate_line_info_table_in_use);
 
-         /* expand the line info table if necessary */
+         /* Expand the line info table if necessary.  */
          if (separate_line_info_table_in_use
              == separate_line_info_table_allocated)
            {
index 907d30c4006e593a91932cb60f4be35cb0d43bac..bf1460649f363732a22cc4f80832c1e33f59fd3c 100644 (file)
@@ -645,7 +645,7 @@ convert_move (rtx to, rtx from, int unsignedp)
       if (to_mode == full_mode)
        return;
 
-      /* else proceed to integer conversions below */
+      /* else proceed to integer conversions below */
       from_mode = full_mode;
     }
 
index 2b2e874062bd2206d317cb3730112292c2d6814f..956478af001fcbf300d6462ff352e72876339f64 100644 (file)
@@ -718,7 +718,7 @@ div_and_round_double (enum tree_code code, int uns,
   if (quo_neg)
     neg_double (*lquo, *hquo, lquo, hquo);
 
-  /* compute trial remainder:  rem = num - (quo * den)  */
+  /* Compute trial remainder:  rem = num - (quo * den)  */
   mul_double (*lquo, *hquo, lden_orig, hden_orig, lrem, hrem);
   neg_double (*lrem, *hrem, lrem, hrem);
   add_double (lnum_orig, hnum_orig, *lrem, *hrem, lrem, hrem);
index e4cce369a9c087d1f72a8b890d36a936f96bf66a..78e82c49bd9e10398e8ee2bcbcaeca98a8679dea 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -6493,7 +6493,7 @@ lookup_compiler (const char *name, size_t length, const char *language)
     }
 
 #if defined (OS2) ||defined (HAVE_DOS_BASED_FILE_SYSTEM)
-  /* look again, but case-insensitively this time.  */
+  /* Look again, but case-insensitively this time.  */
   if (cp < compilers)
     for (cp = compilers + n_compilers - 1; cp >= compilers; cp--)
       {
index 496ea2caa2a89c6ed424b31dba7be899f0db8a83..34e8606ce7c17aa0c3f7c890e974d59d17da1532 100644 (file)
@@ -1952,7 +1952,7 @@ early_queue_to_ready (state_t state, struct ready_list *ready)
 
                      insns_removed++;
                      if (insns_removed == flag_sched_stalled_insns)
-                       /* remove only one insn from Q at a time */
+                       /* Remove only one insn from Q at a time.  */
                        return insns_removed;
                    }
                }
index 277c1eaa09a374065dc57c272e62887b5e2b9476..9c170dec2eceeeeae3bf41db0bc441908e47ea77 100644 (file)
@@ -34,7 +34,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
    interesting reg, it is now easy to find a reaching definition (there may be
    only one).
 
-   Induction variable is then simply analysed by walking the use-def
+   Induction variable is then simply analyzed by walking the use-def
    chains.
    
    Usage:
@@ -501,7 +501,7 @@ iv_add (struct rtx_iv *iv0, struct rtx_iv *iv1, enum rtx_code op)
   enum machine_mode mode;
   rtx arg;
 
-  /* Extend the constant to extend_mode of the other operand if neccesary.  */
+  /* Extend the constant to extend_mode of the other operand if necessary.  */
   if (iv0->extend == NIL
       && iv0->mode == iv0->extend_mode
       && iv0->step == const0_rtx
@@ -862,7 +862,7 @@ iv_analyze_biv (rtx def, struct rtx_iv *iv)
   return iv->base != NULL_RTX;
 }
 
-/* Analyses operand OP of INSN and stores the result to *IV.  */
+/* Analyzes operand OP of INSN and stores the result to *IV.  */
 
 static bool
 iv_analyze_op (rtx insn, rtx op, struct rtx_iv *iv)
@@ -927,7 +927,7 @@ iv_analyze_op (rtx insn, rtx op, struct rtx_iv *iv)
   return iv_analyze (def_insn, op, iv);
 }
 
-/* Analyses iv DEF defined in INSN and stores the result to *IV.  */
+/* Analyzes iv DEF defined in INSN and stores the result to *IV.  */
 
 bool
 iv_analyze (rtx insn, rtx def, struct rtx_iv *iv)
@@ -1746,7 +1746,7 @@ shorten_into_mode (struct rtx_iv *iv, enum machine_mode mode,
 }
 
 /* Transforms IV0 and IV1 compared by COND so that they are both compared as
-   subregs of the same mode if possible (sometimes it is neccesary to add
+   subregs of the same mode if possible (sometimes it is necessary to add
    some assumptions to DESC).  */
 
 static bool
@@ -2082,7 +2082,7 @@ iv_number_of_iterations (struct loop *loop, rtx insn, rtx condition,
                 obviously if the test for overflow during that transformation
                 passed, we cannot overflow here.  Most importantly any
                 loop with sharp end condition and step 1 falls into this
-                cathegory, so handling this case specially is definitely
+                category, so handling this case specially is definitely
                 worth the troubles.  */
              may_xform = const_true_rtx;
            }
index 3d5a6b70a2aed69571591f391fc6618b728327e3..e00e22e3b0d19d2bb6b53265b8a630fe89171973 100644 (file)
@@ -137,7 +137,7 @@ DEFPARAM(PARAM_MAX_GCSE_PASSES,
    
    This limit should be at most half of the peeling limits:  loop unroller
    decides to not unroll loops that iterate fewer than 2*number of allowed
-   unrollings and thus we would have loops that are neither peeled or unrooled
+   unrollings and thus we would have loops that are neither peeled or unrolled
    otherwise.  */
 DEFPARAM(PARAM_MAX_UNROLLED_INSNS,
         "max-unrolled-insns",
index 629390997c252a570c6efc19dbc7653127427238..377eb7e051e470ab4b3a48650603f14d5ceee845 100644 (file)
@@ -630,7 +630,7 @@ again:
          if (c != '[')
            fatal_expected_char (infile, '[', c);
 
-         /* add expressions to a list, while keeping a count */
+         /* Add expressions to a list, while keeping a count.  */
          obstack_init (&vector_stack);
          while ((c = read_skip_spaces (infile)) && c != ']')
            {
index d0081587198d67e13d710df22fc0d86adfd1847b..6449630b92f15be8232d6bebc235b29463ca6318 100644 (file)
--- a/gcc/rtl.c
+++ b/gcc/rtl.c
@@ -156,7 +156,7 @@ rtvec_alloc (int n)
   rtvec rt;
 
   rt = ggc_alloc_rtvec (n);
-  /* clear out the vector */
+  /* Clear out the vector.  */
   memset (&rt->elem[0], 0, n * sizeof (rtx));
 
   PUT_NUM_ELEM (rt, n);
index 0ec52dad726c6a1aeed5b73dd49584beeb15aa29..064e4bc6af447f626989e2cd851453bf5f01929f 100644 (file)
@@ -3325,7 +3325,7 @@ subreg_offset_representable_p (unsigned int xregno, enum machine_mode xmode,
   nregs_xmode = hard_regno_nregs[xregno][xmode];
   nregs_ymode = hard_regno_nregs[xregno][ymode];
 
-  /* paradoxical subregs are always valid.  */
+  /* Paradoxical subregs are always valid.  */
   if (offset == 0
       && nregs_ymode > nregs_xmode
       && (GET_MODE_SIZE (ymode) > UNITS_PER_WORD
index d99c3bfccdd66baa8cb97b964aeca77dc9179284..10a3b12ac402a7709403813abe9cd64db61f0404 100644 (file)
@@ -696,7 +696,7 @@ int flag_gcse_lm = 1;
 
 int flag_gcse_sm = 1;
 
-/* Nonzero if we want to perfrom redundant load after store elimination
+/* Nonzero if we want to perform redundant load after store elimination
    in gcse.  */
 
 int flag_gcse_las = 1;