This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] v850/*: Fix comment formatting.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 31 Dec 2003 12:22:43 -0500 (EST)
- Subject: [patch] v850/*: Fix comment formatting.
Hi,
Attached is a patch to fix comment formatting. Committed as obvious.
Kazu Hirata
2003-12-31 Kazu Hirata <kazu@cs.umass.edu>
* config/v850/lib1funcs.asm: Fix comment formatting.
* config/v850/v850.c: Likewise.
* config/v850/v850.h: Likewise.
* config/v850/v850.md: Likewise.
Index: lib1funcs.asm
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/v850/lib1funcs.asm,v
retrieving revision 1.16
diff -u -r1.16 lib1funcs.asm
--- lib1funcs.asm 13 Mar 2003 03:29:55 -0000 1.16
+++ lib1funcs.asm 31 Dec 2003 17:20:30 -0000
@@ -1170,8 +1170,8 @@
.align 2
.globl __save_r31
.type __save_r31,@function
- /* Allocate space and save register 31 on the stack */
- /* Also allocate space for the argument save area */
+ /* Allocate space and save register 31 on the stack. */
+ /* Also allocate space for the argument save area. */
/* Called via: jalr __save_r31,r10 */
__save_r31:
addi -20,sp,sp
@@ -1179,7 +1179,7 @@
jmp [r10]
.size __save_r31,.-__save_r31
- /* Restore saved registers, deallocate stack and return to the user */
+ /* Restore saved registers, deallocate stack and return to the user. */
/* Called via: jr __return_r31 */
.align 2
.globl __return_r31
@@ -1196,7 +1196,7 @@
.align 2
.globl __save_r6_r9
.type __save_r6_r9,@function
- /* Save registers 6 .. 9 on the stack for variable argument functions */
+ /* Save registers 6 .. 9 on the stack for variable argument functions. */
/* Called via: jalr __save_r6_r9,r10 */
__save_r6_r9:
mov ep,r1
@@ -1215,8 +1215,8 @@
.align 2
.globl __save_interrupt
.type __save_interrupt,@function
- /* Save registers r1, r4 on stack and load up with expected values */
- /* Note, 12 bytes of stack have already been allocated. */
+ /* Save registers r1, r4 on stack and load up with expected values. */
+ /* Note, 12 bytes of stack have already been allocated. */
/* Called via: jalr __save_interrupt,r10 */
__save_interrupt:
st.w ep,0[sp]
@@ -1229,7 +1229,7 @@
jmp [r10]
.size __save_interrupt,.-__save_interrupt
- /* Restore saved registers, deallocate stack and return from the interrupt */
+ /* Restore saved registers, deallocate stack and return from the interrupt. */
/* Called via: jr __return_interrupt */
.align 2
.globl __return_interrupt
@@ -1249,8 +1249,8 @@
.align 2
.globl __save_all_interrupt
.type __save_all_interrupt,@function
- /* Save all registers except for those saved in __save_interrupt */
- /* allocate enough stack for all of the registers & 16 bytes of space */
+ /* Save all registers except for those saved in __save_interrupt. */
+ /* Allocate enough stack for all of the registers & 16 bytes of space. */
/* Called via: jalr __save_all_interrupt,r10 */
__save_all_interrupt:
addi -120,sp,sp
@@ -1288,8 +1288,8 @@
.globl __restore_all_interrupt
.type __restore_all_interrupt,@function
- /* Restore all registers saved in __save_all_interrupt */
- /* & deallocate the stack space */
+ /* Restore all registers saved in __save_all_interrupt and
+ deallocate the stack space. */
/* Called via: jalr __restore_all_interrupt,r10 */
__restore_all_interrupt:
mov ep,r1
@@ -1455,7 +1455,7 @@
.call_table_text
/* Restore saved registers, deallocate stack and return from the interrupt. */
- /* Called via: callt ctoff(__callt_restore_itnerrupt). */
+ /* Called via: callt ctoff(__callt_restore_itnerrupt). */
.text
.align 2
.globl __return_interrupt
@@ -1513,8 +1513,8 @@
prepare {r20 - r29, r31}, 4
ctret
- /* Restore all registers saved in __save_all_interrupt. */
- /* & deallocate the stack space. */
+ /* Restore all registers saved in __save_all_interrupt
+ deallocate the stack space. */
/* Called via: callt ctoff(__callt_restore_all_interrupt). */
.align 2
.L_restore_all_interrupt:
@@ -1570,7 +1570,7 @@
.L_return_##START##_r29: ;\
dispose 0, { START - r29 }, r31 ;\
;\
- /* Place the offsets of the start of these funcs into the call table. */;\
+ /* Place the offsets of the start of these funcs into the call table. */;\
.call_table_data ;\
;\
.global __callt_save_##START##_r29 ;\
@@ -1597,7 +1597,7 @@
.L_return_##START##_r31c: ;\
dispose 4, { START - r29, r31}, r31 ;\
;\
- /* Place the offsets of the start of these funcs into the call table. */;\
+ /* Place the offsets of the start of these funcs into the call table. */;\
.call_table_data ;\
;\
.global __callt_save_##START##_r31c ;\
Index: v850.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/v850/v850.c,v
retrieving revision 1.82
diff -u -r1.82 v850.c
--- v850.c 13 Dec 2003 04:44:12 -0000 1.82
+++ v850.c 31 Dec 2003 17:20:31 -0000
@@ -1765,7 +1765,7 @@
}
/* If no prolog save function is available, store the registers the old
- fashioned way (one by one). */
+ fashioned way (one by one). */
if (!save_all)
{
/* Special case interrupt functions that save all registers for a call. */
@@ -1786,7 +1786,7 @@
else
init_stack_alloc = actual_fsize;
- /* Save registers at the beginning of the stack frame */
+ /* Save registers at the beginning of the stack frame. */
offset = init_stack_alloc - 4;
if (init_stack_alloc)
@@ -2431,7 +2431,7 @@
stack_bytes = INTVAL (XEXP (SET_SRC (XVECEXP (op, 0, 1)), 1));
- /* Each pop will remove 4 bytes from the stack... */
+ /* Each pop will remove 4 bytes from the stack.... */
stack_bytes -= (count - 2) * 4;
/* Make sure that the amount we are popping either 0 or 16 bytes. */
@@ -2634,7 +2634,7 @@
registers. */
stack_bytes = INTVAL (XEXP (SET_SRC (XVECEXP (op, 0, 0)), 1));
- /* Each push will put 4 bytes from the stack... */
+ /* Each push will put 4 bytes from the stack.... */
stack_bytes += (count - (TARGET_LONG_CALLS ? 3 : 2)) * 4;
/* Make sure that the amount we are popping either 0 or 16 bytes. */
@@ -2721,7 +2721,7 @@
extern int size_directive_output;
/* A version of asm_output_aligned_bss() that copes with the special
- data areas of the v850. */
+ data areas of the v850. */
void
v850_output_aligned_bss (FILE * file,
tree decl,
@@ -2858,7 +2858,7 @@
kind = GHS_SECTION_KIND_TEXT;
else
{
- /* First choose a section kind based on the data area of the decl. */
+ /* First choose a section kind based on the data area of the decl. */
switch (v850_get_data_area (decl))
{
default:
@@ -2891,11 +2891,11 @@
}
/* Now, if the section kind has been explicitly renamed,
- then attach a section attribute. */
+ then attach a section attribute. */
chosen_section = GHS_current_section_names [(int) kind];
/* Otherwise, if this kind of section needs an explicit section
- attribute, then also attach one. */
+ attribute, then also attach one. */
if (chosen_section == NULL)
chosen_section = GHS_default_section_names [(int) kind];
@@ -3001,7 +3001,7 @@
stack_bytes = INTVAL (XEXP (SET_SRC (XVECEXP (op, 0, 1)), 1));
- /* Each pop will remove 4 bytes from the stack... */
+ /* Each pop will remove 4 bytes from the stack.... */
stack_bytes -= (count - 2) * 4;
/* Make sure that the amount we are popping
Index: v850.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/v850/v850.h,v
retrieving revision 1.91
diff -u -r1.91 v850.h
--- v850.h 13 Dec 2003 04:44:12 -0000 1.91
+++ v850.h 31 Dec 2003 17:20:32 -0000
@@ -275,7 +275,7 @@
enable machine-specific optimizations.
*Do not examine `write_symbols' in this macro!* The debugging
- options are not supposed to alter the generated code. */
+ options are not supposed to alter the generated code. */
#define OPTIMIZATION_OPTIONS(LEVEL,SIZE) \
{ \
@@ -343,7 +343,7 @@
/* Define this as 1 if `char' should by default be signed; else as 0.
- On the NEC V850, loads do sign extension, so make this default. */
+ On the NEC V850, loads do sign extension, so make this default. */
#define DEFAULT_SIGNED_CHAR 1
/* Standard register usage. */
@@ -401,7 +401,7 @@
}
/* If TARGET_NO_APP_REGS is not defined then add r2 and r5 to
- the pool of fixed registers. See PR 14505. */
+ the pool of fixed registers. See PR 14505. */
#define CONDITIONAL_REGISTER_USAGE \
{ \
if (TARGET_NO_APP_REGS) \
@@ -461,7 +461,7 @@
#define N_REG_CLASSES (int) LIM_REG_CLASSES
-/* Give names of register classes as strings for dump file. */
+/* Give names of register classes as strings for dump file. */
#define REG_CLASS_NAMES \
{ "NO_REGS", "GENERAL_REGS", "ALL_REGS", "LIM_REGS" }
@@ -634,7 +634,7 @@
`HARD_FRAME_POINTER_REGNUM' or `STACK_POINTER_REGNUM'.
Do not define this macro if it would be the same as
- `FRAME_POINTER_REGNUM'. */
+ `FRAME_POINTER_REGNUM'. */
#undef HARD_FRAME_POINTER_REGNUM
#define HARD_FRAME_POINTER_REGNUM 29
@@ -674,7 +674,7 @@
{FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM}}
Note that the elimination of the argument pointer with the stack
- pointer is specified first since that is the preferred elimination. */
+ pointer is specified first since that is the preferred elimination. */
#define ELIMINABLE_REGS \
{{ FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM }, \
@@ -687,7 +687,7 @@
TO-REG. This macro need only be defined if `ELIMINABLE_REGS' is
defined, and will usually be the constant 1, since most of the
cases preventing register elimination are things that the compiler
- already knows about. */
+ already knows about. */
#define CAN_ELIMINATE(FROM, TO) \
((TO) == STACK_POINTER_REGNUM ? ! frame_pointer_needed : 1)
@@ -695,7 +695,7 @@
/* This macro is similar to `INITIAL_FRAME_POINTER_OFFSET'. It
specifies the initial difference between the specified pair of
registers. This macro must be defined if `ELIMINABLE_REGS' is
- defined. */
+ defined. */
#define INITIAL_ELIMINATION_OFFSET(FROM, TO, OFFSET) \
{ \
@@ -797,7 +797,7 @@
/* Define how to find the value returned by a function.
VALTYPE is the data type of the value (as a tree).
If the precise function being called is known, FUNC is its FUNCTION_DECL;
- otherwise, FUNC is 0. */
+ otherwise, FUNC is 0. */
#define FUNCTION_VALUE(VALTYPE, FUNC) \
gen_rtx_REG (TYPE_MODE (VALTYPE), 10)
@@ -1003,7 +1003,7 @@
GO_IF_LEGITIMATE_ADDRESS.
It is always safe for this macro to do nothing. It exists to recognize
- opportunities to optimize the output. */
+ opportunities to optimize the output. */
#define LEGITIMIZE_ADDRESS(X,OLDX,MODE,WIN) {}
@@ -1068,10 +1068,10 @@
/* One or more functions to be defined in `varasm.c'. These
functions should do jobs analogous to those of `text_section' and
`data_section', for your additional sections. Do not define this
- macro if you do not define `EXTRA_SECTIONS'. */
+ macro if you do not define `EXTRA_SECTIONS'. */
#undef EXTRA_SECTION_FUNCTIONS
-/* This could be done a lot more cleanly using ANSI C ... */
+/* This could be done a lot more cleanly using ANSI C.... */
#define EXTRA_SECTION_FUNCTIONS \
void \
sdata_section () \
@@ -1188,14 +1188,14 @@
v850_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
/* This says how to output the assembler to define a global
- uninitialized, common symbol. */
+ uninitialized, common symbol. */
#undef ASM_OUTPUT_ALIGNED_COMMON
#undef ASM_OUTPUT_COMMON
#define ASM_OUTPUT_ALIGNED_DECL_COMMON(FILE, DECL, NAME, SIZE, ALIGN) \
v850_output_common (FILE, DECL, NAME, SIZE, ALIGN)
/* This says how to output the assembler to define a local
- uninitialized symbol. */
+ uninitialized symbol. */
#undef ASM_OUTPUT_ALIGNED_LOCAL
#undef ASM_OUTPUT_LOCAL
#define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \
@@ -1289,11 +1289,11 @@
/* Define as C expression which evaluates to nonzero if the tablejump
instruction expects the table to contain offsets from the address of the
table.
- Do not define this if the table should contain absolute addresses. */
+ Do not define this if the table should contain absolute addresses. */
#define CASE_VECTOR_PC_RELATIVE 1
/* The switch instruction requires that the jump table immediately follow
- it. */
+ it. */
#define JUMP_TABLES_IN_TEXT_SECTION 1
/* svr4.h defines this assuming that 4 byte alignment is required. */
Index: v850.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/v850/v850.md,v
retrieving revision 1.25
diff -u -r1.25 v850.md
--- v850.md 13 Dec 2003 04:44:12 -0000 1.25
+++ v850.md 31 Dec 2003 17:20:33 -0000
@@ -1429,7 +1429,7 @@
if (GET_CODE (operands[1]) == REG)
return \"jarl %1, r31\";
else
- /* Reload can generate this pattern... */
+ /* Reload can generate this pattern.... */
return \"movhi hi(%1), r0, r11 ; movea lo(%1), r11, r11 ; jarl .+4, r31 ; add 4, r31 ; jmp r11\";
}
else