This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] avr.*: Fix comment formatting.


Hi,

Attached is a patch to fix comment formatting.  Committed as obvious.

Kazu Hirata

2003-12-24  Kazu Hirata  <kazu@cs.umass.edu>

	* config/avr/avr.c: Fix comment formatting.
	* config/avr/avr.md: Likewise.

Index: avr.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/avr/avr.c,v
retrieving revision 1.104
diff -u -r1.104 avr.c
--- avr.c	24 Dec 2003 20:39:30 -0000	1.104
+++ avr.c	24 Dec 2003 22:10:15 -0000
@@ -78,7 +78,7 @@
 static bool avr_rtx_costs (rtx, int, int, int *);
 static int avr_address_cost (rtx);
 
-/* Allocate registers from r25 to r8 for parameters for function calls */
+/* Allocate registers from r25 to r8 for parameters for function calls.  */
 #define FIRST_CUM_REG 26
 
 /* Temporary register RTX (gen_rtx (REG,QImode,TMP_REGNO)) */
@@ -276,7 +276,7 @@
   zero_reg_rtx = gen_rtx_REG (QImode, ZERO_REGNO);
 }
 
-/*  return register class from register number */
+/*  return register class from register number.  */
 
 static const int reg_class_tab[]={
   GENERAL_REGS,GENERAL_REGS,GENERAL_REGS,GENERAL_REGS,GENERAL_REGS,
@@ -292,7 +292,7 @@
   STACK_REG,STACK_REG           /* SPL,SPH */
 };
 
-/* Return register class for register R */
+/* Return register class for register R.  */
 
 enum reg_class
 avr_regno_reg_class (int r)
@@ -415,7 +415,7 @@
   return count;
 }
 
-/* Compute offset between arg_pointer and frame_pointer */
+/* Compute offset between arg_pointer and frame_pointer.  */
 
 int
 initial_elimination_offset (int from, int to)
@@ -446,7 +446,7 @@
 	  && ! TREE_THIS_VOLATILE (current_function_decl));
 }
 
-/* This function checks sequence of live registers */
+/* This function checks sequence of live registers.  */
 
 static int
 sequent_regs_live (void)
@@ -603,7 +603,7 @@
 }
 
 
-/* Output function prologue */
+/* Output function prologue.  */
 
 static void
 avr_output_function_prologue (FILE *file, HOST_WIDE_INT size)
@@ -733,7 +733,7 @@
   fprintf (file, "/* prologue end (size=%d) */\n", prologue_size);
 }
 
-/* Output function epilogue */
+/* Output function epilogue.  */
 
 static void
 avr_output_function_epilogue (FILE *file, HOST_WIDE_INT size)
@@ -980,7 +980,7 @@
 }
 
 
-/* Return a pointer register name as a string */
+/* Return a pointer register name as a string.  */
 
 static const char *
 ptrreg_to_str (int regno)
@@ -1027,7 +1027,7 @@
     }
 }
 
-/* Output ADDR to FILE as address */
+/* Output ADDR to FILE as address.  */
 
 void
 print_operand_address (FILE *file, rtx addr)
@@ -1061,7 +1061,7 @@
 }
 
 
-/* Output X as assembler operand to file FILE */
+/* Output X as assembler operand to file FILE.  */
      
 void
 print_operand (FILE *file, rtx x, int code)
@@ -1132,7 +1132,7 @@
     print_operand_address (file, x);
 }
 
-/* Recognize operand OP of mode MODE used in call instructions */
+/* Recognize operand OP of mode MODE used in call instructions.  */
 
 int
 call_insn_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
@@ -1454,7 +1454,7 @@
 }
 
 /* Controls whether a function argument is passed
-   in a register, and which register. */
+   in a register, and which register.  */
 
 rtx
 function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode, tree type,
@@ -2592,7 +2592,7 @@
   return "";
 }
 
-/* Return 1 if frame pointer for current function required */
+/* Return 1 if frame pointer for current function required.  */
 
 int
 frame_pointer_required_p (void)
@@ -2648,7 +2648,7 @@
 }
 
 
-/* Output test instruction for HImode */
+/* Output test instruction for HImode.  */
 
 const char *
 out_tsthi (rtx insn, int *l)
@@ -2661,7 +2661,7 @@
   if (reg_unused_after (insn, SET_SRC (PATTERN (insn)))
       && compare_eq_p (insn))
     {
-      /* faster than sbiw if we can clobber the operand */
+      /* Faster than sbiw if we can clobber the operand.  */
       if (l) *l = 1;
       return AS2 (or,%A0,%B0);
     }
@@ -2676,7 +2676,7 @@
 }
 
 
-/* Output test instruction for SImode */
+/* Output test instruction for SImode.  */
 
 const char *
 out_tstsi (rtx insn, int *l)
@@ -4215,7 +4215,7 @@
   return len;
 }
 
-/* Return nonzero if register REG dead after INSN */
+/* Return nonzero if register REG dead after INSN. */
 
 int
 reg_unused_after (rtx insn, rtx reg)
@@ -4346,7 +4346,7 @@
   return default_assemble_integer (x, size, aligned_p);
 }
 
-/* Sets section name for declaration DECL */
+/* Sets section name for declaration DECL.  */
   
 static void
 avr_unique_section (tree decl, int reloc ATTRIBUTE_UNUSED)
@@ -4838,7 +4838,7 @@
     }
 }
 
-/* Calculate the cost of a memory address */
+/* Calculate the cost of a memory address.  */
 
 static int
 avr_address_cost (rtx x)
@@ -4903,7 +4903,7 @@
   return 0;
 }
 
-/* Convert condition code CONDITION to the valid AVR condition code */
+/* Convert condition code CONDITION to the valid AVR condition code.  */
 
 RTX_CODE
 avr_normalize_condition (RTX_CODE condition)
@@ -4948,7 +4948,7 @@
 	{
 	  if (GET_CODE (SET_SRC (pattern)) == COMPARE)
 	    {
-	      /* Now we work under compare insn */
+	      /* Now we work under compare insn.  */
 	      
 	      pattern = SET_SRC (pattern);
 	      if (true_regnum (XEXP (pattern,0)) >= 0
Index: avr.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/avr/avr.md,v
retrieving revision 1.41
diff -u -r1.41 avr.md
--- avr.md	27 Sep 2003 04:48:14 -0000	1.41
+++ avr.md	24 Dec 2003 22:10:16 -0000
@@ -178,7 +178,7 @@
   [(set (match_operand:QI 0 "nonimmediate_operand" "")
 	(match_operand:QI 1 "general_operand" ""))]
   ""
-  "/* One of the ops has to be in a register */
+  "/* One of the ops has to be in a register.  */
    if (!register_operand(operand0, QImode)
        && ! (register_operand(operand1, QImode) || const0_rtx == operand1))
        operands[1] = copy_to_mode_reg(QImode, operand1);
@@ -226,7 +226,7 @@
   ""
   "
 {
-   /* One of the ops has to be in a register */
+   /* One of the ops has to be in a register.  */
   if (!register_operand(operand0, HImode)
       && !(register_operand(operand1, HImode) || const0_rtx == operands[1]))
     {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]