[patch] gcc/*.[ch]: Fix comment formatting.
Kazu Hirata
kazu@cs.umass.edu
Tue Jul 22 23:15:00 GMT 2003
Hi,
Attached is a patch to fix comment formatting. Committed as obvious.
Kazu Hirata
2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
* alias.c: Fix comment formatting.
* c-common.c: Likewise.
* c-decl.c: Likewise.
* c-opts.c: Likewise.
* combine.c: Likewise.
* cpplib.c: Likewise.
* diagnostic.c: Likewise.
* dojump.c: Likewise.
* final.c: Likewise.
* fold-const.c: Likewise.
* gcc.c: Likewise.
* gcse.c: Likewise.
* ggc-page.c: Likewise.
* jump.c: Likewise.
* loop.c: Likewise.
* mips-tfile.c: Likewise.
* recog.c: Likewise.
* regclass.c: Likewise.
* regmove.c: Likewise.
* tree.c: Likewise.
* tree.h: Likewise.
Index: alias.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/alias.c,v
retrieving revision 1.197
diff -u -r1.197 alias.c
--- alias.c 19 Jul 2003 14:46:59 -0000 1.197
+++ alias.c 22 Jul 2003 22:57:12 -0000
@@ -1326,7 +1326,7 @@
x = XEXP (x, 0);
if (GET_CODE (x) != PLUS && GET_CODE (x) != MINUS)
return 0;
- /* fall through */
+ /* Fall through. */
case LO_SUM:
case PLUS:
case MINUS:
Index: c-common.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-common.c,v
retrieving revision 1.435
diff -u -r1.435 c-common.c
--- c-common.c 22 Jul 2003 09:25:55 -0000 1.435
+++ c-common.c 22 Jul 2003 22:57:15 -0000
@@ -2649,7 +2649,7 @@
if (TREE_CODE (TREE_TYPE (expr)) == REFERENCE_TYPE
|| TREE_CODE (TREE_TYPE (TREE_OPERAND (expr, 0))) == REFERENCE_TYPE)
break;
- /* fall through... */
+ /* Fall through.... */
case NOP_EXPR:
/* If this is widening the argument, we can ignore it. */
if (TYPE_PRECISION (TREE_TYPE (expr))
@@ -2668,7 +2668,7 @@
be false. */
if (HONOR_INFINITIES (TYPE_MODE (TREE_TYPE (TREE_OPERAND (expr, 0)))))
break;
- /* fall through... */
+ /* Fall through.... */
case BIT_XOR_EXPR:
/* This and MINUS_EXPR can be changed into a comparison of the
two objects. */
Index: c-decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-decl.c,v
retrieving revision 1.413
diff -u -r1.413 c-decl.c
--- c-decl.c 22 Jul 2003 02:23:27 -0000 1.413
+++ c-decl.c 22 Jul 2003 22:57:19 -0000
@@ -5164,11 +5164,11 @@
{
field_array[len++] = x;
- /* if there is anonymous struct or union break out of the loop */
+ /* If there is anonymous struct or union, break out of the loop. */
if (DECL_NAME (x) == NULL)
break;
}
- /* found no anonymous struct/union add the TYPE_LANG_SPECIFIC. */
+ /* Found no anonymous struct/union. Add the TYPE_LANG_SPECIFIC. */
if (x == NULL)
{
TYPE_LANG_SPECIFIC (t) = space;
Index: c-opts.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-opts.c,v
retrieving revision 1.78
diff -u -r1.78 c-opts.c
--- c-opts.c 21 Jul 2003 21:25:44 -0000 1.78
+++ c-opts.c 22 Jul 2003 22:57:19 -0000
@@ -717,7 +717,7 @@
case OPT_ffreestanding:
value = !value;
- /* Fall through... */
+ /* Fall through.... */
case OPT_fhosted:
flag_hosted = value;
flag_no_builtin = !value;
@@ -966,7 +966,7 @@
is not overridden. */
case OPT_pedantic_errors:
cpp_opts->pedantic_errors = 1;
- /* fall through */
+ /* Fall through. */
case OPT_pedantic:
cpp_opts->pedantic = 1;
cpp_opts->warn_endif_labels = 1;
Index: combine.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/combine.c,v
retrieving revision 1.374
diff -u -r1.374 combine.c
--- combine.c 22 Jul 2003 00:36:51 -0000 1.374
+++ combine.c 22 Jul 2003 22:57:26 -0000
@@ -3057,7 +3057,7 @@
break;
case NE:
- /* if STORE_FLAG_VALUE is -1, this is (NE X 0) and only one bit of X
+ /* If STORE_FLAG_VALUE is -1, this is (NE X 0) and only one bit of X
is known to be on, this can be converted into a NEG of a shift. */
if (STORE_FLAG_VALUE == -1 && XEXP (SET_SRC (x), 1) == const0_rtx
&& GET_MODE (SET_SRC (x)) == GET_MODE (XEXP (SET_SRC (x), 0))
Index: cpplib.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cpplib.c,v
retrieving revision 1.347
diff -u -r1.347 cpplib.c
--- cpplib.c 22 Jul 2003 16:24:53 -0000 1.347
+++ cpplib.c 22 Jul 2003 22:57:27 -0000
@@ -556,7 +556,7 @@
if (CPP_OPTION (pfile, warn_unused_macros))
_cpp_warn_if_unused_macro (pfile, h, NULL);
- /* and fall through... */
+ /* And fall through.... */
case NT_ASSERTION:
_cpp_free_definition (h);
break;
Index: diagnostic.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/diagnostic.c,v
retrieving revision 1.124
diff -u -r1.124 diagnostic.c
--- diagnostic.c 15 Jul 2003 23:31:51 -0000 1.124
+++ diagnostic.c 22 Jul 2003 22:57:28 -0000
@@ -833,7 +833,7 @@
if (context->internal_error)
(*context->internal_error) (diagnostic->message.format_spec,
diagnostic->message.args_ptr);
- /* fall through */
+ /* Fall through. */
case DK_FATAL: case DK_SORRY:
case DK_ANACHRONISM: case DK_NOTE:
@@ -857,7 +857,7 @@
context->warnings_are_errors_message = false;
}
- /* and fall through */
+ /* And fall through. */
case DK_ERROR:
++diagnostic_kind_count (context, DK_ERROR);
break;
Index: dojump.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dojump.c,v
retrieving revision 1.4
diff -u -r1.4 dojump.c
--- dojump.c 29 Jun 2003 15:19:13 -0000 1.4
+++ dojump.c 22 Jul 2003 22:57:28 -0000
@@ -551,7 +551,7 @@
}
}
}
- /* fall through and generate the normal code. */
+ /* Fall through and generate the normal code. */
default:
normal:
Index: final.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/final.c,v
retrieving revision 1.287
diff -u -r1.287 final.c
--- final.c 19 Jul 2003 14:47:05 -0000 1.287
+++ final.c 22 Jul 2003 22:57:29 -0000
@@ -1570,7 +1570,7 @@
for (insn = first; insn; insn = NEXT_INSN (insn))
{
- if (INSN_UID (insn) > max_uid) /* find largest UID */
+ if (INSN_UID (insn) > max_uid) /* Find largest UID. */
max_uid = INSN_UID (insn);
if (GET_CODE (insn) == NOTE && NOTE_LINE_NUMBER (insn) > 0)
line_note_exists[NOTE_LINE_NUMBER (insn)] = 1;
Index: fold-const.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fold-const.c,v
retrieving revision 1.282
diff -u -r1.282 fold-const.c
--- fold-const.c 19 Jul 2003 14:47:05 -0000 1.282
+++ fold-const.c 22 Jul 2003 22:57:33 -0000
@@ -712,7 +712,7 @@
decode (quo, lquo, hquo);
finish_up:
- /* if result is negative, make it so. */
+ /* If result is negative, make it so. */
if (quo_neg)
neg_double (*lquo, *hquo, lquo, hquo);
@@ -2209,7 +2209,7 @@
default:
break;
}
- /* fall through - ??? */
+ /* Fall through - ??? */
case '<':
{
Index: gcc.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gcc.c,v
retrieving revision 1.388
diff -u -r1.388 gcc.c
--- gcc.c 19 Jul 2003 14:47:06 -0000 1.388
+++ gcc.c 22 Jul 2003 22:57:37 -0000
@@ -5172,7 +5172,7 @@
/* Backslash: treat next character as ordinary. */
c = *p++;
- /* fall through */
+ /* Fall through. */
default:
/* Ordinary character: put it into the current argument. */
obstack_1grow (&obstack, c);
Index: gcse.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gcse.c,v
retrieving revision 1.261
diff -u -r1.261 gcse.c
--- gcse.c 19 Jul 2003 14:47:06 -0000 1.261
+++ gcse.c 22 Jul 2003 22:57:40 -0000
@@ -2121,7 +2121,7 @@
/* Consider a COMPARE of the same registers is a constant
- if they are not floating point registers. */
+ if they are not floating point registers. */
if (GET_CODE(x) == COMPARE
&& GET_CODE (XEXP (x, 0)) == REG
&& GET_CODE (XEXP (x, 1)) == REG
Index: ggc-page.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ggc-page.c,v
retrieving revision 1.73
diff -u -r1.73 ggc-page.c
--- ggc-page.c 19 Jul 2003 14:47:06 -0000 1.73
+++ ggc-page.c 22 Jul 2003 22:57:41 -0000
@@ -410,7 +410,7 @@
/* Total allocations and overhead for sizes less than 32, 64 and 128.
These sizes are interesting because they are typical cache line
- sizes. */
+ sizes. */
unsigned long long total_allocated_under32;
unsigned long long total_overhead_under32;
@@ -421,7 +421,7 @@
unsigned long long total_allocated_under128;
unsigned long long total_overhead_under128;
- /* The overhead for each of the allocation orders. */
+ /* The overhead for each of the allocation orders. */
unsigned long long total_overhead_per_order[NUM_ORDERS];
} stats;
#endif
Index: jump.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/jump.c,v
retrieving revision 1.235
diff -u -r1.235 jump.c
--- jump.c 19 Jul 2003 14:47:07 -0000 1.235
+++ jump.c 22 Jul 2003 22:57:42 -0000
@@ -2345,7 +2345,7 @@
case 'u':
if (XEXP (x, i) != XEXP (y, i))
return 0;
- /* fall through. */
+ /* Fall through. */
case '0':
break;
Index: loop.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/loop.c,v
retrieving revision 1.467
diff -u -r1.467 loop.c
--- loop.c 22 Jul 2003 00:36:52 -0000 1.467
+++ loop.c 22 Jul 2003 22:57:47 -0000
@@ -2254,7 +2254,7 @@
and prevent further processing of it. */
m1->done = 1;
- /* if library call, delete all insns. */
+ /* If library call, delete all insns. */
if ((temp = find_reg_note (m1->insn, REG_RETVAL,
NULL_RTX)))
delete_insn_chain (XEXP (temp, 0), m1->insn);
Index: mips-tfile.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/mips-tfile.c,v
retrieving revision 1.60
diff -u -r1.60 mips-tfile.c
--- mips-tfile.c 19 Jul 2003 14:47:07 -0000 1.60
+++ mips-tfile.c 22 Jul 2003 22:57:50 -0000
@@ -4743,7 +4743,7 @@
else
rename_output = 1;
- /* fall through to 'i' case. */
+ /* Fall through to 'i' case. */
case 'i':
if (obj_in_name == (char *) 0)
Index: recog.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/recog.c,v
retrieving revision 1.184
diff -u -r1.184 recog.c
--- recog.c 19 Jul 2003 14:47:11 -0000 1.184
+++ recog.c 22 Jul 2003 22:57:51 -0000
@@ -333,7 +333,7 @@
{
rtx object = changes[i].object;
- /* if there is no object to test or if it is the same as the one we
+ /* If there is no object to test or if it is the same as the one we
already tested, ignore it. */
if (object == 0 || object == last_validated)
continue;
Index: regclass.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/regclass.c,v
retrieving revision 1.176
diff -u -r1.176 regclass.c
--- regclass.c 19 Jul 2003 14:47:12 -0000 1.176
+++ regclass.c 22 Jul 2003 22:57:53 -0000
@@ -340,7 +340,7 @@
continue;
subclass1:
- /* keep the largest subclass */ /* SPEE 900308 */
+ /* Keep the largest subclass. */ /* SPEE 900308 */
GO_IF_HARD_REG_SUBSET (reg_class_contents[k],
reg_class_contents[(int) reg_class_subunion[i][j]],
subclass2);
@@ -2156,7 +2156,7 @@
{
size_t old_allocated = regno_allocated;
- regno_allocated = num_regs + (num_regs / 20); /* add some slop space */
+ regno_allocated = num_regs + (num_regs / 20); /* Add some slop space. */
size_renumber = regno_allocated * sizeof (short);
if (!reg_n_info)
@@ -2171,7 +2171,7 @@
{
VARRAY_GROW (reg_n_info, regno_allocated);
- if (new_p) /* if we're zapping everything, no need to realloc */
+ if (new_p) /* If we're zapping everything, no need to realloc. */
{
free ((char *) renumber);
free ((char *) reg_pref);
Index: regmove.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/regmove.c,v
retrieving revision 1.147
diff -u -r1.147 regmove.c
--- regmove.c 19 Jul 2003 14:47:12 -0000 1.147
+++ regmove.c 22 Jul 2003 22:57:53 -0000
@@ -2064,7 +2064,7 @@
if (code == MEM
&& ! stable_and_no_regs_but_for_p (XEXP (x, 0), src, dst))
return 0;
- /* fall through */
+ /* Fall through. */
default:
return ! rtx_unstable_p (x);
}
Index: tree.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.c,v
retrieving revision 1.319
diff -u -r1.319 tree.c
--- tree.c 19 Jul 2003 14:47:14 -0000 1.319
+++ tree.c 22 Jul 2003 22:57:56 -0000
@@ -55,7 +55,7 @@
int tree_node_counts[(int) all_kinds];
int tree_node_sizes[(int) all_kinds];
-/* Keep in sync with tree.h:enum tree_node_kind. */
+/* Keep in sync with tree.h:enum tree_node_kind. */
static const char * const tree_node_kind_names[] = {
"decls",
"types",
Index: tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.428
diff -u -r1.428 tree.h
--- tree.h 18 Jul 2003 00:26:51 -0000 1.428
+++ tree.h 22 Jul 2003 22:57:57 -0000
@@ -3021,7 +3021,7 @@
#define abort() fancy_abort (__FILE__, __LINE__, __FUNCTION__)
/* Enum and arrays used for tree allocation stats.
- Keep in sync with tree.c:tree_node_kind_names. */
+ Keep in sync with tree.c:tree_node_kind_names. */
typedef enum
{
d_kind,
More information about the Gcc-patches
mailing list