[patch] gcc/*.c: Fix comment formatting.
Kazu Hirata
kazu@cs.umass.edu
Fri Aug 22 06:45:00 GMT 2003
Hi,
Attached is a patch to fix comment formatting. Committed as obvious.
Kazu Hirata
2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
* c-decl.c: Fix comment formatting.
* cfgrtl.c: Likewise.
* combine.c: Likewise.
* convert.c: Likewise.
* dominance.c: Likewise.
* dwarf2out.c: Likewise.
* dwarfout.c: Likewise.
* expmed.c: Likewise.
* fold-const.c: Likewise.
* gcov.c: Likewise.
* genattrtab.c: Likewise.
* ggc-common.c: Likewise.
* mips-tfile.c: Likewise.
* regmove.c: Likewise.
Index: c-decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-decl.c,v
retrieving revision 1.433
diff -u -r1.433 c-decl.c
--- c-decl.c 19 Aug 2003 23:21:52 -0000 1.433
+++ c-decl.c 22 Aug 2003 06:40:55 -0000
@@ -572,7 +572,7 @@
goto normal;
case VAR_DECL:
- /* keep this in sync with stmt.c:warn_about_unused_variables.
+ /* Keep this in sync with stmt.c:warn_about_unused_variables.
No warnings when the global scope is popped because the
global scope isn't popped for the last translation unit,
so the warnings are done in c_write_global_declaration. */
Index: cfgrtl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cfgrtl.c,v
retrieving revision 1.96
diff -u -r1.96 cfgrtl.c
--- cfgrtl.c 19 Jul 2003 14:47:00 -0000 1.96
+++ cfgrtl.c 22 Aug 2003 06:40:57 -0000
@@ -2552,7 +2552,7 @@
}
}
-/* return true when blocks A and B can be safely merged. */
+/* Return true when blocks A and B can be safely merged. */
static bool
cfg_layout_can_merge_blocks_p (basic_block a, basic_block b)
{
Index: combine.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/combine.c,v
retrieving revision 1.377
diff -u -r1.377 combine.c
--- combine.c 31 Jul 2003 18:37:23 -0000 1.377
+++ combine.c 22 Aug 2003 06:41:03 -0000
@@ -9686,7 +9686,7 @@
break;
case EQ:
- /* convert (lshiftrt (eq FOO 0) C) to (xor FOO 1) if STORE_FLAG_VALUE
+ /* Convert (lshiftrt (eq FOO 0) C) to (xor FOO 1) if STORE_FLAG_VALUE
says that the sign bit can be tested, FOO has mode MODE, C is
GET_MODE_BITSIZE (MODE) - 1, and FOO has only its low-order bit
that may be nonzero. */
Index: convert.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/convert.c,v
retrieving revision 1.33
diff -u -r1.33 convert.c
--- convert.c 20 Aug 2003 07:06:39 -0000 1.33
+++ convert.c 22 Aug 2003 06:41:04 -0000
@@ -203,7 +203,7 @@
if (itype != type && FLOAT_TYPE_P (type))
switch (TREE_CODE (expr))
{
- /* convert (float)-x into -(float)x. This is always safe. */
+ /* Convert (float)-x into -(float)x. This is always safe. */
case ABS_EXPR:
case NEGATE_EXPR:
if (TYPE_PRECISION (type) < TYPE_PRECISION (TREE_TYPE (expr)))
@@ -211,7 +211,7 @@
fold (convert_to_real (type,
TREE_OPERAND (expr, 0))));
break;
- /* convert (outertype)((innertype0)a+(innertype1)b)
+ /* Convert (outertype)((innertype0)a+(innertype1)b)
into ((newtype)a+(newtype)b) where newtype
is the widest mode from all of these. */
case PLUS_EXPR:
Index: dominance.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dominance.c,v
retrieving revision 1.17
diff -u -r1.17 dominance.c
--- dominance.c 19 Jul 2003 14:47:02 -0000 1.17
+++ dominance.c 22 Aug 2003 06:41:04 -0000
@@ -545,7 +545,7 @@
dominance_info info;
basic_block b;
- /* allocate structure for dominance information. */
+ /* Allocate structure for dominance information. */
info = xmalloc (sizeof (struct dominance_info));
info->forest = et_forest_create ();
VARRAY_GENERIC_PTR_INIT (info->varray, last_basic_block + 3, "dominance info");
Index: dwarf2out.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarf2out.c,v
retrieving revision 1.448
diff -u -r1.448 dwarf2out.c
--- dwarf2out.c 5 Aug 2003 21:15:56 -0000 1.448
+++ dwarf2out.c 22 Aug 2003 06:41:09 -0000
@@ -9686,7 +9686,7 @@
lower = TYPE_MIN_VALUE (domain);
upper = TYPE_MAX_VALUE (domain);
- /* define the index type. */
+ /* Define the index type. */
if (TREE_TYPE (domain))
{
/* ??? This is probably an Ada unnamed subrange type. Ignore the
@@ -10784,7 +10784,7 @@
fn_arg_types = TYPE_ARG_TYPES (TREE_TYPE (decl));
if (fn_arg_types != NULL)
{
- /* this is the prototyped case, check for ... */
+ /* This is the prototyped case, check for.... */
if (TREE_VALUE (tree_last (fn_arg_types)) != void_type_node)
gen_unspecified_parameters_die (decl, subr_die);
}
Index: dwarfout.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarfout.c,v
retrieving revision 1.133
diff -u -r1.133 dwarfout.c
--- dwarfout.c 19 Aug 2003 23:21:53 -0000 1.133
+++ dwarfout.c 22 Aug 2003 06:41:13 -0000
@@ -4066,7 +4066,7 @@
sibling_attribute ();
equate_type_number_to_die_number (type);
member_attribute (TYPE_CONTEXT (type));
- /* this is a fixed length string */
+ /* This is a fixed length string. */
byte_size_attribute (type);
}
@@ -5226,13 +5226,13 @@
if (fn_arg_types)
{
- /* this is the prototyped case, check for ... */
+ /* This is the prototyped case, check for.... */
if (TREE_VALUE (tree_last (fn_arg_types)) != void_type_node)
output_die (output_unspecified_parameters_die, decl);
}
else
{
- /* this is unprototyped, check for undefined (just declaration) */
+ /* This is unprototyped, check for undefined (just declaration). */
if (!DECL_INITIAL (decl))
output_die (output_unspecified_parameters_die, decl);
}
Index: expmed.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/expmed.c,v
retrieving revision 1.139
diff -u -r1.139 expmed.c
--- expmed.c 4 Aug 2003 23:42:47 -0000 1.139
+++ expmed.c 22 Aug 2003 06:41:15 -0000
@@ -2628,7 +2628,7 @@
abort ();
if (mhigh_hi > 1 || mlow_hi > 1)
abort ();
- /* assert that mlow < mhigh. */
+ /* Assert that mlow < mhigh. */
if (! (mlow_hi < mhigh_hi || (mlow_hi == mhigh_hi && mlow_lo < mhigh_lo)))
abort ();
Index: fold-const.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fold-const.c,v
retrieving revision 1.296
diff -u -r1.296 fold-const.c
--- fold-const.c 21 Aug 2003 05:47:43 -0000 1.296
+++ fold-const.c 22 Aug 2003 06:41:19 -0000
@@ -558,7 +558,7 @@
if (hden == 0 && lden == 0)
overflow = 1, lden = 1;
- /* calculate quotient sign and convert operands to unsigned. */
+ /* Calculate quotient sign and convert operands to unsigned. */
if (!uns)
{
if (hnum < 0)
Index: gcov.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gcov.c,v
retrieving revision 1.75
diff -u -r1.75 gcov.c
--- gcov.c 19 Jul 2003 14:47:06 -0000 1.75
+++ gcov.c 22 Aug 2003 06:41:20 -0000
@@ -1487,7 +1487,7 @@
add_line_counts (coverage_t *coverage, function_t *fn)
{
unsigned ix;
- line_t *line = NULL; /* this is propagated from one iteration to the
+ line_t *line = NULL; /* This is propagated from one iteration to the
next. */
/* Scan each basic block. */
Index: genattrtab.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/genattrtab.c,v
retrieving revision 1.135
diff -u -r1.135 genattrtab.c
--- genattrtab.c 11 Aug 2003 21:47:36 -0000 1.135
+++ genattrtab.c 22 Aug 2003 06:41:22 -0000
@@ -183,8 +183,8 @@
unsigned unsigned_p : 1; /* Make the output function unsigned int. */
unsigned is_const : 1; /* Attribute value constant for each run. */
unsigned is_special : 1; /* Don't call `write_attr_set'. */
- unsigned func_units_p : 1; /* this is the function_units attribute */
- unsigned blockage_p : 1; /* this is the blockage range function */
+ unsigned func_units_p : 1; /* This is the function_units attribute. */
+ unsigned blockage_p : 1; /* This is the blockage range function. */
unsigned static_p : 1; /* Make the output function static. */
};
Index: ggc-common.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ggc-common.c,v
retrieving revision 1.74
diff -u -r1.74 ggc-common.c
--- ggc-common.c 1 Aug 2003 23:00:24 -0000 1.74
+++ ggc-common.c 22 Aug 2003 06:41:22 -0000
@@ -739,7 +739,7 @@
/* Adjust for rlimits. */
min_heap_kbytes = ggc_rlimit_bound (min_heap_kbytes);
- min_heap_kbytes /= 1024; /* convert to Kbytes. */
+ min_heap_kbytes /= 1024; /* Convert to Kbytes. */
/* The heuristic is RAM/8, with a lower bound of 4M and an upper
bound of 128M (when RAM >= 1GB). */
Index: mips-tfile.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/mips-tfile.c,v
retrieving revision 1.61
diff -u -r1.61 mips-tfile.c
--- mips-tfile.c 22 Jul 2003 23:15:29 -0000 1.61
+++ mips-tfile.c 22 Aug 2003 06:41:25 -0000
@@ -3280,7 +3280,7 @@
value,
indx);
- /* deal with struct, union, and enum tags. */
+ /* Deal with struct, union, and enum tags. */
if (symbol_type == st_Block)
{
/* Create or update the tag information. */
Index: regmove.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/regmove.c,v
retrieving revision 1.148
diff -u -r1.148 regmove.c
--- regmove.c 22 Jul 2003 23:15:29 -0000 1.148
+++ regmove.c 22 Aug 2003 06:41:26 -0000
@@ -2032,7 +2032,7 @@
}
-/* return nonzero if X is stable and mentions no registers but for
+/* Return nonzero if X is stable and mentions no registers but for
mentioning SRC or mentioning / changing DST . If in doubt, presume
it is unstable.
The rationale is that we want to check if we can move an insn easily
More information about the Gcc-patches
mailing list