lib1funcs.asm: Fix comment formatting.
* config/v850/lib1funcs.asm: Fix comment formatting. * config/v850/v850.c: Likewise. * config/v850/v850.h: Likewise. * config/v850/v850.md: Likewise. From-SVN: r75270
This commit is contained in:
parent
99f296a0d9
commit
d4de0221f3
|
@ -1,3 +1,10 @@
|
|||
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.
|
||||
|
||||
2003-12-31 Kazu Hirata <kazu@cs.umass.edu>
|
||||
|
||||
* config/i386/i386.md (*movqi_insv_2): Remove AND in the
|
||||
|
|
|
@ -1170,8 +1170,8 @@ __return_r29_r31:
|
|||
.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 @@ __save_r31:
|
|||
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 @@ __return_r31:
|
|||
.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 @@ __save_r6_r9:
|
|||
.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 @@ __save_interrupt:
|
|||
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 @@ __return_interrupt:
|
|||
.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 @@ __save_all_interrupt:
|
|||
|
||||
.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 @@ __callt_save_interrupt: .short ctoff(.L_save_interrupt)
|
|||
.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 @@ __callt_return_interrupt: .short ctoff(.L_return_interrupt)
|
|||
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 @@ __callt_restore_all_interrupt: .short ctoff(.L_restore_all_interrupt)
|
|||
.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 @@ __callt_return_##START##_r29: .short ctoff(.L_return_##START##_r29 )
|
|||
.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 ;\
|
||||
|
|
|
@ -1765,7 +1765,7 @@ Saved %d bytes via prologue function (%d vs. %d) for function %s\n",
|
|||
}
|
||||
|
||||
/* 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 @@ Saved %d bytes via prologue function (%d vs. %d) for function %s\n",
|
|||
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 @@ construct_restore_jr (rtx op)
|
|||
|
||||
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 @@ construct_save_jarl (rtx op)
|
|||
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 tree last_assemble_variable_decl;
|
|||
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 @@ v850_insert_attributes (tree decl, tree * attr_ptr ATTRIBUTE_UNUSED )
|
|||
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 @@ v850_insert_attributes (tree decl, tree * attr_ptr ATTRIBUTE_UNUSED )
|
|||
}
|
||||
|
||||
/* 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 @@ construct_dispose_instruction (rtx op)
|
|||
|
||||
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
|
||||
|
|
|
@ -275,7 +275,7 @@ extern struct small_memory_info small_memory[(int)SMALL_MEMORY_max];
|
|||
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 @@ extern struct small_memory_info small_memory[(int)SMALL_MEMORY_max];
|
|||
|
||||
/* 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 @@ extern struct small_memory_info small_memory[(int)SMALL_MEMORY_max];
|
|||
}
|
||||
|
||||
/* 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 @@ enum reg_class
|
|||
|
||||
#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 @@ enum reg_class
|
|||
`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 @@ enum reg_class
|
|||
{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 @@ enum reg_class
|
|||
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 @@ enum reg_class
|
|||
/* 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 @@ struct cum_arg { int nbytes; int anonymous_args; };
|
|||
/* 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 @@ do { \
|
|||
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 @@ typedef enum
|
|||
/* 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 @@ zbss_section () \
|
|||
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 @@ zbss_section () \
|
|||
/* 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. */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue