This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] gcc/*.[ch]: Fix comment formatting.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 25 Sep 2004 10:37:07 -0400 (EDT)
- Subject: [patch] gcc/*.[ch]: Fix comment formatting.
Hi,
Committed as obvious.
Kazu Hirata
2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
* c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
Index: c-typeck.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-typeck.c,v
retrieving revision 1.379
diff -u -r1.379 c-typeck.c
--- c-typeck.c 24 Sep 2004 00:08:28 -0000 1.379
+++ c-typeck.c 25 Sep 2004 14:30:26 -0000
@@ -3321,7 +3321,7 @@
if (TREE_CODE (newrhs) == ERROR_MARK)
return error_mark_node;
- /* Scan operands */
+ /* Scan operands. */
result = build2 (MODIFY_EXPR, lhstype, lhs, newrhs);
TREE_SIDE_EFFECTS (result) = 1;
Index: defaults.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/defaults.h,v
retrieving revision 1.156
diff -u -r1.156 defaults.h
--- defaults.h 10 Sep 2004 10:44:45 -0000 1.156
+++ defaults.h 25 Sep 2004 14:30:27 -0000
@@ -248,7 +248,7 @@
#define TARGET_WEAK_NOT_IN_ARCHIVE_TOC 0
#endif
-/* This determines whether or not we need linkonce unwind information */
+/* This determines whether or not we need linkonce unwind information. */
#ifndef TARGET_USES_WEAK_UNWIND_INFO
#define TARGET_USES_WEAK_UNWIND_INFO 0
#endif
Index: dwarf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarf.h,v
retrieving revision 1.8
diff -u -r1.8 dwarf.h
--- dwarf.h 22 Aug 2001 14:35:01 -0000 1.8
+++ dwarf.h 25 Sep 2004 14:30:27 -0000
@@ -219,7 +219,7 @@
/* GNU extensions
The low order byte must indicate the size (in bytes) for the type.
- All of these types will probably break "classic" svr4 SDB */
+ All of these types will probably break "classic" svr4 SDB. */
FT_long_long = 0x8008,
FT_signed_long_long = 0x8108,
Index: dwarf2out.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarf2out.c,v
retrieving revision 1.548
diff -u -r1.548 dwarf2out.c
--- dwarf2out.c 23 Sep 2004 00:51:36 -0000 1.548
+++ dwarf2out.c 25 Sep 2004 14:30:34 -0000
@@ -12926,7 +12926,7 @@
return file_table_last_lookup_index;
}
- /* Didn't match the previous lookup, search the table */
+ /* Didn't match the previous lookup, search the table. */
n = VARRAY_ACTIVE_SIZE (file_table);
for (i = 1; i < n; i++)
if (strcmp (file_name, VARRAY_CHAR_PTR (file_table, i)) == 0)
@@ -13219,7 +13219,7 @@
abbrev_die_table = ggc_alloc_cleared (ABBREV_DIE_TABLE_INCREMENT
* sizeof (dw_die_ref));
abbrev_die_table_allocated = ABBREV_DIE_TABLE_INCREMENT;
- /* Zero-th entry is allocated, but unused */
+ /* Zero-th entry is allocated, but unused. */
abbrev_die_table_in_use = 1;
/* Allocate the initial hunk of the line_info_table. */
@@ -13227,7 +13227,7 @@
* sizeof (dw_line_info_entry));
line_info_table_allocated = LINE_INFO_TABLE_INCREMENT;
- /* Zero-th entry is allocated, but unused */
+ /* Zero-th entry is allocated, but unused. */
line_info_table_in_use = 1;
/* Generate the initial DIE for the .debug section. Note that the (string)
Index: fold-const.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fold-const.c,v
retrieving revision 1.463
diff -u -r1.463 fold-const.c
--- fold-const.c 23 Sep 2004 14:34:16 -0000 1.463
+++ fold-const.c 25 Sep 2004 14:30:40 -0000
@@ -6686,7 +6686,7 @@
TREE_OPERAND (arg0, 0),
build_real (type, c1)));
}
- /* Convert a + (b*c + d*e) into (a + b*c) + d*e */
+ /* Convert a + (b*c + d*e) into (a + b*c) + d*e. */
if (flag_unsafe_math_optimizations
&& TREE_CODE (arg1) == PLUS_EXPR
&& TREE_CODE (arg0) != MULT_EXPR)
@@ -6701,7 +6701,7 @@
return fold (build2 (PLUS_EXPR, type, tree0, tree11));
}
}
- /* Convert (b*c + d*e) + a into b*c + (d*e +a) */
+ /* Convert (b*c + d*e) + a into b*c + (d*e +a). */
if (flag_unsafe_math_optimizations
&& TREE_CODE (arg0) == PLUS_EXPR
&& TREE_CODE (arg1) != MULT_EXPR)
@@ -9569,7 +9569,7 @@
/* Return true when T is an address and is known to be nonzero.
For floating point we further ensure that T is not denormal.
- Similar logic is present in nonzero_address in rtlanal.h */
+ Similar logic is present in nonzero_address in rtlanal.h. */
static bool
tree_expr_nonzero_p (tree t)
Index: gthr-dce.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gthr-dce.h,v
retrieving revision 1.22
diff -u -r1.22 gthr-dce.h
--- gthr-dce.h 30 Aug 2004 16:36:46 -0000 1.22
+++ gthr-dce.h 25 Sep 2004 14:30:40 -0000
@@ -124,7 +124,7 @@
__gthread_objc_init_thread_system (void)
{
if (__gthread_active_p ())
- /* Initialize the thread storage key */
+ /* Initialize the thread storage key. */
return pthread_keycreate (&_objc_thread_storage, NULL);
else
return -1;
Index: gthr-posix.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gthr-posix.h,v
retrieving revision 1.30
diff -u -r1.30 gthr-posix.h
--- gthr-posix.h 30 Aug 2004 16:34:06 -0000 1.30
+++ gthr-posix.h 25 Sep 2004 14:30:40 -0000
@@ -143,7 +143,7 @@
{
if (__gthread_active_p ())
{
- /* Initialize the thread storage key */
+ /* Initialize the thread storage key. */
if (pthread_key_create (&_objc_thread_storage, NULL) == 0)
{
/* The normal default detach state for threads is
Index: gthr-solaris.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gthr-solaris.h,v
retrieving revision 1.16
diff -u -r1.16 gthr-solaris.h
--- gthr-solaris.h 28 Aug 2004 02:33:48 -0000 1.16
+++ gthr-solaris.h 25 Sep 2004 14:30:41 -0000
@@ -113,7 +113,7 @@
static inline int
__gthread_objc_init_thread_system (void)
{
- /* Initialize the thread storage key */
+ /* Initialize the thread storage key. */
if (__gthread_active_p ()
&& thr_keycreate (&_objc_thread_storage, NULL) == 0)
return 0;
Index: gthr-win32.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gthr-win32.h,v
retrieving revision 1.25
diff -u -r1.25 gthr-win32.h
--- gthr-win32.h 1 Sep 2004 23:18:53 -0000 1.25
+++ gthr-win32.h 25 Sep 2004 14:30:41 -0000
@@ -88,7 +88,7 @@
int
__gthread_objc_init_thread_system (void)
{
- /* Initialize the thread storage key */
+ /* Initialize the thread storage key. */
if ((__gthread_objc_data_tls = TlsAlloc ()) != (DWORD) -1)
return 0;
else
Index: lambda-code.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/lambda-code.c,v
retrieving revision 2.10
diff -u -r2.10 lambda-code.c
--- lambda-code.c 18 Sep 2004 19:47:09 -0000 2.10
+++ lambda-code.c 25 Sep 2004 14:30:42 -0000
@@ -644,7 +644,7 @@
Remember the constant are in our vector a, our coefficient matrix is A,
and our invariant coefficient matrix is B */
- /* Swap B and B1, and a1 and a */
+ /* Swap B and B1, and a1 and a. */
temp0 = B1;
B1 = B;
B = temp0;
@@ -806,10 +806,10 @@
/* Computes the gcd of the coefficients of the linear part. */
gcd1 = gcd_vector (target[i], i);
- /* Include the denominator in the GCD */
+ /* Include the denominator in the GCD. */
gcd1 = gcd (gcd1, determinant);
- /* Now divide through by the gcd */
+ /* Now divide through by the gcd. */
for (j = 0; j < i; j++)
target[i][j] = target[i][j] / gcd1;
@@ -822,7 +822,7 @@
LL_LINEAR_OFFSET (target_loop) = expression;
}
- /* For each loop, compute the new bounds from H */
+ /* For each loop, compute the new bounds from H. */
for (i = 0; i < depth; i++)
{
auxillary_loop = LN_LOOPS (auxillary_nest)[i];
Index: lambda-mat.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/lambda-mat.c,v
retrieving revision 2.7
diff -u -r2.7 lambda-mat.c
--- lambda-mat.c 16 Sep 2004 16:16:14 -0000 2.7
+++ lambda-mat.c 25 Sep 2004 14:30:42 -0000
@@ -602,9 +602,9 @@
lambda_matrix M1, M2, M3, I;
int determinant;
- /* compute c(I-B^T inv(B B^T) B) e sub k */
+ /* Compute c(I-B^T inv(B B^T) B) e sub k. */
- /* M1 is the transpose of B */
+ /* M1 is the transpose of B. */
M1 = lambda_matrix_new (colsize, colsize);
lambda_matrix_transpose (B, M1, rowsize, colsize);
Index: libgcc2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/libgcc2.c,v
retrieving revision 1.174
diff -u -r1.174 libgcc2.c
--- libgcc2.c 3 Aug 2004 16:57:40 -0000 1.174
+++ libgcc2.c 25 Sep 2004 14:30:44 -0000
@@ -489,16 +489,16 @@
{
if (a1 < d - a1 - (a0 >> (W_TYPE_SIZE - 1)))
{
- /* dividend, divisor, and quotient are nonnegative */
+ /* Dividend, divisor, and quotient are nonnegative. */
sdiv_qrnnd (q, r, a1, a0, d);
}
else
{
- /* Compute c1*2^32 + c0 = a1*2^32 + a0 - 2^31*d */
+ /* Compute c1*2^32 + c0 = a1*2^32 + a0 - 2^31*d. */
sub_ddmmss (c1, c0, a1, a0, d >> 1, d << (W_TYPE_SIZE - 1));
- /* Divide (c1*2^32 + c0) by d */
+ /* Divide (c1*2^32 + c0) by d. */
sdiv_qrnnd (q, r, c1, c0, d);
- /* Add 2^31 to quotient */
+ /* Add 2^31 to quotient. */
q += (UWtype) 1 << (W_TYPE_SIZE - 1);
}
}
Index: stmt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/stmt.c,v
retrieving revision 1.395
diff -u -r1.395 stmt.c
--- stmt.c 18 Sep 2004 05:50:43 -0000 1.395
+++ stmt.c 25 Sep 2004 14:30:46 -0000
@@ -701,7 +701,7 @@
/* Mark clobbered registers. */
if (i >= 0)
{
- /* Clobbering the PIC register is an error */
+ /* Clobbering the PIC register is an error. */
if (i == (int) PIC_OFFSET_TABLE_REGNUM)
{
error ("PIC register %qs clobbered in %<asm%>", regname);
Index: tree-ssa-pre.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-pre.c,v
retrieving revision 2.40
diff -u -r2.40 tree-ssa-pre.c
--- tree-ssa-pre.c 23 Sep 2004 20:15:30 -0000 2.40
+++ tree-ssa-pre.c 25 Sep 2004 14:30:47 -0000
@@ -856,7 +856,7 @@
if (is_gimple_min_invariant (expr))
return expr;
- /* Phi translations of a given expression don't change, */
+ /* Phi translations of a given expression don't change. */
phitrans = phi_trans_lookup (expr, pred);
if (phitrans)
return phitrans;
@@ -1199,7 +1199,7 @@
VEC_free (basic_block, worklist);
}
- /* Generate ANTIC_OUT - TMP_GEN */
+ /* Generate ANTIC_OUT - TMP_GEN. */
S = bitmap_set_subtract_from_value_set (ANTIC_OUT, TMP_GEN (block), false);
/* Start ANTIC_IN with EXP_GEN - TMP_GEN */
Index: tree-vn.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-vn.c,v
retrieving revision 2.5
diff -u -r2.5 tree-vn.c
--- tree-vn.c 9 Sep 2004 07:54:12 -0000 2.5
+++ tree-vn.c 25 Sep 2004 14:30:49 -0000
@@ -165,7 +165,7 @@
}
-/* Set the value handle for expression E to value V */
+/* Set the value handle for expression E to value V. */
static void
set_value_handle (tree e, tree v)
Index: tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.630
diff -u -r1.630 tree.h
--- tree.h 23 Sep 2004 20:15:30 -0000 1.630
+++ tree.h 25 Sep 2004 14:30:52 -0000
@@ -3251,11 +3251,11 @@
extern void add_var_to_bind_expr (tree, tree);
-/* integer_zerop (tree x) is nonzero if X is an integer constant of value 0 */
+/* integer_zerop (tree x) is nonzero if X is an integer constant of value 0. */
extern int integer_zerop (tree);
-/* integer_onep (tree x) is nonzero if X is an integer constant of value 1 */
+/* integer_onep (tree x) is nonzero if X is an integer constant of value 1. */
extern int integer_onep (tree);