From f12b3fc8aa32ebe1c75a22310d3c75a914536523 Mon Sep 17 00:00:00 2001 From: Steven Bosscher Date: Sun, 28 Sep 2003 12:09:07 +0000 Subject: [PATCH] pdp11-protos.h, [...]: Convert to ISO C90 function declarations and definitions. * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c, config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h: Convert to ISO C90 function declarations and definitions. From-SVN: r71880 --- gcc/ChangeLog | 7 + gcc/config/c4x/c4x-c.c | 2 +- gcc/config/c4x/c4x-protos.h | 246 ++++++------- gcc/config/c4x/c4x.c | 628 ++++++++++---------------------- gcc/config/c4x/c4x.h | 4 +- gcc/config/pdp11/pdp11-protos.h | 36 +- gcc/config/pdp11/pdp11.c | 106 ++---- 7 files changed, 372 insertions(+), 657 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d77a99fa71c..064679ba608 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2003-09-28 Steven Bosscher + + * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c, + config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c, + config/c4x/c4x.h: + Convert to ISO C90 function declarations and definitions. + 2003-09-28 Steven Bosscher * config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h: diff --git a/gcc/config/c4x/c4x-c.c b/gcc/config/c4x/c4x-c.c index 8f466fb21c2..780a12b380f 100644 --- a/gcc/config/c4x/c4x-c.c +++ b/gcc/config/c4x/c4x-c.c @@ -32,7 +32,7 @@ Boston, MA 02111-1307, USA. */ #include "c-pragma.h" #include "tm_p.h" -static int c4x_parse_pragma PARAMS ((const char *, tree *, tree *)); +static int c4x_parse_pragma (const char *, tree *, tree *); /* Handle machine specific pragmas for compatibility with existing compilers for the C3x/C4x. diff --git a/gcc/config/c4x/c4x-protos.h b/gcc/config/c4x/c4x-protos.h index 458019c1d74..36bf96164c1 100644 --- a/gcc/config/c4x/c4x-protos.h +++ b/gcc/config/c4x/c4x-protos.h @@ -1,5 +1,5 @@ /* Definitions of target machine for GNU compiler. TMS320C[34]x - Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 + Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2003 Free Software Foundation, Inc. Contributed by Michael Hayes (m.hayes@elec.canterbury.ac.nz) @@ -25,244 +25,236 @@ #ifndef GCC_C4X_PROTOS_H #define GCC_C4X_PROTOS_H -extern void c4x_override_options PARAMS ((void)); +extern void c4x_override_options (void); -extern void c4x_optimization_options PARAMS ((int, int)); +extern void c4x_optimization_options (int, int); -extern void c4x_output_ascii PARAMS ((FILE *, const char *, int)); +extern void c4x_output_ascii (FILE *, const char *, int); -extern int c4x_interrupt_function_p PARAMS ((void)); +extern int c4x_interrupt_function_p (void); -extern void c4x_expand_prologue PARAMS ((void)); +extern void c4x_expand_prologue (void); -extern void c4x_expand_epilogue PARAMS ((void)); +extern void c4x_expand_epilogue (void); -extern int c4x_null_epilogue_p PARAMS ((void)); +extern int c4x_null_epilogue_p (void); extern void c4x_global_label (const char *); extern void c4x_external_ref (const char *); #ifdef TREE_CODE -extern void c4x_function_arg_advance PARAMS ((CUMULATIVE_ARGS *, - enum machine_mode, tree, int)); +extern void c4x_function_arg_advance (CUMULATIVE_ARGS *, + enum machine_mode, tree, int); -extern struct rtx_def *c4x_function_arg PARAMS ((CUMULATIVE_ARGS *, - enum machine_mode, tree, - int)); +extern struct rtx_def *c4x_function_arg (CUMULATIVE_ARGS *, + enum machine_mode, tree, int); #endif /* TREE_CODE */ #if defined(RTX_CODE) && defined(TREE_CODE) -extern void c4x_init_cumulative_args PARAMS ((CUMULATIVE_ARGS *c, tree, rtx)); +extern void c4x_init_cumulative_args (CUMULATIVE_ARGS *c, tree, rtx); -extern struct rtx_def *c4x_va_arg PARAMS ((tree, tree)); +extern struct rtx_def *c4x_va_arg (tree, tree); -extern rtx c4x_expand_builtin PARAMS ((tree, rtx, rtx, - enum machine_mode, int)); +extern rtx c4x_expand_builtin (tree, rtx, rtx, enum machine_mode, int); -extern void c4x_init_builtins PARAMS ((void)); +extern void c4x_init_builtins (void); #endif /* TREE_CODE and RTX_CODE*/ #ifdef RTX_CODE -extern struct rtx_def *c4x_gen_compare_reg PARAMS ((enum rtx_code, rtx, rtx)); +extern struct rtx_def *c4x_gen_compare_reg (enum rtx_code, rtx, rtx); -extern int c4x_check_legit_addr PARAMS ((enum machine_mode, rtx, int)); +extern int c4x_check_legit_addr (enum machine_mode, rtx, int); -extern int c4x_hard_regno_mode_ok PARAMS ((unsigned int, enum machine_mode)); +extern int c4x_hard_regno_mode_ok (unsigned int, enum machine_mode); -extern int c4x_hard_regno_rename_ok PARAMS ((unsigned int, unsigned int)); +extern int c4x_hard_regno_rename_ok (unsigned int, unsigned int); -extern struct rtx_def *c4x_legitimize_address PARAMS ((rtx, - enum machine_mode)); +extern struct rtx_def *c4x_legitimize_address (rtx, enum machine_mode); -extern void c4x_print_operand PARAMS ((FILE *, rtx, int)); +extern void c4x_print_operand (FILE *, rtx, int); -extern void c4x_print_operand_address PARAMS ((FILE *, rtx)); +extern void c4x_print_operand_address (FILE *, rtx); -extern enum reg_class c4x_preferred_reload_class PARAMS ((rtx, - enum reg_class)); +extern enum reg_class c4x_preferred_reload_class (rtx, enum reg_class); -extern struct rtx_def *c4x_operand_subword PARAMS ((rtx, int, int, - enum machine_mode)); +extern struct rtx_def *c4x_operand_subword (rtx, int, int, enum machine_mode); -extern char *c4x_output_cbranch PARAMS ((const char *, rtx)); +extern char *c4x_output_cbranch (const char *, rtx); -extern int c4x_label_conflict PARAMS ((rtx, rtx, rtx)); +extern int c4x_label_conflict (rtx, rtx, rtx); -extern int c4x_address_conflict PARAMS ((rtx, rtx, int, int)); +extern int c4x_address_conflict (rtx, rtx, int, int); -extern void c4x_rptb_insert PARAMS ((rtx insn)); +extern void c4x_rptb_insert (rtx insn); -extern int c4x_rptb_nop_p PARAMS ((rtx)); +extern int c4x_rptb_nop_p (rtx); -extern int c4x_rptb_rpts_p PARAMS ((rtx, rtx)); +extern int c4x_rptb_rpts_p (rtx, rtx); -extern int c4x_check_laj_p PARAMS ((rtx)); +extern int c4x_check_laj_p (rtx); -extern int c4x_autoinc_operand PARAMS ((rtx, enum machine_mode)); +extern int c4x_autoinc_operand (rtx, enum machine_mode); -extern int any_operand PARAMS ((rtx, enum machine_mode)); +extern int any_operand (rtx, enum machine_mode); -extern int fp_zero_operand PARAMS ((rtx, enum machine_mode)); +extern int fp_zero_operand (rtx, enum machine_mode); -extern int const_operand PARAMS ((rtx, enum machine_mode)); +extern int const_operand (rtx, enum machine_mode); -extern int stik_const_operand PARAMS ((rtx, enum machine_mode)); +extern int stik_const_operand (rtx, enum machine_mode); -extern int not_const_operand PARAMS ((rtx, enum machine_mode)); +extern int not_const_operand (rtx, enum machine_mode); -extern int parallel_operand PARAMS ((rtx, enum machine_mode)); +extern int parallel_operand (rtx, enum machine_mode); -extern int reg_or_const_operand PARAMS ((rtx, enum machine_mode)); +extern int reg_or_const_operand (rtx, enum machine_mode); -extern int reg_operand PARAMS ((rtx, enum machine_mode)); +extern int reg_operand (rtx, enum machine_mode); -extern int mixed_subreg_operand PARAMS ((rtx, enum machine_mode)); +extern int mixed_subreg_operand (rtx, enum machine_mode); -extern int reg_imm_operand PARAMS ((rtx, enum machine_mode)); +extern int reg_imm_operand (rtx, enum machine_mode); -extern int r0r1_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int r0r1_reg_operand (rtx, enum machine_mode); -extern int r2r3_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int r2r3_reg_operand (rtx, enum machine_mode); -extern int ext_low_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int ext_low_reg_operand (rtx, enum machine_mode); -extern int ext_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int ext_reg_operand (rtx, enum machine_mode); -extern int std_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int std_reg_operand (rtx, enum machine_mode); -extern int std_or_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int std_or_reg_operand (rtx, enum machine_mode); -extern int dst_operand PARAMS ((rtx, enum machine_mode)); +extern int dst_operand (rtx, enum machine_mode); -extern int src_operand PARAMS ((rtx, enum machine_mode)); +extern int src_operand (rtx, enum machine_mode); -extern int src_hi_operand PARAMS ((rtx, enum machine_mode)); +extern int src_hi_operand (rtx, enum machine_mode); -extern int lsrc_operand PARAMS ((rtx, enum machine_mode)); +extern int lsrc_operand (rtx, enum machine_mode); -extern int tsrc_operand PARAMS ((rtx, enum machine_mode)); +extern int tsrc_operand (rtx, enum machine_mode); -extern int nonimmediate_src_operand PARAMS ((rtx, enum machine_mode)); +extern int nonimmediate_src_operand (rtx, enum machine_mode); -extern int nonimmediate_lsrc_operand PARAMS ((rtx, enum machine_mode)); +extern int nonimmediate_lsrc_operand (rtx, enum machine_mode); -extern int addr_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int addr_reg_operand (rtx, enum machine_mode); -extern int index_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int index_reg_operand (rtx, enum machine_mode); -extern int dp_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int dp_reg_operand (rtx, enum machine_mode); -extern int sp_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int sp_reg_operand (rtx, enum machine_mode); -extern int rc_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int rc_reg_operand (rtx, enum machine_mode); -extern int st_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int st_reg_operand (rtx, enum machine_mode); -extern int symbolic_address_operand PARAMS ((rtx, enum machine_mode)); +extern int symbolic_address_operand (rtx, enum machine_mode); -extern int ar0_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int ar0_reg_operand (rtx, enum machine_mode); -extern int ar0_mem_operand PARAMS ((rtx, enum machine_mode)); +extern int ar0_mem_operand (rtx, enum machine_mode); -extern int ar1_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int ar1_reg_operand (rtx, enum machine_mode); -extern int ar1_mem_operand PARAMS ((rtx, enum machine_mode)); +extern int ar1_mem_operand (rtx, enum machine_mode); -extern int ar2_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int ar2_reg_operand (rtx, enum machine_mode); -extern int ar2_mem_operand PARAMS ((rtx, enum machine_mode)); +extern int ar2_mem_operand (rtx, enum machine_mode); -extern int ar3_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int ar3_reg_operand (rtx, enum machine_mode); -extern int ar3_mem_operand PARAMS ((rtx, enum machine_mode)); +extern int ar3_mem_operand (rtx, enum machine_mode); -extern int ar4_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int ar4_reg_operand (rtx, enum machine_mode); -extern int ar4_mem_operand PARAMS ((rtx, enum machine_mode)); +extern int ar4_mem_operand (rtx, enum machine_mode); -extern int ar5_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int ar5_reg_operand (rtx, enum machine_mode); -extern int ar5_mem_operand PARAMS ((rtx, enum machine_mode)); +extern int ar5_mem_operand (rtx, enum machine_mode); -extern int ar6_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int ar6_reg_operand (rtx, enum machine_mode); -extern int ar6_mem_operand PARAMS ((rtx, enum machine_mode)); +extern int ar6_mem_operand (rtx, enum machine_mode); -extern int ar7_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int ar7_reg_operand (rtx, enum machine_mode); -extern int ar7_mem_operand PARAMS ((rtx, enum machine_mode)); +extern int ar7_mem_operand (rtx, enum machine_mode); -extern int ir0_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int ir0_reg_operand (rtx, enum machine_mode); -extern int ir0_mem_operand PARAMS ((rtx, enum machine_mode)); +extern int ir0_mem_operand (rtx, enum machine_mode); -extern int ir1_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int ir1_reg_operand (rtx, enum machine_mode); -extern int ir1_mem_operand PARAMS ((rtx, enum machine_mode)); +extern int ir1_mem_operand (rtx, enum machine_mode); -extern int group1_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int group1_reg_operand (rtx, enum machine_mode); -extern int group1_mem_operand PARAMS ((rtx, enum machine_mode)); +extern int group1_mem_operand (rtx, enum machine_mode); -extern int arx_reg_operand PARAMS ((rtx, enum machine_mode)); +extern int arx_reg_operand (rtx, enum machine_mode); -extern int call_address_operand PARAMS ((rtx, enum machine_mode)); +extern int call_address_operand (rtx, enum machine_mode); -extern int par_ind_operand PARAMS ((rtx, enum machine_mode)); +extern int par_ind_operand (rtx, enum machine_mode); -extern int not_rc_reg PARAMS ((rtx, enum machine_mode)); +extern int not_rc_reg (rtx, enum machine_mode); -extern int not_modify_reg PARAMS ((rtx, enum machine_mode)); +extern int not_modify_reg (rtx, enum machine_mode); -extern int c4x_shiftable_constant PARAMS ((rtx)); +extern int c4x_shiftable_constant (rtx); -extern int c4x_H_constant PARAMS ((rtx)); +extern int c4x_H_constant (rtx); -extern int c4x_I_constant PARAMS ((rtx)); +extern int c4x_I_constant (rtx); -extern int c4x_J_constant PARAMS ((rtx)); +extern int c4x_J_constant (rtx); -extern int c4x_L_constant PARAMS ((rtx)); +extern int c4x_L_constant (rtx); -extern int c4x_Q_constraint PARAMS ((rtx)); +extern int c4x_Q_constraint (rtx); -extern int c4x_R_constraint PARAMS ((rtx)); +extern int c4x_R_constraint (rtx); -extern int c4x_S_constraint PARAMS ((rtx)); +extern int c4x_S_constraint (rtx); -extern int c4x_T_constraint PARAMS ((rtx)); +extern int c4x_T_constraint (rtx); -extern int c4x_U_constraint PARAMS ((rtx)); +extern int c4x_U_constraint (rtx); -extern void c4x_emit_libcall PARAMS ((rtx, enum rtx_code, - enum machine_mode, - enum machine_mode, int, rtx *)); +extern void c4x_emit_libcall (rtx, enum rtx_code, enum machine_mode, + enum machine_mode, int, rtx *); -extern void c4x_emit_libcall3 PARAMS ((rtx, enum rtx_code, - enum machine_mode, rtx *)); +extern void c4x_emit_libcall3 (rtx, enum rtx_code, enum machine_mode, rtx *); -extern void c4x_emit_libcall_mulhi PARAMS ((rtx, enum rtx_code, - enum machine_mode, rtx *)); +extern void c4x_emit_libcall_mulhi (rtx, enum rtx_code, + enum machine_mode, rtx *); -extern int c4x_emit_move_sequence PARAMS ((rtx *, enum machine_mode)); +extern int c4x_emit_move_sequence (rtx *, enum machine_mode); -extern int legitimize_operands PARAMS ((enum rtx_code, rtx *, - enum machine_mode)); +extern int legitimize_operands (enum rtx_code, rtx *, enum machine_mode); -extern int valid_operands PARAMS ((enum rtx_code, rtx *, enum machine_mode)); +extern int valid_operands (enum rtx_code, rtx *, enum machine_mode); -extern int valid_parallel_load_store PARAMS ((rtx *, enum machine_mode)); +extern int valid_parallel_load_store (rtx *, enum machine_mode); -extern int valid_parallel_operands_4 PARAMS ((rtx *, enum machine_mode)); +extern int valid_parallel_operands_4 (rtx *, enum machine_mode); -extern int valid_parallel_operands_5 PARAMS ((rtx *, enum machine_mode)); +extern int valid_parallel_operands_5 (rtx *, enum machine_mode); -extern int valid_parallel_operands_6 PARAMS ((rtx *, enum machine_mode)); +extern int valid_parallel_operands_6 (rtx *, enum machine_mode); extern GTY(()) rtx smulhi3_libfunc; extern GTY(()) rtx umulhi3_libfunc; @@ -287,13 +279,13 @@ extern enum machine_mode c4x_caller_save_map[FIRST_PSEUDO_REGISTER]; extern int c4x_rpts_cycles; /* Max cycles for RPTS. */ extern int c4x_cpu_version; /* Cpu version C30/31/32/40/44. */ -extern void c4x_pr_CODE_SECTION PARAMS ((struct cpp_reader *)); -extern void c4x_pr_DATA_SECTION PARAMS ((struct cpp_reader *)); -extern void c4x_pr_FUNC_IS_PURE PARAMS ((struct cpp_reader *)); -extern void c4x_pr_FUNC_NEVER_RETURNS PARAMS ((struct cpp_reader *)); -extern void c4x_pr_INTERRUPT PARAMS ((struct cpp_reader *)); -extern void c4x_pr_ignored PARAMS ((struct cpp_reader *)); -extern void c4x_init_pragma PARAMS ((int (*) (tree *))); +extern void c4x_pr_CODE_SECTION (struct cpp_reader *); +extern void c4x_pr_DATA_SECTION (struct cpp_reader *); +extern void c4x_pr_FUNC_IS_PURE (struct cpp_reader *); +extern void c4x_pr_FUNC_NEVER_RETURNS (struct cpp_reader *); +extern void c4x_pr_INTERRUPT (struct cpp_reader *); +extern void c4x_pr_ignored (struct cpp_reader *); +extern void c4x_init_pragma (int (*) (tree *)); extern GTY(()) tree code_tree; extern GTY(()) tree data_tree; diff --git a/gcc/config/c4x/c4x.c b/gcc/config/c4x/c4x.c index bc677832f93..2d8a8b606fc 100644 --- a/gcc/config/c4x/c4x.c +++ b/gcc/config/c4x/c4x.c @@ -1,5 +1,5 @@ /* Subroutines for assembler code output on the TMS320C[34]x - Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 + Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. Contributed by Michael Hayes (m.hayes@elec.canterbury.ac.nz) @@ -167,39 +167,38 @@ tree interrupt_tree = NULL_TREE; tree naked_tree = NULL_TREE; /* Forward declarations */ -static int c4x_isr_reg_used_p PARAMS ((unsigned int)); -static int c4x_leaf_function_p PARAMS ((void)); -static int c4x_naked_function_p PARAMS ((void)); -static int c4x_immed_float_p PARAMS ((rtx)); -static int c4x_a_register PARAMS ((rtx)); -static int c4x_x_register PARAMS ((rtx)); -static int c4x_immed_int_constant PARAMS ((rtx)); -static int c4x_immed_float_constant PARAMS ((rtx)); -static int c4x_K_constant PARAMS ((rtx)); -static int c4x_N_constant PARAMS ((rtx)); -static int c4x_O_constant PARAMS ((rtx)); -static int c4x_R_indirect PARAMS ((rtx)); -static int c4x_S_indirect PARAMS ((rtx)); -static void c4x_S_address_parse PARAMS ((rtx , int *, int *, int *, int *)); -static int c4x_valid_operands PARAMS ((enum rtx_code, rtx *, - enum machine_mode, int)); -static int c4x_arn_reg_operand PARAMS ((rtx, enum machine_mode, unsigned int)); -static int c4x_arn_mem_operand PARAMS ((rtx, enum machine_mode, unsigned int)); -static void c4x_file_start PARAMS ((void)); -static void c4x_file_end PARAMS ((void)); -static void c4x_check_attribute PARAMS ((const char *, tree, tree, tree *)); -static int c4x_r11_set_p PARAMS ((rtx)); -static int c4x_rptb_valid_p PARAMS ((rtx, rtx)); -static void c4x_reorg PARAMS ((void)); -static int c4x_label_ref_used_p PARAMS ((rtx, rtx)); -static tree c4x_handle_fntype_attribute PARAMS ((tree *, tree, tree, int, bool *)); +static int c4x_isr_reg_used_p (unsigned int); +static int c4x_leaf_function_p (void); +static int c4x_naked_function_p (void); +static int c4x_immed_float_p (rtx); +static int c4x_a_register (rtx); +static int c4x_x_register (rtx); +static int c4x_immed_int_constant (rtx); +static int c4x_immed_float_constant (rtx); +static int c4x_K_constant (rtx); +static int c4x_N_constant (rtx); +static int c4x_O_constant (rtx); +static int c4x_R_indirect (rtx); +static int c4x_S_indirect (rtx); +static void c4x_S_address_parse (rtx , int *, int *, int *, int *); +static int c4x_valid_operands (enum rtx_code, rtx *, enum machine_mode, int); +static int c4x_arn_reg_operand (rtx, enum machine_mode, unsigned int); +static int c4x_arn_mem_operand (rtx, enum machine_mode, unsigned int); +static void c4x_file_start (void); +static void c4x_file_end (void); +static void c4x_check_attribute (const char *, tree, tree, tree *); +static int c4x_r11_set_p (rtx); +static int c4x_rptb_valid_p (rtx, rtx); +static void c4x_reorg (void); +static int c4x_label_ref_used_p (rtx, rtx); +static tree c4x_handle_fntype_attribute (tree *, tree, tree, int, bool *); const struct attribute_spec c4x_attribute_table[]; -static void c4x_insert_attributes PARAMS ((tree, tree *)); -static void c4x_asm_named_section PARAMS ((const char *, unsigned int)); -static int c4x_adjust_cost PARAMS ((rtx, rtx, rtx, int)); -static void c4x_globalize_label PARAMS ((FILE *, const char *)); -static bool c4x_rtx_costs PARAMS ((rtx, int, int, int *)); -static int c4x_address_cost PARAMS ((rtx)); +static void c4x_insert_attributes (tree, tree *); +static void c4x_asm_named_section (const char *, unsigned int); +static int c4x_adjust_cost (rtx, rtx, rtx, int); +static void c4x_globalize_label (FILE *, const char *); +static bool c4x_rtx_costs (rtx, int, int, int *); +static int c4x_address_cost (rtx); /* Initialize the GCC target structure. */ #undef TARGET_ASM_BYTE_OP @@ -249,7 +248,7 @@ struct gcc_target targetm = TARGET_INITIALIZER; type and sometimes adjust other TARGET_ options. */ void -c4x_override_options () +c4x_override_options (void) { if (c4x_rpts_cycles_string) c4x_rpts_cycles = atoi (c4x_rpts_cycles_string); @@ -322,9 +321,8 @@ c4x_override_options () /* This is called before c4x_override_options. */ void -c4x_optimization_options (level, size) - int level ATTRIBUTE_UNUSED; - int size ATTRIBUTE_UNUSED; +c4x_optimization_options (int level ATTRIBUTE_UNUSED, + int size ATTRIBUTE_UNUSED) { /* Scheduling before register allocation can screw up global register allocation, especially for functions that use MPY||ADD @@ -339,10 +337,7 @@ c4x_optimization_options (level, size) #define C4X_ASCII_LIMIT 40 void -c4x_output_ascii (stream, ptr, len) - FILE *stream; - const char *ptr; - int len; +c4x_output_ascii (FILE *stream, const char *ptr, int len) { char sbuf[C4X_ASCII_LIMIT + 1]; int s, l, special, first = 1, onlys; @@ -423,9 +418,7 @@ c4x_output_ascii (stream, ptr, len) int -c4x_hard_regno_mode_ok (regno, mode) - unsigned int regno; - enum machine_mode mode; +c4x_hard_regno_mode_ok (unsigned int regno, enum machine_mode mode) { switch (mode) { @@ -460,9 +453,7 @@ c4x_hard_regno_mode_ok (regno, mode) /* Return nonzero if REGNO1 can be renamed to REGNO2. */ int -c4x_hard_regno_rename_ok (regno1, regno2) - unsigned int regno1; - unsigned int regno2; +c4x_hard_regno_rename_ok (unsigned int regno1, unsigned int regno2) { /* We can not copy call saved registers from mode QI into QF or from mode QF into QI. */ @@ -522,10 +513,7 @@ static const int c4x_fp_reglist[2] = {R2_REGNO, R3_REGNO}; For a library call, FNTYPE is 0. */ void -c4x_init_cumulative_args (cum, fntype, libname) - CUMULATIVE_ARGS *cum; /* Argument info to initialize. */ - tree fntype; /* Tree ptr for function decl. */ - rtx libname; /* SYMBOL_REF of library name or 0. */ +c4x_init_cumulative_args (CUMULATIVE_ARGS *cum, tree fntype, rtx libname) { tree param, next_param; @@ -601,11 +589,8 @@ c4x_init_cumulative_args (cum, fntype, libname) (TYPE is null for libcalls where that information may not be available.) */ void -c4x_function_arg_advance (cum, mode, type, named) - CUMULATIVE_ARGS *cum; /* Current arg information. */ - enum machine_mode mode; /* Current arg mode. */ - tree type; /* Type of the arg or 0 if lib support. */ - int named; /* Whether or not the argument was named. */ +c4x_function_arg_advance (CUMULATIVE_ARGS *cum, enum machine_mode mode, + tree type, int named) { if (TARGET_DEBUG) fprintf (stderr, "c4x_function_adv(mode=%s, named=%d)\n\n", @@ -648,11 +633,8 @@ c4x_function_arg_advance (cum, mode, type, named) (otherwise it is an extra parameter matching an ellipsis). */ struct rtx_def * -c4x_function_arg (cum, mode, type, named) - CUMULATIVE_ARGS *cum; /* Current arg information. */ - enum machine_mode mode; /* Current arg mode. */ - tree type; /* Type of the arg or 0 if lib support. */ - int named; /* != 0 for normal args, == 0 for ... args. */ +c4x_function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode, + tree type, int named) { int reg = 0; /* Default to passing argument on stack. */ @@ -731,8 +713,7 @@ c4x_function_arg (cum, mode, type, named) /* C[34]x arguments grow in weird ways (downwards) that the standard varargs stuff can't handle.. */ rtx -c4x_va_arg (valist, type) - tree valist, type; +c4x_va_arg (tree valist, tree type) { tree t; @@ -745,8 +726,7 @@ c4x_va_arg (valist, type) static int -c4x_isr_reg_used_p (regno) - unsigned int regno; +c4x_isr_reg_used_p (unsigned int regno) { /* Don't save/restore FP or ST, we handle them separately. */ if (regno == FRAME_POINTER_REGNUM @@ -773,7 +753,7 @@ c4x_isr_reg_used_p (regno) static int -c4x_leaf_function_p () +c4x_leaf_function_p (void) { /* A leaf function makes no calls, so we only need to save/restore the registers we actually use. @@ -800,7 +780,7 @@ c4x_leaf_function_p () static int -c4x_naked_function_p () +c4x_naked_function_p (void) { tree type; @@ -810,7 +790,7 @@ c4x_naked_function_p () int -c4x_interrupt_function_p () +c4x_interrupt_function_p (void) { if (lookup_attribute ("interrupt", TYPE_ATTRIBUTES (TREE_TYPE (current_function_decl)))) @@ -827,7 +807,7 @@ c4x_interrupt_function_p () } void -c4x_expand_prologue () +c4x_expand_prologue (void) { unsigned int regno; int size = get_frame_size (); @@ -1017,7 +997,7 @@ c4x_expand_prologue () void -c4x_expand_epilogue() +c4x_expand_epilogue(void) { int regno; int jump = 0; @@ -1216,7 +1196,7 @@ c4x_expand_epilogue() int -c4x_null_epilogue_p () +c4x_null_epilogue_p (void) { int regno; @@ -1239,9 +1219,7 @@ c4x_null_epilogue_p () int -c4x_emit_move_sequence (operands, mode) - rtx *operands; - enum machine_mode mode; +c4x_emit_move_sequence (rtx *operands, enum machine_mode mode) { rtx op0 = operands[0]; rtx op1 = operands[1]; @@ -1388,13 +1366,9 @@ c4x_emit_move_sequence (operands, mode) void -c4x_emit_libcall (libcall, code, dmode, smode, noperands, operands) - rtx libcall; - enum rtx_code code; - enum machine_mode dmode; - enum machine_mode smode; - int noperands; - rtx *operands; +c4x_emit_libcall (rtx libcall, enum rtx_code code, + enum machine_mode dmode, enum machine_mode smode, + int noperands, rtx *operands) { rtx ret; rtx insns; @@ -1426,22 +1400,16 @@ c4x_emit_libcall (libcall, code, dmode, smode, noperands, operands) void -c4x_emit_libcall3 (libcall, code, mode, operands) - rtx libcall; - enum rtx_code code; - enum machine_mode mode; - rtx *operands; +c4x_emit_libcall3 (rtx libcall, enum rtx_code code, + enum machine_mode mode, rtx *operands) { c4x_emit_libcall (libcall, code, mode, mode, 3, operands); } void -c4x_emit_libcall_mulhi (libcall, code, mode, operands) - rtx libcall; - enum rtx_code code; - enum machine_mode mode; - rtx *operands; +c4x_emit_libcall_mulhi (rtx libcall, enum rtx_code code, + enum machine_mode mode, rtx *operands) { rtx ret; rtx insns; @@ -1463,10 +1431,7 @@ c4x_emit_libcall_mulhi (libcall, code, mode, operands) int -c4x_check_legit_addr (mode, addr, strict) - enum machine_mode mode; - rtx addr; - int strict; +c4x_check_legit_addr (enum machine_mode mode, rtx addr, int strict) { rtx base = NULL_RTX; /* Base register (AR0-AR7). */ rtx indx = NULL_RTX; /* Index register (IR0,IR1). */ @@ -1660,9 +1625,8 @@ c4x_check_legit_addr (mode, addr, strict) rtx -c4x_legitimize_address (orig, mode) - rtx orig ATTRIBUTE_UNUSED; - enum machine_mode mode ATTRIBUTE_UNUSED; +c4x_legitimize_address (rtx orig ATTRIBUTE_UNUSED, + enum machine_mode mode ATTRIBUTE_UNUSED) { if (GET_CODE (orig) == SYMBOL_REF || GET_CODE (orig) == LABEL_REF) @@ -1697,8 +1661,7 @@ c4x_legitimize_address (orig, mode) Unfortunately, the C4x address cost depends on other operands. */ static int -c4x_address_cost (addr) - rtx addr; +c4x_address_cost (rtx addr) { switch (GET_CODE (addr)) { @@ -1788,9 +1751,7 @@ c4x_address_cost (addr) rtx -c4x_gen_compare_reg (code, x, y) - enum rtx_code code; - rtx x, y; +c4x_gen_compare_reg (enum rtx_code code, rtx x, rtx y) { enum machine_mode mode = SELECT_CC_MODE (code, x, y); rtx cc_reg; @@ -1806,9 +1767,7 @@ c4x_gen_compare_reg (code, x, y) } char * -c4x_output_cbranch (form, seq) - const char *form; - rtx seq; +c4x_output_cbranch (const char *form, rtx seq) { int delayed = 0; int annultrue = 0; @@ -1850,10 +1809,7 @@ c4x_output_cbranch (form, seq) } void -c4x_print_operand (file, op, letter) - FILE *file; /* File to write to. */ - rtx op; /* Operand to print. */ - int letter; /* % or 0. */ +c4x_print_operand (FILE *file, rtx op, int letter) { rtx op1; enum rtx_code code; @@ -2033,9 +1989,7 @@ c4x_print_operand (file, op, letter) void -c4x_print_operand_address (file, addr) - FILE *file; - rtx addr; +c4x_print_operand_address (FILE *file, rtx addr) { switch (GET_CODE (addr)) { @@ -2176,8 +2130,7 @@ c4x_print_operand_address (file, addr) in the immediate field. */ static int -c4x_immed_float_p (op) - rtx op; +c4x_immed_float_p (rtx op) { long convval[2]; int exponent; @@ -2223,8 +2176,7 @@ c4x_immed_float_p (op) !!! FIXME. The rptb_top insn may be sucked into a SEQUENCE. */ int -c4x_rptb_nop_p (insn) - rtx insn; +c4x_rptb_nop_p (rtx insn) { rtx start_label; int i; @@ -2282,8 +2234,7 @@ c4x_rptb_nop_p (insn) pass. The C4x cpu can not handle this. */ static int -c4x_label_ref_used_p (x, code_label) - rtx x, code_label; +c4x_label_ref_used_p (rtx x, rtx code_label) { enum rtx_code code; int i, j; @@ -2314,8 +2265,7 @@ c4x_label_ref_used_p (x, code_label) static int -c4x_rptb_valid_p (insn, start_label) - rtx insn, start_label; +c4x_rptb_valid_p (rtx insn, rtx start_label) { rtx end = insn; rtx start; @@ -2375,8 +2325,7 @@ c4x_rptb_valid_p (insn, start_label) void -c4x_rptb_insert (insn) - rtx insn; +c4x_rptb_insert (rtx insn) { rtx end_label; rtx start_label; @@ -2446,7 +2395,7 @@ c4x_rptb_insert (insn) allocated as the loop counter. */ static void -c4x_reorg () +c4x_reorg (void) { rtx insn; @@ -2491,24 +2440,21 @@ c4x_reorg () static int -c4x_a_register (op) - rtx op; +c4x_a_register (rtx op) { return REG_P (op) && IS_ADDR_OR_PSEUDO_REG (op); } static int -c4x_x_register (op) - rtx op; +c4x_x_register (rtx op) { return REG_P (op) && IS_INDEX_OR_PSEUDO_REG (op); } static int -c4x_immed_int_constant (op) - rtx op; +c4x_immed_int_constant (rtx op) { if (GET_CODE (op) != CONST_INT) return 0; @@ -2520,8 +2466,7 @@ c4x_immed_int_constant (op) static int -c4x_immed_float_constant (op) - rtx op; +c4x_immed_float_constant (rtx op) { if (GET_CODE (op) != CONST_DOUBLE) return 0; @@ -2535,8 +2480,7 @@ c4x_immed_float_constant (op) int -c4x_shiftable_constant (op) - rtx op; +c4x_shiftable_constant (rtx op) { int i; int mask; @@ -2556,24 +2500,21 @@ c4x_shiftable_constant (op) int -c4x_H_constant (op) - rtx op; +c4x_H_constant (rtx op) { return c4x_immed_float_constant (op) && c4x_immed_float_p (op); } int -c4x_I_constant (op) - rtx op; +c4x_I_constant (rtx op) { return c4x_immed_int_constant (op) && IS_INT16_CONST (INTVAL (op)); } int -c4x_J_constant (op) - rtx op; +c4x_J_constant (rtx op) { if (TARGET_C3X) return 0; @@ -2582,8 +2523,7 @@ c4x_J_constant (op) static int -c4x_K_constant (op) - rtx op; +c4x_K_constant (rtx op) { if (TARGET_C3X || ! c4x_immed_int_constant (op)) return 0; @@ -2592,24 +2532,21 @@ c4x_K_constant (op) int -c4x_L_constant (op) - rtx op; +c4x_L_constant (rtx op) { return c4x_immed_int_constant (op) && IS_UINT16_CONST (INTVAL (op)); } static int -c4x_N_constant (op) - rtx op; +c4x_N_constant (rtx op) { return c4x_immed_int_constant (op) && IS_NOT_UINT16_CONST (INTVAL (op)); } static int -c4x_O_constant (op) - rtx op; +c4x_O_constant (rtx op) { return c4x_immed_int_constant (op) && IS_HIGH_CONST (INTVAL (op)); } @@ -2625,8 +2562,7 @@ c4x_O_constant (op) they are handled by the <> constraints. */ int -c4x_Q_constraint (op) - rtx op; +c4x_Q_constraint (rtx op) { enum machine_mode mode = GET_MODE (op); @@ -2671,8 +2607,7 @@ c4x_Q_constraint (op) *ARx, *+ARx(n) for n < 32. */ int -c4x_R_constraint (op) - rtx op; +c4x_R_constraint (rtx op) { enum machine_mode mode = GET_MODE (op); @@ -2713,8 +2648,7 @@ c4x_R_constraint (op) static int -c4x_R_indirect (op) - rtx op; +c4x_R_indirect (rtx op) { enum machine_mode mode = GET_MODE (op); @@ -2758,8 +2692,7 @@ c4x_R_indirect (op) they are handled by the <> constraints. */ int -c4x_S_constraint (op) - rtx op; +c4x_S_constraint (rtx op) { enum machine_mode mode = GET_MODE (op); if (GET_CODE (op) != MEM) @@ -2818,8 +2751,7 @@ c4x_S_constraint (op) static int -c4x_S_indirect (op) - rtx op; +c4x_S_indirect (rtx op) { enum machine_mode mode = GET_MODE (op); if (GET_CODE (op) != MEM) @@ -2896,8 +2828,7 @@ c4x_S_indirect (op) /* Direct memory operand. */ int -c4x_T_constraint (op) - rtx op; +c4x_T_constraint (rtx op) { if (GET_CODE (op) != MEM) return 0; @@ -2926,8 +2857,7 @@ c4x_T_constraint (op) /* Symbolic operand. */ int -c4x_U_constraint (op) - rtx op; +c4x_U_constraint (rtx op) { /* Don't allow direct addressing to an arbitrary constant. */ return GET_CODE (op) == CONST @@ -2937,9 +2867,7 @@ c4x_U_constraint (op) int -c4x_autoinc_operand (op, mode) - rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +c4x_autoinc_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { if (GET_CODE (op) == MEM) { @@ -2961,9 +2889,8 @@ c4x_autoinc_operand (op, mode) /* Match any operand. */ int -any_operand (op, mode) - register rtx op ATTRIBUTE_UNUSED; - enum machine_mode mode ATTRIBUTE_UNUSED; +any_operand (register rtx op ATTRIBUTE_UNUSED, + enum machine_mode mode ATTRIBUTE_UNUSED) { return 1; } @@ -2972,9 +2899,7 @@ any_operand (op, mode) /* Nonzero if OP is a floating point value with value 0.0. */ int -fp_zero_operand (op, mode) - rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +fp_zero_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { REAL_VALUE_TYPE r; @@ -2986,9 +2911,7 @@ fp_zero_operand (op, mode) int -const_operand (op, mode) - register rtx op; - register enum machine_mode mode; +const_operand (register rtx op, register enum machine_mode mode) { switch (mode) { @@ -3025,27 +2948,21 @@ const_operand (op, mode) int -stik_const_operand (op, mode) - rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +stik_const_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { return c4x_K_constant (op); } int -not_const_operand (op, mode) - rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +not_const_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { return c4x_N_constant (op); } int -reg_operand (op, mode) - rtx op; - enum machine_mode mode; +reg_operand (rtx op, enum machine_mode mode) { if (GET_CODE (op) == SUBREG && GET_MODE (op) == QFmode) @@ -3055,9 +2972,7 @@ reg_operand (op, mode) int -mixed_subreg_operand (op, mode) - rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +mixed_subreg_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { /* Allow (subreg:HF (reg:HI)) that be generated for a union of an int and a long double. */ @@ -3071,9 +2986,7 @@ mixed_subreg_operand (op, mode) int -reg_imm_operand (op, mode) - rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +reg_imm_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { if (REG_P (op) || CONSTANT_P (op)) return 1; @@ -3082,9 +2995,7 @@ reg_imm_operand (op, mode) int -not_modify_reg (op, mode) - rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +not_modify_reg (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { if (REG_P (op) || CONSTANT_P (op)) return 1; @@ -3130,9 +3041,7 @@ not_modify_reg (op, mode) int -not_rc_reg (op, mode) - rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +not_rc_reg (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { if (REG_P (op) && REGNO (op) == RC_REGNO) return 0; @@ -3143,9 +3052,7 @@ not_rc_reg (op, mode) /* Extended precision register R0-R1. */ int -r0r1_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +r0r1_reg_operand (rtx op, enum machine_mode mode) { if (! reg_operand (op, mode)) return 0; @@ -3158,9 +3065,7 @@ r0r1_reg_operand (op, mode) /* Extended precision register R2-R3. */ int -r2r3_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +r2r3_reg_operand (rtx op, enum machine_mode mode) { if (! reg_operand (op, mode)) return 0; @@ -3173,9 +3078,7 @@ r2r3_reg_operand (op, mode) /* Low extended precision register R0-R7. */ int -ext_low_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +ext_low_reg_operand (rtx op, enum machine_mode mode) { if (! reg_operand (op, mode)) return 0; @@ -3188,9 +3091,7 @@ ext_low_reg_operand (op, mode) /* Extended precision register. */ int -ext_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +ext_reg_operand (rtx op, enum machine_mode mode) { if (! reg_operand (op, mode)) return 0; @@ -3205,9 +3106,7 @@ ext_reg_operand (op, mode) /* Standard precision register. */ int -std_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +std_reg_operand (rtx op, enum machine_mode mode) { if (! reg_operand (op, mode)) return 0; @@ -3219,9 +3118,7 @@ std_reg_operand (op, mode) /* Standard precision or normal register. */ int -std_or_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +std_or_reg_operand (rtx op, enum machine_mode mode) { if (reload_in_progress) return std_reg_operand (op, mode); @@ -3231,9 +3128,7 @@ std_or_reg_operand (op, mode) /* Address register. */ int -addr_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +addr_reg_operand (rtx op, enum machine_mode mode) { if (! reg_operand (op, mode)) return 0; @@ -3244,9 +3139,7 @@ addr_reg_operand (op, mode) /* Index register. */ int -index_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +index_reg_operand (rtx op, enum machine_mode mode) { if (! reg_operand (op, mode)) return 0; @@ -3259,9 +3152,7 @@ index_reg_operand (op, mode) /* DP register. */ int -dp_reg_operand (op, mode) - rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +dp_reg_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { return REG_P (op) && IS_DP_OR_PSEUDO_REG (op); } @@ -3270,9 +3161,7 @@ dp_reg_operand (op, mode) /* SP register. */ int -sp_reg_operand (op, mode) - rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +sp_reg_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { return REG_P (op) && IS_SP_OR_PSEUDO_REG (op); } @@ -3281,9 +3170,7 @@ sp_reg_operand (op, mode) /* ST register. */ int -st_reg_operand (op, mode) - register rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +st_reg_operand (register rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { return REG_P (op) && IS_ST_OR_PSEUDO_REG (op); } @@ -3292,18 +3179,14 @@ st_reg_operand (op, mode) /* RC register. */ int -rc_reg_operand (op, mode) - register rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +rc_reg_operand (register rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { return REG_P (op) && IS_RC_OR_PSEUDO_REG (op); } int -call_address_operand (op, mode) - rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +call_address_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { return (REG_P (op) || symbolic_address_operand (op, mode)); } @@ -3312,9 +3195,8 @@ call_address_operand (op, mode) /* Symbolic address operand. */ int -symbolic_address_operand (op, mode) - register rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +symbolic_address_operand (register rtx op, + enum machine_mode mode ATTRIBUTE_UNUSED) { switch (GET_CODE (op)) { @@ -3331,9 +3213,7 @@ symbolic_address_operand (op, mode) /* Check dst operand of a move instruction. */ int -dst_operand (op, mode) - rtx op; - enum machine_mode mode; +dst_operand (rtx op, enum machine_mode mode) { if (GET_CODE (op) == SUBREG && mixed_subreg_operand (op, mode)) @@ -3349,9 +3229,7 @@ dst_operand (op, mode) /* Check src operand of two operand arithmetic instructions. */ int -src_operand (op, mode) - rtx op; - enum machine_mode mode; +src_operand (rtx op, enum machine_mode mode) { if (GET_CODE (op) == SUBREG && mixed_subreg_operand (op, mode)) @@ -3393,9 +3271,7 @@ src_operand (op, mode) int -src_hi_operand (op, mode) - rtx op; - enum machine_mode mode; +src_hi_operand (rtx op, enum machine_mode mode) { if (c4x_O_constant (op)) return 1; @@ -3406,9 +3282,7 @@ src_hi_operand (op, mode) /* Check src operand of two operand logical instructions. */ int -lsrc_operand (op, mode) - rtx op; - enum machine_mode mode; +lsrc_operand (rtx op, enum machine_mode mode) { if (mode == VOIDmode) mode = GET_MODE (op); @@ -3426,9 +3300,7 @@ lsrc_operand (op, mode) /* Check src operand of two operand tricky instructions. */ int -tsrc_operand (op, mode) - rtx op; - enum machine_mode mode; +tsrc_operand (rtx op, enum machine_mode mode) { if (mode == VOIDmode) mode = GET_MODE (op); @@ -3446,9 +3318,7 @@ tsrc_operand (op, mode) /* Check src operand of two operand non immedidate instructions. */ int -nonimmediate_src_operand (op, mode) - rtx op; - enum machine_mode mode; +nonimmediate_src_operand (rtx op, enum machine_mode mode) { if (GET_CODE (op) == CONST_INT || GET_CODE (op) == CONST_DOUBLE) return 0; @@ -3460,9 +3330,7 @@ nonimmediate_src_operand (op, mode) /* Check logical src operand of two operand non immedidate instructions. */ int -nonimmediate_lsrc_operand (op, mode) - rtx op; - enum machine_mode mode; +nonimmediate_lsrc_operand (rtx op, enum machine_mode mode) { if (GET_CODE (op) == CONST_INT || GET_CODE (op) == CONST_DOUBLE) return 0; @@ -3472,9 +3340,7 @@ nonimmediate_lsrc_operand (op, mode) int -reg_or_const_operand (op, mode) - rtx op; - enum machine_mode mode; +reg_or_const_operand (rtx op, enum machine_mode mode) { return reg_operand (op, mode) || const_operand (op, mode); } @@ -3483,9 +3349,7 @@ reg_or_const_operand (op, mode) /* Check for indirect operands allowable in parallel instruction. */ int -par_ind_operand (op, mode) - rtx op; - enum machine_mode mode; +par_ind_operand (rtx op, enum machine_mode mode) { if (mode != VOIDmode && mode != GET_MODE (op)) return 0; @@ -3497,21 +3361,14 @@ par_ind_operand (op, mode) /* Check for operands allowable in parallel instruction. */ int -parallel_operand (op, mode) - rtx op; - enum machine_mode mode; +parallel_operand (rtx op, enum machine_mode mode) { return ext_low_reg_operand (op, mode) || par_ind_operand (op, mode); } static void -c4x_S_address_parse (op, base, incdec, index, disp) - rtx op; - int *base; - int *incdec; - int *index; - int *disp; +c4x_S_address_parse (rtx op, int *base, int *incdec, int *index, int *disp) { *base = 0; *incdec = 0; @@ -3614,11 +3471,7 @@ c4x_S_address_parse (op, base, incdec, index, disp) int -c4x_address_conflict (op0, op1, store0, store1) - rtx op0; - rtx op1; - int store0; - int store1; +c4x_address_conflict (rtx op0, rtx op1, int store0, int store1) { int base0; int base1; @@ -3681,10 +3534,7 @@ c4x_address_conflict (op0, op1, store0, store1) /* Check for while loop inside a decrement and branch loop. */ int -c4x_label_conflict (insn, jump, db) - rtx insn; - rtx jump; - rtx db; +c4x_label_conflict (rtx insn, rtx jump, rtx db) { while (insn) { @@ -3704,9 +3554,8 @@ c4x_label_conflict (insn, jump, db) /* Validate combination of operands for parallel load/store instructions. */ int -valid_parallel_load_store (operands, mode) - rtx *operands; - enum machine_mode mode ATTRIBUTE_UNUSED; +valid_parallel_load_store (rtx *operands, + enum machine_mode mode ATTRIBUTE_UNUSED) { rtx op0 = operands[0]; rtx op1 = operands[1]; @@ -3760,9 +3609,8 @@ valid_parallel_load_store (operands, mode) int -valid_parallel_operands_4 (operands, mode) - rtx *operands; - enum machine_mode mode ATTRIBUTE_UNUSED; +valid_parallel_operands_4 (rtx *operands, + enum machine_mode mode ATTRIBUTE_UNUSED) { rtx op0 = operands[0]; rtx op2 = operands[2]; @@ -3785,9 +3633,8 @@ valid_parallel_operands_4 (operands, mode) int -valid_parallel_operands_5 (operands, mode) - rtx *operands; - enum machine_mode mode ATTRIBUTE_UNUSED; +valid_parallel_operands_5 (rtx *operands, + enum machine_mode mode ATTRIBUTE_UNUSED) { int regs = 0; rtx op0 = operands[0]; @@ -3826,9 +3673,8 @@ valid_parallel_operands_5 (operands, mode) int -valid_parallel_operands_6 (operands, mode) - rtx *operands; - enum machine_mode mode ATTRIBUTE_UNUSED; +valid_parallel_operands_6 (rtx *operands, + enum machine_mode mode ATTRIBUTE_UNUSED) { int regs = 0; rtx op0 = operands[0]; @@ -3882,11 +3728,9 @@ valid_parallel_operands_6 (operands, mode) that the destination regno is valid if we have a 2 operand insn. */ static int -c4x_valid_operands (code, operands, mode, force) - enum rtx_code code; - rtx *operands; - enum machine_mode mode ATTRIBUTE_UNUSED; - int force; +c4x_valid_operands (enum rtx_code code, rtx *operands, + enum machine_mode mode ATTRIBUTE_UNUSED, + int force) { rtx op1; rtx op2; @@ -4004,10 +3848,7 @@ c4x_valid_operands (code, operands, mode, force) } -int valid_operands (code, operands, mode) - enum rtx_code code; - rtx *operands; - enum machine_mode mode; +int valid_operands (enum rtx_code code, rtx *operands, enum machine_mode mode) { /* If we are not optimizing then we have to let anything go and let @@ -4023,10 +3864,7 @@ int valid_operands (code, operands, mode) int -legitimize_operands (code, operands, mode) - enum rtx_code code; - rtx *operands; - enum machine_mode mode; +legitimize_operands (enum rtx_code code, rtx *operands, enum machine_mode mode) { /* Compare only has 2 operands. */ if (code == COMPARE) @@ -4114,9 +3952,7 @@ legitimize_operands (code, operands, mode) /* The following predicates are used for instruction scheduling. */ int -group1_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +group1_reg_operand (rtx op, enum machine_mode mode) { if (mode != VOIDmode && mode != GET_MODE (op)) return 0; @@ -4127,9 +3963,7 @@ group1_reg_operand (op, mode) int -group1_mem_operand (op, mode) - rtx op; - enum machine_mode mode; +group1_mem_operand (rtx op, enum machine_mode mode) { if (mode != VOIDmode && mode != GET_MODE (op)) return 0; @@ -4157,9 +3991,7 @@ group1_mem_operand (op, mode) /* Return true if any one of the address registers. */ int -arx_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +arx_reg_operand (rtx op, enum machine_mode mode) { if (mode != VOIDmode && mode != GET_MODE (op)) return 0; @@ -4170,10 +4002,7 @@ arx_reg_operand (op, mode) static int -c4x_arn_reg_operand (op, mode, regno) - rtx op; - enum machine_mode mode; - unsigned int regno; +c4x_arn_reg_operand (rtx op, enum machine_mode mode, unsigned int regno) { if (mode != VOIDmode && mode != GET_MODE (op)) return 0; @@ -4184,10 +4013,7 @@ c4x_arn_reg_operand (op, mode, regno) static int -c4x_arn_mem_operand (op, mode, regno) - rtx op; - enum machine_mode mode; - unsigned int regno; +c4x_arn_mem_operand (rtx op, enum machine_mode mode, unsigned int regno) { if (mode != VOIDmode && mode != GET_MODE (op)) return 0; @@ -4239,180 +4065,140 @@ c4x_arn_mem_operand (op, mode, regno) int -ar0_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +ar0_reg_operand (rtx op, enum machine_mode mode) { return c4x_arn_reg_operand (op, mode, AR0_REGNO); } int -ar0_mem_operand (op, mode) - rtx op; - enum machine_mode mode; +ar0_mem_operand (rtx op, enum machine_mode mode) { return c4x_arn_mem_operand (op, mode, AR0_REGNO); } int -ar1_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +ar1_reg_operand (rtx op, enum machine_mode mode) { return c4x_arn_reg_operand (op, mode, AR1_REGNO); } int -ar1_mem_operand (op, mode) - rtx op; - enum machine_mode mode; +ar1_mem_operand (rtx op, enum machine_mode mode) { return c4x_arn_mem_operand (op, mode, AR1_REGNO); } int -ar2_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +ar2_reg_operand (rtx op, enum machine_mode mode) { return c4x_arn_reg_operand (op, mode, AR2_REGNO); } int -ar2_mem_operand (op, mode) - rtx op; - enum machine_mode mode; +ar2_mem_operand (rtx op, enum machine_mode mode) { return c4x_arn_mem_operand (op, mode, AR2_REGNO); } int -ar3_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +ar3_reg_operand (rtx op, enum machine_mode mode) { return c4x_arn_reg_operand (op, mode, AR3_REGNO); } int -ar3_mem_operand (op, mode) - rtx op; - enum machine_mode mode; +ar3_mem_operand (rtx op, enum machine_mode mode) { return c4x_arn_mem_operand (op, mode, AR3_REGNO); } int -ar4_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +ar4_reg_operand (rtx op, enum machine_mode mode) { return c4x_arn_reg_operand (op, mode, AR4_REGNO); } int -ar4_mem_operand (op, mode) - rtx op; - enum machine_mode mode; +ar4_mem_operand (rtx op, enum machine_mode mode) { return c4x_arn_mem_operand (op, mode, AR4_REGNO); } int -ar5_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +ar5_reg_operand (rtx op, enum machine_mode mode) { return c4x_arn_reg_operand (op, mode, AR5_REGNO); } int -ar5_mem_operand (op, mode) - rtx op; - enum machine_mode mode; +ar5_mem_operand (rtx op, enum machine_mode mode) { return c4x_arn_mem_operand (op, mode, AR5_REGNO); } int -ar6_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +ar6_reg_operand (rtx op, enum machine_mode mode) { return c4x_arn_reg_operand (op, mode, AR6_REGNO); } int -ar6_mem_operand (op, mode) - rtx op; - enum machine_mode mode; +ar6_mem_operand (rtx op, enum machine_mode mode) { return c4x_arn_mem_operand (op, mode, AR6_REGNO); } int -ar7_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +ar7_reg_operand (rtx op, enum machine_mode mode) { return c4x_arn_reg_operand (op, mode, AR7_REGNO); } int -ar7_mem_operand (op, mode) - rtx op; - enum machine_mode mode; +ar7_mem_operand (rtx op, enum machine_mode mode) { return c4x_arn_mem_operand (op, mode, AR7_REGNO); } int -ir0_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +ir0_reg_operand (rtx op, enum machine_mode mode) { return c4x_arn_reg_operand (op, mode, IR0_REGNO); } int -ir0_mem_operand (op, mode) - rtx op; - enum machine_mode mode; +ir0_mem_operand (rtx op, enum machine_mode mode) { return c4x_arn_mem_operand (op, mode, IR0_REGNO); } int -ir1_reg_operand (op, mode) - rtx op; - enum machine_mode mode; +ir1_reg_operand (rtx op, enum machine_mode mode) { return c4x_arn_reg_operand (op, mode, IR1_REGNO); } int -ir1_mem_operand (op, mode) - rtx op; - enum machine_mode mode; +ir1_mem_operand (rtx op, enum machine_mode mode) { return c4x_arn_mem_operand (op, mode, IR1_REGNO); } @@ -4422,11 +4208,8 @@ ir1_mem_operand (op, mode) addressing. */ rtx -c4x_operand_subword (op, i, validate_address, mode) - rtx op; - int i; - int validate_address; - enum machine_mode mode; +c4x_operand_subword (rtx op, int i, int validate_address, + enum machine_mode mode) { if (mode != HImode && mode != HFmode) fatal_insn ("c4x_operand_subword: invalid mode", op); @@ -4499,8 +4282,7 @@ static struct name_list *extern_head; present on external list. */ void -c4x_global_label (name) - const char *name; +c4x_global_label (const char *name) { struct name_list *p, *last; @@ -4540,8 +4322,7 @@ c4x_global_label (name) /* Add NAME to list of external symbols. */ void -c4x_external_ref (name) - const char *name; +c4x_external_ref (const char *name) { struct name_list *p; @@ -4573,7 +4354,7 @@ c4x_external_ref (name) This is only required for ISRs if we are paranoid that someone may have quietly changed this register on the sly. */ static void -c4x_file_start () +c4x_file_start (void) { int dspversion = 0; if (TARGET_C30) dspversion = 30; @@ -4590,7 +4371,7 @@ c4x_file_start () static void -c4x_file_end () +c4x_file_end (void) { struct name_list *p; @@ -4608,9 +4389,7 @@ c4x_file_end () static void -c4x_check_attribute (attrib, list, decl, attributes) - const char *attrib; - tree list, decl, *attributes; +c4x_check_attribute (const char *attrib, tree list, tree decl, tree *attributes) { while (list != NULL_TREE && IDENTIFIER_POINTER (TREE_PURPOSE (list)) @@ -4623,8 +4402,7 @@ c4x_check_attribute (attrib, list, decl, attributes) static void -c4x_insert_attributes (decl, attributes) - tree decl, *attributes; +c4x_insert_attributes (tree decl, tree *attributes) { switch (TREE_CODE (decl)) { @@ -4658,12 +4436,10 @@ const struct attribute_spec c4x_attribute_table[] = /* Handle an attribute requiring a FUNCTION_TYPE; arguments as in struct attribute_spec.handler. */ static tree -c4x_handle_fntype_attribute (node, name, args, flags, no_add_attrs) - tree *node; - tree name; - tree args ATTRIBUTE_UNUSED; - int flags ATTRIBUTE_UNUSED; - bool *no_add_attrs; +c4x_handle_fntype_attribute (tree *node, tree name, + tree args ATTRIBUTE_UNUSED, + int flags ATTRIBUTE_UNUSED, + bool *no_add_attrs) { if (TREE_CODE (*node) != FUNCTION_TYPE) { @@ -4679,8 +4455,7 @@ c4x_handle_fntype_attribute (node, name, args, flags, no_add_attrs) /* !!! FIXME to emit RPTS correctly. */ int -c4x_rptb_rpts_p (insn, op) - rtx insn, op; +c4x_rptb_rpts_p (rtx insn, rtx op) { /* The next insn should be our label marking where the repeat block starts. */ @@ -4724,8 +4499,7 @@ c4x_rptb_rpts_p (insn, op) /* Check if register r11 is used as the destination of an insn. */ static int -c4x_r11_set_p(x) - rtx x; +c4x_r11_set_p(rtx x) { rtx set; int i, j; @@ -4764,8 +4538,7 @@ c4x_r11_set_p(x) sets the r11 register. Check for this situation. */ int -c4x_check_laj_p (insn) - rtx insn; +c4x_check_laj_p (rtx insn) { insn = prev_nonnote_insn (insn); @@ -4799,11 +4572,7 @@ c4x_check_laj_p (insn) #define READ_USE_COST 2 static int -c4x_adjust_cost (insn, link, dep_insn, cost) - rtx insn; - rtx link; - rtx dep_insn; - int cost; +c4x_adjust_cost (rtx insn, rtx link, rtx dep_insn, int cost) { /* Don't worry about this until we know what registers have been assigned. */ @@ -4936,7 +4705,7 @@ c4x_adjust_cost (insn, link, dep_insn, cost) } void -c4x_init_builtins () +c4x_init_builtins (void) { tree endlink = void_list_node; @@ -4980,12 +4749,10 @@ c4x_init_builtins () rtx -c4x_expand_builtin (exp, target, subtarget, mode, ignore) - tree exp; - rtx target; - rtx subtarget ATTRIBUTE_UNUSED; - enum machine_mode mode ATTRIBUTE_UNUSED; - int ignore ATTRIBUTE_UNUSED; +c4x_expand_builtin (tree exp, rtx target, + rtx subtarget ATTRIBUTE_UNUSED, + enum machine_mode mode ATTRIBUTE_UNUSED, + int ignore ATTRIBUTE_UNUSED) { tree fndecl = TREE_OPERAND (TREE_OPERAND (exp, 0), 0); unsigned int fcode = DECL_FUNCTION_CODE (fndecl); @@ -5072,17 +4839,13 @@ c4x_expand_builtin (exp, target, subtarget, mode, ignore) } static void -c4x_asm_named_section (name, flags) - const char *name; - unsigned int flags ATTRIBUTE_UNUSED; +c4x_asm_named_section (const char *name, unsigned int flags ATTRIBUTE_UNUSED) { fprintf (asm_out_file, "\t.sect\t\"%s\"\n", name); } static void -c4x_globalize_label (stream, name) - FILE *stream; - const char *name; +c4x_globalize_label (FILE *stream, const char *name) { default_globalize_label (stream, name); c4x_global_label (name); @@ -5098,10 +4861,7 @@ c4x_globalize_label (stream, name) scanned. In either case, *TOTAL contains the cost result. */ static bool -c4x_rtx_costs (x, code, outer_code, total) - rtx x; - int code, outer_code; - int *total; +c4x_rtx_costs (rtx x, int code, int outer_code, int *total) { HOST_WIDE_INT val; diff --git a/gcc/config/c4x/c4x.h b/gcc/config/c4x/c4x.h index 3fa2d91ef6e..5a59740e5db 100644 --- a/gcc/config/c4x/c4x.h +++ b/gcc/config/c4x/c4x.h @@ -1519,9 +1519,9 @@ if (REG_P (OP1) && ! REG_P (OP0)) \ FINI_SECTION_FUNCTION #define INIT_SECTION_FUNCTION \ -extern void init_section PARAMS ((void)); \ +extern void init_section (void); \ void \ -init_section () \ +init_section (void) \ { \ if (in_section != in_init) \ { \ diff --git a/gcc/config/pdp11/pdp11-protos.h b/gcc/config/pdp11/pdp11-protos.h index a0e77222fb4..2aebab01dc5 100644 --- a/gcc/config/pdp11/pdp11-protos.h +++ b/gcc/config/pdp11/pdp11-protos.h @@ -1,5 +1,5 @@ /* Definitions of target machine for GNU compiler, for the pdp-11 - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2003 Free Software Foundation, Inc. Contributed by Michael K. Gschwind (mike@vlsivie.tuwien.ac.at). This file is part of GCC. @@ -21,23 +21,23 @@ Boston, MA 02111-1307, USA. */ /* declarations */ #ifdef RTX_CODE -extern int arith_operand PARAMS ((rtx, enum machine_mode)); -extern int const_immediate_operand PARAMS ((rtx, enum machine_mode)); -extern int expand_shift_operand PARAMS ((rtx, enum machine_mode)); -extern int immediate15_operand PARAMS ((rtx, enum machine_mode)); -extern int simple_memory_operand PARAMS ((rtx, enum machine_mode)); -extern int comp_operator PARAMS ((rtx, enum machine_mode)); +extern int arith_operand (rtx, enum machine_mode); +extern int const_immediate_operand (rtx, enum machine_mode); +extern int expand_shift_operand (rtx, enum machine_mode); +extern int immediate15_operand (rtx, enum machine_mode); +extern int simple_memory_operand (rtx, enum machine_mode); +extern int comp_operator (rtx, enum machine_mode); -extern int legitimate_address_p PARAMS ((enum machine_mode, rtx)); -extern void notice_update_cc_on_set PARAMS ((rtx, rtx)); -extern void output_addr_const_pdp11 PARAMS ((FILE *, rtx)); -extern const char *output_move_double PARAMS ((rtx *)); -extern const char *output_move_quad PARAMS ((rtx *)); -extern const char *output_block_move PARAMS ((rtx *)); -extern void print_operand_address PARAMS ((FILE *, rtx)); -extern int register_move_cost PARAMS ((enum reg_class, enum reg_class)); -extern int comparison_operator_index PARAMS ((rtx)); +extern int legitimate_address_p (enum machine_mode, rtx); +extern void notice_update_cc_on_set (rtx, rtx); +extern void output_addr_const_pdp11 (FILE *, rtx); +extern const char *output_move_double (rtx *); +extern const char *output_move_quad (rtx *); +extern const char *output_block_move (rtx *); +extern void print_operand_address (FILE *, rtx); +extern int register_move_cost (enum reg_class, enum reg_class); +extern int comparison_operator_index (rtx); #endif /* RTX_CODE */ -extern void output_ascii PARAMS ((FILE *, const char *, int)); -extern const char *output_jump PARAMS ((const char *, const char *, int)); +extern void output_ascii (FILE *, const char *, int); +extern const char *output_jump (const char *, const char *, int); diff --git a/gcc/config/pdp11/pdp11.c b/gcc/config/pdp11/pdp11.c index dbb1859d3db..02565432cda 100644 --- a/gcc/config/pdp11/pdp11.c +++ b/gcc/config/pdp11/pdp11.c @@ -54,12 +54,12 @@ int current_first_parm_offset; /* This is where the condition code register lives. */ /* rtx cc0_reg_rtx; - no longer needed? */ -static rtx find_addr_reg PARAMS ((rtx)); -static const char *singlemove_string PARAMS ((rtx *)); -static bool pdp11_assemble_integer PARAMS ((rtx, unsigned int, int)); -static void pdp11_output_function_prologue PARAMS ((FILE *, HOST_WIDE_INT)); -static void pdp11_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT)); -static bool pdp11_rtx_costs PARAMS ((rtx, int, int, int *)); +static rtx find_addr_reg (rtx); +static const char *singlemove_string (rtx *); +static bool pdp11_assemble_integer (rtx, unsigned int, int); +static void pdp11_output_function_prologue (FILE *, HOST_WIDE_INT); +static void pdp11_output_function_epilogue (FILE *, HOST_WIDE_INT); +static bool pdp11_rtx_costs (rtx, int, int, int *); /* Initialize the GCC target structure. */ #undef TARGET_ASM_BYTE_OP @@ -89,33 +89,25 @@ struct gcc_target targetm = TARGET_INITIALIZER; /* Nonzero if OP is a valid second operand for an arithmetic insn. */ int -arith_operand (op, mode) - rtx op; - enum machine_mode mode; +arith_operand (rtx op, enum machine_mode mode) { return (register_operand (op, mode) || GET_CODE (op) == CONST_INT); } int -const_immediate_operand (op, mode) - rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +const_immediate_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { return (GET_CODE (op) == CONST_INT); } int -immediate15_operand (op, mode) - rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +immediate15_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { return (GET_CODE (op) == CONST_INT && ((INTVAL (op) & 0x8000) == 0x0000)); } int -expand_shift_operand (op, mode) - rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +expand_shift_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { return (GET_CODE (op) == CONST_INT && abs (INTVAL(op)) > 1 @@ -134,9 +126,7 @@ expand_shift_operand (op, mode) #ifdef TWO_BSD static void -pdp11_output_function_prologue (stream, size) - FILE *stream; - HOST_WIDE_INT size; +pdp11_output_function_prologue (FILE *stream, HOST_WIDE_INT size) { fprintf (stream, "\tjsr r5, csv\n"); if (size) @@ -151,9 +141,7 @@ pdp11_output_function_prologue (stream, size) #else /* !TWO_BSD */ static void -pdp11_output_function_prologue (stream, size) - FILE *stream; - HOST_WIDE_INT size; +pdp11_output_function_prologue (FILE *stream, HOST_WIDE_INT size) { HOST_WIDE_INT fsize = ((size) + 1) & ~1; int regno; @@ -249,9 +237,8 @@ pdp11_output_function_prologue (stream, size) #ifdef TWO_BSD static void -pdp11_output_function_epilogue (stream, size) - FILE *stream; - HOST_WIDE_INT size ATTRIBUTE_UNUSED; +pdp11_output_function_epilogue (FILE *stream, + HOST_WIDE_INT size ATTRIBUTE_UNUSED) { fprintf (stream, "\t/* SP ignored by cret? */\n"); fprintf (stream, "\tjmp cret\n"); @@ -260,9 +247,7 @@ pdp11_output_function_epilogue (stream, size) #else /* !TWO_BSD */ static void -pdp11_output_function_epilogue (stream, size) - FILE *stream; - HOST_WIDE_INT size; +pdp11_output_function_epilogue (FILE *stream, HOST_WIDE_INT size) { HOST_WIDE_INT fsize = ((size) + 1) & ~1; int i, j, k; @@ -369,8 +354,7 @@ pdp11_output_function_epilogue (stream, size) /* Return the best assembler insn template for moving operands[1] into operands[0] as a fullword. */ static const char * -singlemove_string (operands) - rtx *operands; +singlemove_string (rtx *operands) { if (operands[1] != const0_rtx) return "mov %1,%0"; @@ -383,8 +367,7 @@ singlemove_string (operands) with operands OPERANDS. */ const char * -output_move_double (operands) - rtx *operands; +output_move_double (rtx *operands) { enum { REGOP, OFFSOP, MEMOP, PUSHOP, POPOP, CNSTOP, RNDOP } optype0, optype1; rtx latehalf[2]; @@ -562,8 +545,7 @@ output_move_double (operands) with operands OPERANDS. */ const char * -output_move_quad (operands) - rtx *operands; +output_move_quad (rtx *operands) { enum { REGOP, OFFSOP, MEMOP, PUSHOP, POPOP, CNSTOP, RNDOP } optype0, optype1; rtx latehalf[2]; @@ -787,8 +769,7 @@ output_move_quad (operands) ADDR can be effectively incremented by incrementing REG. */ static rtx -find_addr_reg (addr) - rtx addr; +find_addr_reg (rtx addr) { while (GET_CODE (addr) == PLUS) { @@ -808,10 +789,7 @@ find_addr_reg (addr) /* Output an ascii string. */ void -output_ascii (file, p, size) - FILE *file; - const char *p; - int size; +output_ascii (FILE *file, const char *p, int size) { int i; @@ -835,9 +813,7 @@ output_ascii (file, p, size) /* --- stole from out-vax, needs changes */ void -print_operand_address (file, addr) - FILE *file; - register rtx addr; +print_operand_address (FILE *file, register rtx addr) { register rtx reg1, reg2, breg, ireg; rtx offset; @@ -967,10 +943,7 @@ print_operand_address (file, addr) pdp-specific version of output_addr_const. */ static bool -pdp11_assemble_integer (x, size, aligned_p) - rtx x; - unsigned int size; - int aligned_p; +pdp11_assemble_integer (rtx x, unsigned int size, int aligned_p) { if (aligned_p) switch (size) @@ -1020,10 +993,7 @@ register_move_cost(c1, c2) } static bool -pdp11_rtx_costs (x, code, outer_code, total) - rtx x; - int code, outer_code ATTRIBUTE_UNUSED; - int *total; +pdp11_rtx_costs (rtx x, int code, int outer_code ATTRIBUTE_UNUSED, int *total) { switch (code) { @@ -1130,9 +1100,7 @@ pdp11_rtx_costs (x, code, outer_code, total) } const char * -output_jump(pos, neg, length) - const char *pos, *neg; - int length; +output_jump(const char *pos, const char *neg, int length) { static int x = 0; @@ -1173,9 +1141,7 @@ output_jump(pos, neg, length) } void -notice_update_cc_on_set(exp, insn) - rtx exp; - rtx insn ATTRIBUTE_UNUSED; +notice_update_cc_on_set(rtx exp, rtx insn ATTRIBUTE_UNUSED) { if (GET_CODE (SET_DEST (exp)) == CC0) { @@ -1245,9 +1211,7 @@ notice_update_cc_on_set(exp, insn) int -simple_memory_operand(op, mode) - rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +simple_memory_operand(rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { rtx addr; @@ -1320,8 +1284,7 @@ simple_memory_operand(op, mode) const char * -output_block_move(operands) - rtx *operands; +output_block_move(rtx *operands) { static int count = 0; char buf[200]; @@ -1560,8 +1523,7 @@ output_block_move(operands) /* for future use */ int -comparison_operator_index(op) - rtx op; +comparison_operator_index(rtx op) { switch (GET_CODE(op)) { @@ -1602,18 +1564,14 @@ comparison_operator_index(op) /* tests whether the rtx is a comparison operator */ int -comp_operator (op, mode) - rtx op; - enum machine_mode mode ATTRIBUTE_UNUSED; +comp_operator (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { return comparison_operator_index(op) >= 0; } int -legitimate_address_p (mode, address) - enum machine_mode mode; - rtx address; +legitimate_address_p (enum machine_mode mode, rtx address) { /* #define REG_OK_STRICT */ GO_IF_LEGITIMATE_ADDRESS(mode, address, win); @@ -1632,9 +1590,7 @@ legitimate_address_p (mode, address) So this copy should get called whenever needed. */ void -output_addr_const_pdp11 (file, x) - FILE *file; - rtx x; +output_addr_const_pdp11 (FILE *file, rtx x) { char buf[256];