This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] gcc: Fix comment formatting.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 15 Jan 2004 20:44:58 -0500 (EST)
- Subject: [patch] gcc: Fix comment formatting.
Hi,
Attached is a patch to fix comment formatting. Committed as obvious.
Kazu Hirata
2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
* c-common.h: Fix comment formatting.
* c-cppbuiltin.c: Likewise.
* c-pragma.c: Likewise.
* calls.c: Likewise.
* collect2.c: Likewise.
* cppcharset.c: Likewise.
* cpptrad.c: Likewise.
* dbxout.c: Likewise.
* defaults.h: Likewise.
* dwarf2out.c: Likewise.
* fold-const.c: Likewise.
* genautomata.c: Likewise.
* genconditions.c: Likewise.
* genflags.c: Likewise.
* gengtype.c: Likewise.
* integrate.c: Likewise.
* loop.c: Likewise.
* predict.c: Likewise.
* sdbout.c: Likewise.
Index: c-common.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-common.h,v
retrieving revision 1.215
diff -u -r1.215 c-common.h
--- c-common.h 9 Jan 2004 19:54:53 -0000 1.215
+++ c-common.h 16 Jan 2004 01:36:53 -0000
@@ -222,7 +222,8 @@
extern GTY(()) tree c_global_trees[CTI_MAX];
-/* In a RECORD_TYPE, a sorted array of the fields of the type, not a tree for size reasons. */
+/* In a RECORD_TYPE, a sorted array of the fields of the type, not a
+ tree for size reasons. */
struct sorted_fields_type GTY(())
{
int len;
Index: c-cppbuiltin.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-cppbuiltin.c,v
retrieving revision 1.15
diff -u -r1.15 c-cppbuiltin.c
--- c-cppbuiltin.c 23 Dec 2003 16:53:46 -0000 1.15
+++ c-cppbuiltin.c 16 Jan 2004 01:36:53 -0000
@@ -308,7 +308,7 @@
if (flag_exceptions)
cpp_define (pfile, "__EXCEPTIONS");
- /* represents the C++ ABI version, always defined so it can be used while
+ /* Represents the C++ ABI version, always defined so it can be used while
preprocessing C and assembler. */
if (flag_abi_version == 0)
/* Use a very large value so that:
@@ -324,7 +324,7 @@
"102". */
builtin_define_with_int_value ("__GXX_ABI_VERSION", 102);
else
- /* Newer versions have values 1002, 1003, ... */
+ /* Newer versions have values 1002, 1003, .... */
builtin_define_with_int_value ("__GXX_ABI_VERSION",
1000 + flag_abi_version);
Index: c-pragma.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-pragma.c,v
retrieving revision 1.65
diff -u -r1.65 c-pragma.c
--- c-pragma.c 13 Nov 2003 02:07:52 -0000 1.65
+++ c-pragma.c 16 Jan 2004 01:36:54 -0000
@@ -273,7 +273,7 @@
}
if (SUPPORTS_WEAK && DECL_EXTERNAL (decl) && TREE_USED (decl)
- && !DECL_WEAK (decl) /* don't complain about a redundant #pragma */
+ && !DECL_WEAK (decl) /* Don't complain about a redundant #pragma. */
&& TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)))
warning ("%Japplying #pragma weak '%D' after first use results "
"in unspecified behavior", decl, decl);
Index: calls.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/calls.c,v
retrieving revision 1.314
diff -u -r1.314 calls.c
--- calls.c 15 Jan 2004 14:58:06 -0000 1.314
+++ calls.c 16 Jan 2004 01:36:56 -0000
@@ -4691,7 +4691,7 @@
if (XEXP (x, 0) != current_function_internal_arg_pointer)
i = INTVAL (XEXP (XEXP (x, 0), 1));
- /* expand_call should ensure this */
+ /* expand_call should ensure this. */
if (arg->locate.offset.var || GET_CODE (size_rtx) != CONST_INT)
abort ();
Index: collect2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/collect2.c,v
retrieving revision 1.158
diff -u -r1.158 collect2.c
--- collect2.c 21 Dec 2003 14:08:32 -0000 1.158
+++ collect2.c 16 Jan 2004 01:36:57 -0000
@@ -2402,7 +2402,7 @@
if (debug)
fprintf (stderr, "\n");
- /* now iterate through the library list adding their symbols to
+ /* Now iterate through the library list adding their symbols to
the list. */
for (list = libraries.first; list; list = list->next)
scan_prog_file (list->name, PASS_LIB);
@@ -2538,7 +2538,7 @@
signal (SIGQUIT, quit_handler);
#endif
- /* now iterate through the library list adding their symbols to
+ /* Now iterate through the library list adding their symbols to
the list. */
for (list = libraries.first; list; list = list->next)
scan_prog_file (list->name, PASS_LIB);
@@ -2705,7 +2705,7 @@
char *name;
if ((name = ldgetname (ldptr, &symbol)) == NULL)
- continue; /* should never happen */
+ continue; /* Should never happen. */
#ifdef XCOFF_DEBUGGING_INFO
/* All AIX function names have a duplicate entry
Index: cppcharset.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cppcharset.c,v
retrieving revision 1.16
diff -u -r1.16 cppcharset.c
--- cppcharset.c 1 Nov 2003 22:56:47 -0000 1.16
+++ cppcharset.c 16 Jan 2004 01:36:58 -0000
@@ -887,7 +887,7 @@
struct cset_converter cvt
= wide ? pfile->wide_cset_desc : pfile->narrow_cset_desc;
- from++; /* skip u/U */
+ from++; /* Skip u/U. */
ucn = _cpp_valid_ucn (pfile, &from, limit, 0);
rval = one_cppchar_to_utf8 (ucn, &bufp, &bytesleft);
@@ -966,7 +966,7 @@
cpp_error (pfile, CPP_DL_WARNING,
"the meaning of '\\x' is different in traditional C");
- from++; /* skip 'x' */
+ from++; /* Skip 'x'. */
while (from < limit)
{
c = *from;
@@ -1148,8 +1148,8 @@
{
p = from[i].text;
if (*p == 'L') p++;
- p++; /* skip leading quote */
- limit = from[i].text + from[i].len - 1; /* skip trailing quote */
+ p++; /* Skip leading quote. */
+ limit = from[i].text + from[i].len - 1; /* Skip trailing quote. */
for (;;)
{
Index: cpptrad.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cpptrad.c,v
retrieving revision 1.40
diff -u -r1.40 cpptrad.c
--- cpptrad.c 12 Dec 2003 07:00:26 -0000 1.40
+++ cpptrad.c 16 Jan 2004 01:36:59 -0000
@@ -361,7 +361,7 @@
pfile->out.cur = pfile->out.base;
pfile->out.first_line = pfile->line;
/* start_of_input_line is needed to make sure that directives really,
- really start at the first character of the line. */
+ really start at the first character of the line. */
start_of_input_line = pfile->buffer->cur;
new_context:
context = pfile->context;
Index: dbxout.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dbxout.c,v
retrieving revision 1.171
diff -u -r1.171 dbxout.c
--- dbxout.c 13 Jan 2004 20:12:35 -0000 1.171
+++ dbxout.c 16 Jan 2004 01:37:00 -0000
@@ -2349,7 +2349,7 @@
}
else if (TREE_CODE (TREE_TYPE (decl)) == REAL_TYPE)
{
- /* don't know how to do this yet. */
+ /* Don't know how to do this yet. */
}
break;
}
Index: defaults.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/defaults.h,v
retrieving revision 1.122
diff -u -r1.122 defaults.h
--- defaults.h 31 Dec 2003 23:02:44 -0000 1.122
+++ defaults.h 16 Jan 2004 01:37:00 -0000
@@ -86,7 +86,7 @@
} while (0)
#endif
-/* choose a reasonable default for ASM_OUTPUT_ASCII. */
+/* Choose a reasonable default for ASM_OUTPUT_ASCII. */
#ifndef ASM_OUTPUT_ASCII
#define ASM_OUTPUT_ASCII(MYFILE, MYSTRING, MYLENGTH) \
Index: dwarf2out.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarf2out.c,v
retrieving revision 1.475
diff -u -r1.475 dwarf2out.c
--- dwarf2out.c 14 Jan 2004 21:12:02 -0000 1.475
+++ dwarf2out.c 16 Jan 2004 01:37:06 -0000
@@ -11916,7 +11916,7 @@
dw_die_ref context_die = setup_namespace_context (decl, comp_unit_die);
/* Namespace aliases have a DECL_ABSTRACT_ORIGIN of the namespace
- they are an alias of. */
+ they are an alias of. */
if (DECL_ABSTRACT_ORIGIN (decl) == NULL)
{
/* Output a real namespace. */
Index: fold-const.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fold-const.c,v
retrieving revision 1.321
diff -u -r1.321 fold-const.c
--- fold-const.c 6 Jan 2004 16:51:13 -0000 1.321
+++ fold-const.c 16 Jan 2004 01:37:10 -0000
@@ -798,7 +798,7 @@
abort ();
}
- /* compute true remainder: rem = num - (quo * den) */
+ /* Compute true 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: genautomata.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/genautomata.c,v
retrieving revision 1.54
diff -u -r1.54 genautomata.c
--- genautomata.c 13 Jan 2004 19:52:23 -0000 1.54
+++ genautomata.c 16 Jan 2004 01:37:13 -0000
@@ -8666,7 +8666,7 @@
{
decl = description->decls[i];
if (DECL_INSN_RESERV (decl)->default_latency > UCHAR_MAX
- && tabletype[0] != 'i') /* don't shrink it */
+ && tabletype[0] != 'i') /* Don't shrink it. */
tabletype = "unsigned short";
if (DECL_INSN_RESERV (decl)->default_latency > USHRT_MAX)
tabletype = "int";
Index: genconditions.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/genconditions.c,v
retrieving revision 1.6
diff -u -r1.6 genconditions.c
--- genconditions.c 19 Jul 2003 14:47:06 -0000 1.6
+++ genconditions.c 16 Jan 2004 01:37:14 -0000
@@ -35,7 +35,7 @@
#include "hashtab.h"
#include "gensupport.h"
-/* so we can include except.h in the generated file */
+/* so we can include except.h in the generated file. */
static int saw_eh_return;
static htab_t condition_table;
Index: genflags.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/genflags.c,v
retrieving revision 1.48
diff -u -r1.48 genflags.c
--- genflags.c 7 Jul 2003 19:11:55 -0000 1.48
+++ genflags.c 16 Jan 2004 01:37:14 -0000
@@ -209,7 +209,7 @@
max_id_len = len;
if (truth == 0)
- /* emit nothing */;
+ /* Emit nothing. */;
else if (truth == 1)
printf ("#define HAVE_%s 1\n", name);
else
Index: gengtype.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gengtype.c,v
retrieving revision 1.42
diff -u -r1.42 gengtype.c
--- gengtype.c 11 Dec 2003 00:20:41 -0000 1.42
+++ gengtype.c 16 Jan 2004 01:37:15 -0000
@@ -1947,7 +1947,7 @@
d.bitmap = s->u.s.bitmap;
d.param = param;
d.prev_val[0] = "*x";
- d.prev_val[1] = "not valid postage"; /* guarantee an error */
+ d.prev_val[1] = "not valid postage"; /* Guarantee an error. */
d.prev_val[3] = "x";
d.val = "(*x)";
@@ -2200,7 +2200,7 @@
d.bitmap = s->u.s.bitmap;
d.param = param;
d.prev_val[0] = d.prev_val[2] = "*x";
- d.prev_val[1] = "not valid postage"; /* guarantee an error */
+ d.prev_val[1] = "not valid postage"; /* Guarantee an error. */
d.prev_val[3] = "x";
d.val = "(*x)";
Index: integrate.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/integrate.c,v
retrieving revision 1.243
diff -u -r1.243 integrate.c
--- integrate.c 14 Jan 2004 20:05:27 -0000 1.243
+++ integrate.c 16 Jan 2004 01:37:17 -0000
@@ -1421,7 +1421,7 @@
gen_rtx_MEM (GET_MODE (static_chain_incoming_rtx),
SET_DEST (set));
- /* emit the instruction in case it is used for something
+ /* Emit the instruction in case it is used for something
other than setting the static chain; if it's not used,
it can always be removed as dead code */
copy = emit_insn (copy_rtx_and_substitute (pattern, map, 0));
Index: loop.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/loop.c,v
retrieving revision 1.487
diff -u -r1.487 loop.c
--- loop.c 14 Jan 2004 20:05:28 -0000 1.487
+++ loop.c 16 Jan 2004 01:37:22 -0000
@@ -8105,7 +8105,7 @@
&& (INTVAL (bl->initial_value)
% (-INTVAL (bl->biv->add_val))) == 0)
{
- /* register always nonnegative, add REG_NOTE to branch */
+ /* Register always nonnegative, add REG_NOTE to branch. */
if (! find_reg_note (jump, REG_NONNEG, NULL_RTX))
REG_NOTES (jump)
= gen_rtx_EXPR_LIST (REG_NONNEG, bl->biv->dest_reg,
Index: predict.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/predict.c,v
retrieving revision 1.97
diff -u -r1.97 predict.c
--- predict.c 2 Jan 2004 22:44:27 -0000 1.97
+++ predict.c 16 Jan 2004 01:37:22 -0000
@@ -468,7 +468,7 @@
/ exits);
}
- /* Free basic blocks from get_loop_body. */
+ /* Free basic blocks from get_loop_body. */
free (bbs);
}
Index: sdbout.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/sdbout.c,v
retrieving revision 1.81
diff -u -r1.81 sdbout.c
--- sdbout.c 11 Oct 2003 19:00:49 -0000 1.81
+++ sdbout.c 16 Jan 2004 01:37:23 -0000
@@ -1159,7 +1159,7 @@
}
}
- /* output the individual fields */
+ /* Output the individual fields. */
if (TREE_CODE (type) == ENUMERAL_TYPE)
{
@@ -1206,7 +1206,7 @@
}
PUT_SDB_ENDEF;
}
- /* output end of a structure,union, or enumeral definition */
+ /* Output end of a structure,union, or enumeral definition. */
PUT_SDB_PLAIN_DEF ("eos");
PUT_SDB_INT_VAL (size);