[patch] [s-z]*.c: Fix comment formatting.

Kazu Hirata kazu@hxi.com
Fri Aug 17 11:56:00 GMT 2001


Hi,

Attached is a patch to fix comment formatting of [s-z]*.c.  OK to
apply?

Thanks,

Kazu Hirata

2001-08-17  Kazu Hirata  <kazu@hxi.com>

	* sbitmap.c: Fix comment formatting.
	* sched-deps.c: Likewise.
	* sibcall.c: Likewise.
	* simplify-rtx.c: Likewise.
	* ssa.c: Likewise.
	* ssa-ccp.c: Likewise.
	* stor-layout.c: Likewise.
	* timevar.c: Likewise.
	* toplev.c: Likewise.
	* unwind-dw2.c: Likewise.
	* unwind-dw2-fde.c: Likewise.
	* varasm.c: Likewise.

Index: sbitmap.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/sbitmap.c,v
retrieving revision 1.15
diff -u -r1.15 sbitmap.c
--- sbitmap.c	2001/07/29 18:21:08	1.15
+++ sbitmap.c	2001/08/17 18:52:41
@@ -99,7 +99,7 @@
   memcpy (dst->elms, src->elms, sizeof (SBITMAP_ELT_TYPE) * dst->size);
 }
 
-/* Determine if a == b. */
+/* Determine if a == b.  */
 int
 sbitmap_equal (a, b)
      sbitmap a, b;
@@ -238,7 +238,7 @@
 }
 
 /* Set DST to be (A xor B)).
-   Return non-zero if any change is made. */
+   Return non-zero if any change is made.  */
 
 int
 sbitmap_a_xor_b (dst, a, b)
Index: sched-deps.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/sched-deps.c,v
retrieving revision 1.21
diff -u -r1.21 sched-deps.c
--- sched-deps.c	2001/08/08 10:36:07	1.21
+++ sched-deps.c	2001/08/17 18:52:43
@@ -63,7 +63,7 @@
    Each insn has associated bitmaps for its dependencies.  Each bitmap
    has enough entries to represent a dependency on any other insn in
    the insn chain.  All bitmap for true dependencies cache is
-   allocated then the rest two ones are also allocated. */
+   allocated then the rest two ones are also allocated.  */
 static sbitmap *true_dependency_cache;
 static sbitmap *anti_dependency_cache;
 static sbitmap *output_dependency_cache;
@@ -71,7 +71,7 @@
 /* To speed up checking consistency of formed forward insn
    dependencies we use the following cache.  Another possible solution
    could be switching off checking duplication of insns in forward
-   dependencies. */
+   dependencies.  */
 #ifdef ENABLE_CHECKING
 static sbitmap *forward_dependency_cache;
 #endif
@@ -299,7 +299,7 @@
 	{
 #ifdef INSN_SCHEDULING
 	  /* Clear corresponding cache entry because type of the link
-             may be changed. */
+             may be changed.  */
 	  if (true_dependency_cache != NULL)
 	    {
 	      if (REG_NOTE_KIND (link) == REG_DEP_ANTI)
@@ -321,7 +321,7 @@
 	  
 #ifdef INSN_SCHEDULING
 	  /* If we are adding a dependency to INSN's LOG_LINKs, then
-	     note that in the bitmap caches of dependency information. */
+	     note that in the bitmap caches of dependency information.  */
 	  if (true_dependency_cache != NULL)
 	    {
 	      if ((int)REG_NOTE_KIND (link) == 0)
@@ -347,7 +347,7 @@
 
 #ifdef INSN_SCHEDULING
   /* If we are adding a dependency to INSN's LOG_LINKs, then note that
-     in the bitmap caches of dependency information. */
+     in the bitmap caches of dependency information.  */
   if (true_dependency_cache != NULL)
     {
       if ((int)dep_type == 0)
Index: sibcall.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/sibcall.c,v
retrieving revision 1.22
diff -u -r1.22 sibcall.c
--- sibcall.c	2001/08/08 19:09:11	1.22
+++ sibcall.c	2001/08/17 18:52:53
@@ -408,7 +408,7 @@
   if (code == MEM)
     return 0;
 
-  /* Scan all subexpressions. */
+  /* Scan all subexpressions.  */
   fmt = GET_RTX_FORMAT (code);
   for (i = 0; i < GET_RTX_LENGTH (code); i++, fmt++)
     {
@@ -518,7 +518,7 @@
       return;
     }
 
-  /* Scan all subexpressions. */
+  /* Scan all subexpressions.  */
   fmt = GET_RTX_FORMAT (code);
   for (i = 0; i < GET_RTX_LENGTH (code); i++, fmt++)
     {
@@ -553,7 +553,7 @@
   if (XEXP (PATTERN (insn), 3))
     LABEL_PRESERVE_P (XEXP (PATTERN (insn), 3)) = 0;
   
-  /* "Delete" the placeholder insn. */
+  /* "Delete" the placeholder insn.  */
   PUT_CODE (insn, NOTE);
   NOTE_SOURCE_FILE (insn) = 0;
   NOTE_LINE_NUMBER (insn) = NOTE_INSN_DELETED;
@@ -703,7 +703,7 @@
 	      || (call_block->succ->dest != EXIT_BLOCK_PTR
 		  && call_block->succ->dest != alternate_exit)
 	      /* If this call doesn't end the block, there are operations at
-		 the end of the block which we must execute after returning. */
+		 the end of the block which we must execute after returning.  */
 	      || ! call_ends_block_p (insn, call_block->end))
 	    sibcall = 0, tailrecursion = 0;
 
Index: simplify-rtx.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/simplify-rtx.c,v
retrieving revision 1.76
diff -u -r1.76 simplify-rtx.c
--- simplify-rtx.c	2001/08/13 15:52:21	1.76
+++ simplify-rtx.c	2001/08/17 18:52:56
@@ -2415,7 +2415,7 @@
       /* The SUBREG_BYTE represents offset, as if the value were stored
 	 in memory.  Irritating exception is paradoxical subreg, where
 	 we define SUBREG_BYTE to be 0.  On big endian machines, this
-	 value should be negative.  For a moment, undo this exception. */
+	 value should be negative.  For a moment, undo this exception.  */
       if (byte == 0 && GET_MODE_SIZE (innermode) < GET_MODE_SIZE (outermode))
 	{
 	  int difference = (GET_MODE_SIZE (innermode) - GET_MODE_SIZE (outermode));
@@ -2538,7 +2538,7 @@
       res = simplify_subreg (outermode, part, GET_MODE (part), final_offset);
       if (res)
 	return res;
-      /* We can at least simplify it by referring directly to the relevent part. */
+      /* We can at least simplify it by referring directly to the relevent part.  */
       return gen_rtx_SUBREG (outermode, part, final_offset);
     }
 
Index: ssa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ssa.c,v
retrieving revision 1.33
diff -u -r1.33 ssa.c
--- ssa.c	2001/07/25 14:41:35	1.33
+++ ssa.c	2001/08/17 18:52:59
@@ -786,7 +786,7 @@
       if (r->prev_reg == NULL_RTX && !HARD_REGISTER_P (r->old_reg))
 	{
 	  r->new_reg = r->old_reg;
-	  /* We want to restore RENAME_NO_RTX rather than NULL_RTX. */
+	  /* We want to restore RENAME_NO_RTX rather than NULL_RTX.  */
 	  r->prev_reg = RENAME_NO_RTX;
 	}
       else
@@ -1602,14 +1602,14 @@
 		    abort ();
 
 		  /* If the alternatives aren't already in the same
-		     class ... */
+		     class ...  */
 		  if (partition_find (reg_partition, REGNO (*alt)) 
 		      != partition_find (reg_partition, REGNO (*alt2)))
 		    {
 		      /* ... make them so.  */
 		      if (conflicting_hard_regs_p (REGNO (*alt), REGNO (*alt2)))
 			/* It is illegal to unify a hard register with
-			   a different register. */
+			   a different register.  */
 			abort ();
 
 		      partition_union (reg_partition, 
@@ -1698,7 +1698,7 @@
 {
   int reg;
 
-  /* Work only on SSA registers. */
+  /* Work only on SSA registers.  */
   if (!CONVERT_REGISTER_TO_SSA_P (reg1) || !CONVERT_REGISTER_TO_SSA_P (reg2))
     return 0;
 
Index: ssa-ccp.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ssa-ccp.c,v
retrieving revision 1.5
diff -u -r1.5 ssa-ccp.c
--- ssa-ccp.c	2001/07/25 14:23:08	1.5
+++ ssa-ccp.c	2001/08/17 18:53:00
@@ -673,7 +673,7 @@
 	  /* If we haven't looked at the next block, and it has a
 	     single successor, add it onto the worklist.  This is because
 	     if we only have one successor, we know it gets executed,
-	     so we don't have to wait for cprop to tell us. */
+	     so we don't have to wait for cprop to tell us.  */
 	  if (succ_edge != NULL
 	      && succ_edge->succ_next == NULL
 	      && !TEST_BIT (executable_edges,
Index: stor-layout.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/stor-layout.c,v
retrieving revision 1.101
diff -u -r1.101 stor-layout.c
--- stor-layout.c	2001/08/16 13:46:37	1.101
+++ stor-layout.c	2001/08/17 18:53:06
@@ -274,7 +274,7 @@
       if (mode == BLKmode)
         break;
 
-      /* ... fall through ... */
+      /* ... fall through ...  */
 
     case MODE_CC:
     default:
@@ -1303,11 +1303,11 @@
 	 of the language-specific code.  */
       abort ();
 
-    case BOOLEAN_TYPE:  /* Used for Java, Pascal, and Chill. */
+    case BOOLEAN_TYPE:  /* Used for Java, Pascal, and Chill.  */
       if (TYPE_PRECISION (type) == 0)
-	TYPE_PRECISION (type) = 1; /* default to one byte/boolean. */
+	TYPE_PRECISION (type) = 1; /* default to one byte/boolean.  */
 
-      /* ... fall through ... */
+      /* ... fall through ...  */
 
     case INTEGER_TYPE:
     case ENUMERAL_TYPE:
@@ -1525,7 +1525,7 @@
       }
       break;
 
-    case SET_TYPE:  /* Used by Chill and Pascal. */
+    case SET_TYPE:  /* Used by Chill and Pascal.  */
       if (TREE_CODE (TYPE_MAX_VALUE (TYPE_DOMAIN (type))) != INTEGER_CST
 	  || TREE_CODE (TYPE_MIN_VALUE (TYPE_DOMAIN (type))) != INTEGER_CST)
 	abort();
Index: timevar.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/timevar.c,v
retrieving revision 1.14
diff -u -r1.14 timevar.c
--- timevar.c	2001/08/17 01:27:49	1.14
+++ timevar.c	2001/08/17 18:53:06
@@ -113,7 +113,7 @@
 
 /* See timevar.h for an explanation of timing variables.  */
 
-/* This macro evaluates to non-zero if timing variables are enabled. */
+/* This macro evaluates to non-zero if timing variables are enabled.  */
 #define TIMEVAR_ENABLE (time_report)
 
 /* A timing variable.  */
@@ -279,7 +279,7 @@
     timevar_accumulate (&stack->timevar->elapsed, &start_time, &now);
 
   /* Reset the start time; from now on, time is attributed to
-     TIMEVAR. */
+     TIMEVAR.  */
   start_time = now;
 
   /* See if we have a previously-allocated stack instance.  If so,
@@ -441,7 +441,7 @@
     timevar_accumulate (&stack->timevar->elapsed, &start_time, &now);
 
   /* Reset the start time; from now on, time is attributed to
-     TIMEVAR. */
+     TIMEVAR.  */
   start_time = now;
 
   fputs (_("\nExecution times (seconds)\n"), fp);
Index: toplev.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/toplev.c,v
retrieving revision 1.505
diff -u -r1.505 toplev.c
--- toplev.c	2001/08/12 01:56:08	1.505
+++ toplev.c	2001/08/17 18:53:11
@@ -2902,7 +2902,7 @@
 
       if (flag_ssa_dce)
 	{
-	  /* Remove dead code. */
+	  /* Remove dead code.  */
 
 	  timevar_push (TV_SSA_DCE);
 	  open_dump_file (DFI_ssa_dce, decl);
Index: unwind-dw2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/unwind-dw2.c,v
retrieving revision 1.5
diff -u -r1.5 unwind-dw2.c
--- unwind-dw2.c	2001/07/19 18:20:48	1.5
+++ unwind-dw2.c	2001/08/17 18:53:18
@@ -291,7 +291,7 @@
 execute_stack_op (const unsigned char *op_ptr, const unsigned char *op_end,
 		  struct _Unwind_Context *context, _Unwind_Word initial)
 {
-  _Unwind_Word stack[64];	/* ??? Assume this is enough. */
+  _Unwind_Word stack[64];	/* ??? Assume this is enough.  */
   int stack_elt;
 
   stack[0] = initial;
Index: unwind-dw2-fde.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/unwind-dw2-fde.c,v
retrieving revision 1.8
diff -u -r1.8 unwind-dw2-fde.c
--- unwind-dw2-fde.c	2001/08/01 19:18:42	1.8
+++ unwind-dw2-fde.c	2001/08/17 18:53:19
@@ -436,11 +436,11 @@
 {
   /* For a description of this algorithm, see:
      Samuel P. Harbison, Guy L. Steele Jr.: C, a reference manual, 2nd ed.,
-     p. 60-61. */
+     p. 60-61.  */
   fde ** a = erratic->array;
   /* A portion of the array is called a "heap" if for all i>=0:
      If i and 2i+1 are valid indices, then a[i] >= a[2i+1].
-     If i and 2i+2 are valid indices, then a[i] >= a[2i+2]. */
+     If i and 2i+2 are valid indices, then a[i] >= a[2i+2].  */
 #define SWAP(x,y) do { fde * tmp = x; x = y; y = tmp; } while (0)
   size_t n = erratic->count;
   size_t m = n;
@@ -448,7 +448,7 @@
 
   while (m > 0)
     {
-      /* Invariant: a[m..n-1] is a heap. */
+      /* Invariant: a[m..n-1] is a heap.  */
       m--;
       for (i = m; 2*i+1 < n; )
         {
@@ -470,7 +470,7 @@
     }
   while (n > 1)
     {
-      /* Invariant: a[0..n-1] is a heap. */
+      /* Invariant: a[0..n-1] is a heap.  */
       n--;
       SWAP (a[0], a[n]);
       for (i = 0; 2*i+1 < n; )
@@ -494,7 +494,7 @@
 #undef SWAP
 }
 
-/* Merge V1 and V2, both sorted, and put the result into V1. */
+/* Merge V1 and V2, both sorted, and put the result into V1.  */
 static inline void
 fde_merge (struct object *ob, fde_compare_t fde_compare,
 	   struct fde_vector *v1, struct fde_vector *v2)
Index: varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.196
diff -u -r1.196 varasm.c
--- varasm.c	2001/08/17 13:50:15	1.196
+++ varasm.c	2001/08/17 18:53:21
@@ -799,7 +799,7 @@
 		     "register name given for non-register variable `%s'");
 
   /* Specifying a section attribute on a variable forces it into a
-     non-.bss section, and thus it cannot be common. */
+     non-.bss section, and thus it cannot be common.  */
   if (TREE_CODE (decl) == VAR_DECL
       && DECL_SECTION_NAME (decl) != NULL_TREE
       && DECL_INITIAL (decl) == NULL_TREE
@@ -1747,7 +1747,7 @@
   {
     /* Round size up to multiple of BIGGEST_ALIGNMENT bits
        so that each uninitialized object starts on such a boundary.  */
-    /* Variable `rounded' might or might not be used in ASM_OUTPUT_LOCAL. */
+    /* Variable `rounded' might or might not be used in ASM_OUTPUT_LOCAL.  */
     int rounded ATTRIBUTE_UNUSED
       = ((size + (BIGGEST_ALIGNMENT / BITS_PER_UNIT) - 1)
 	 / (BIGGEST_ALIGNMENT / BITS_PER_UNIT)
@@ -2466,7 +2466,7 @@
       return const_hash (TREE_OPERAND (exp, 0)) * 7 + 2;
       
     default:
-      /* A language specific constant. Just hash the code. */
+      /* A language specific constant. Just hash the code.  */
       return (int) code % MAX_HASH_TABLE;
     }
 
@@ -4459,7 +4459,7 @@
 
      There is always a maximum of one element in the chain LINK for unions
      (even if the initializer in a source program incorrectly contains
-     more one). */
+     more one).  */
   for (link = CONSTRUCTOR_ELTS (exp);
        link;
        link = TREE_CHAIN (link),



More information about the Gcc-patches mailing list