Commit 2b49e0aa by Kelley Cook Committed by R. Kelley Cook

arc-protos.h: Update to C90 prototypes.

2003-11-19  Kelley Cook  <kcook@gcc.gnu.org>

	* config/arc/arc-protos.h: Update to C90 prototypes.
	* config/arc/arc.c: Likewise.
	* config/arc/initfini.c: Likewise.

From-SVN: r73753
parent c2a141a0
2003-11-19 Kelley Cook <kcook@gcc.gnu.org>
* config/arc/arc-protos.h: Update to C90 prototypes.
* config/arc/arc.c: Likewise.
* config/arc/initfini.c: Likewise.
2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com> 2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
* stmt.c (expand_goto): Memory clobbers added. * stmt.c (expand_goto): Memory clobbers added.
......
...@@ -20,58 +20,57 @@ Boston, MA 02111-1307, USA. */ ...@@ -20,58 +20,57 @@ Boston, MA 02111-1307, USA. */
#ifdef RTX_CODE #ifdef RTX_CODE
#ifdef TREE_CODE #ifdef TREE_CODE
extern void arc_va_start PARAMS ((tree, rtx)); extern void arc_va_start (tree, rtx);
extern rtx arc_va_arg PARAMS ((tree, tree)); extern rtx arc_va_arg (tree, tree);
#endif /* TREE_CODE */ #endif /* TREE_CODE */
extern enum machine_mode arc_select_cc_mode PARAMS ((enum rtx_code, rtx, rtx)); extern enum machine_mode arc_select_cc_mode (enum rtx_code, rtx, rtx);
/* Define the function that build the compare insn for scc and bcc. */ /* Define the function that build the compare insn for scc and bcc. */
extern struct rtx_def *gen_compare_reg PARAMS ((enum rtx_code, rtx, rtx)); extern struct rtx_def *gen_compare_reg (enum rtx_code, rtx, rtx);
/* Declarations for various fns used in the .md file. */ /* Declarations for various fns used in the .md file. */
extern const char *output_shift PARAMS ((rtx *)); extern const char *output_shift (rtx *);
extern int symbolic_operand PARAMS ((rtx, enum machine_mode)); extern int symbolic_operand (rtx, enum machine_mode);
extern int arc_double_limm_p PARAMS ((rtx)); extern int arc_double_limm_p (rtx);
extern int arc_eligible_for_epilogue_delay PARAMS ((rtx, int)); extern int arc_eligible_for_epilogue_delay (rtx, int);
extern void arc_initialize_trampoline PARAMS ((rtx, rtx, rtx)); extern void arc_initialize_trampoline (rtx, rtx, rtx);
extern void arc_print_operand PARAMS ((FILE *, rtx, int)); extern void arc_print_operand (FILE *, rtx, int);
extern void arc_print_operand_address PARAMS ((FILE *, rtx)); extern void arc_print_operand_address (FILE *, rtx);
extern void arc_final_prescan_insn PARAMS ((rtx, rtx *, int)); extern void arc_final_prescan_insn (rtx, rtx *, int);
extern int call_address_operand PARAMS ((rtx, enum machine_mode)); extern int call_address_operand (rtx, enum machine_mode);
extern int call_operand PARAMS ((rtx, enum machine_mode)); extern int call_operand (rtx, enum machine_mode);
extern int symbolic_memory_operand PARAMS ((rtx, enum machine_mode)); extern int symbolic_memory_operand (rtx, enum machine_mode);
extern int short_immediate_operand PARAMS ((rtx, enum machine_mode)); extern int short_immediate_operand (rtx, enum machine_mode);
extern int long_immediate_operand PARAMS ((rtx, enum machine_mode)); extern int long_immediate_operand (rtx, enum machine_mode);
extern int long_immediate_loadstore_operand PARAMS ((rtx, enum machine_mode)); extern int long_immediate_loadstore_operand (rtx, enum machine_mode);
extern int move_src_operand PARAMS ((rtx, enum machine_mode)); extern int move_src_operand (rtx, enum machine_mode);
extern int move_double_src_operand PARAMS ((rtx, enum machine_mode)); extern int move_double_src_operand (rtx, enum machine_mode);
extern int move_dest_operand PARAMS ((rtx, enum machine_mode)); extern int move_dest_operand (rtx, enum machine_mode);
extern int load_update_operand PARAMS ((rtx, enum machine_mode)); extern int load_update_operand (rtx, enum machine_mode);
extern int store_update_operand PARAMS ((rtx, enum machine_mode)); extern int store_update_operand (rtx, enum machine_mode);
extern int nonvol_nonimm_operand PARAMS ((rtx, enum machine_mode)); extern int nonvol_nonimm_operand (rtx, enum machine_mode);
extern int const_sint32_operand PARAMS ((rtx, enum machine_mode)); extern int const_sint32_operand (rtx, enum machine_mode);
extern int const_uint32_operand PARAMS ((rtx, enum machine_mode)); extern int const_uint32_operand (rtx, enum machine_mode);
extern int proper_comparison_operator PARAMS ((rtx, enum machine_mode)); extern int proper_comparison_operator (rtx, enum machine_mode);
extern int shift_operator PARAMS ((rtx, enum machine_mode)); extern int shift_operator (rtx, enum machine_mode);
#endif /* RTX_CODE */ #endif /* RTX_CODE */
#ifdef TREE_CODE #ifdef TREE_CODE
extern enum arc_function_type arc_compute_function_type PARAMS ((tree)); extern enum arc_function_type arc_compute_function_type (tree);
extern void arc_setup_incoming_varargs PARAMS ((CUMULATIVE_ARGS *, extern void arc_setup_incoming_varargs (CUMULATIVE_ARGS *, enum machine_mode,
enum machine_mode, tree, tree, int *, int);
int *, int));
#endif /* TREE_CODE */ #endif /* TREE_CODE */
extern void arc_init PARAMS ((void)); extern void arc_init (void);
extern unsigned int arc_compute_frame_size PARAMS ((int)); extern unsigned int arc_compute_frame_size (int);
extern void arc_save_restore PARAMS ((FILE *, const char *, unsigned int, extern void arc_save_restore (FILE *, const char *, unsigned int,
unsigned int, const char *)); unsigned int, const char *);
extern int arc_delay_slots_for_epilogue PARAMS ((void)); extern int arc_delay_slots_for_epilogue (void);
extern void arc_finalize_pic PARAMS ((void)); extern void arc_finalize_pic (void);
extern void arc_ccfsm_at_label PARAMS ((const char *, int)); extern void arc_ccfsm_at_label (const char *, int);
extern int arc_ccfsm_branch_deleted_p PARAMS ((void)); extern int arc_ccfsm_branch_deleted_p (void);
extern void arc_ccfsm_record_branch_deleted PARAMS ((void)); extern void arc_ccfsm_record_branch_deleted (void);
...@@ -86,18 +86,18 @@ static int arc_ccfsm_target_label; ...@@ -86,18 +86,18 @@ static int arc_ccfsm_target_label;
arc_print_operand. */ arc_print_operand. */
static int last_insn_set_cc_p; static int last_insn_set_cc_p;
static int current_insn_set_cc_p; static int current_insn_set_cc_p;
static void record_cc_ref PARAMS ((rtx)); static void record_cc_ref (rtx);
static void arc_init_reg_tables PARAMS ((void)); static void arc_init_reg_tables (void);
static int get_arc_condition_code PARAMS ((rtx)); static int get_arc_condition_code (rtx);
const struct attribute_spec arc_attribute_table[]; const struct attribute_spec arc_attribute_table[];
static tree arc_handle_interrupt_attribute PARAMS ((tree *, tree, tree, int, bool *)); static tree arc_handle_interrupt_attribute (tree *, tree, tree, int, bool *);
static bool arc_assemble_integer PARAMS ((rtx, unsigned int, int)); static bool arc_assemble_integer (rtx, unsigned int, int);
static void arc_output_function_prologue PARAMS ((FILE *, HOST_WIDE_INT)); static void arc_output_function_prologue (FILE *, HOST_WIDE_INT);
static void arc_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT)); static void arc_output_function_epilogue (FILE *, HOST_WIDE_INT);
static void arc_file_start PARAMS ((void)); static void arc_file_start (void);
static void arc_internal_label PARAMS ((FILE *, const char *, unsigned long)); static void arc_internal_label (FILE *, const char *, unsigned long);
static bool arc_rtx_costs PARAMS ((rtx, int, int, int *)); static bool arc_rtx_costs (rtx, int, int, int *);
static int arc_address_cost PARAMS ((rtx)); static int arc_address_cost (rtx);
/* Initialize the GCC target structure. */ /* Initialize the GCC target structure. */
#undef TARGET_ASM_ALIGNED_HI_OP #undef TARGET_ASM_ALIGNED_HI_OP
...@@ -128,7 +128,7 @@ struct gcc_target targetm = TARGET_INITIALIZER; ...@@ -128,7 +128,7 @@ struct gcc_target targetm = TARGET_INITIALIZER;
/* Called by OVERRIDE_OPTIONS to initialize various things. */ /* Called by OVERRIDE_OPTIONS to initialize various things. */
void void
arc_init () arc_init (void)
{ {
char *tmp; char *tmp;
...@@ -183,8 +183,7 @@ static const char *const arc_condition_codes[] = ...@@ -183,8 +183,7 @@ static const char *const arc_condition_codes[] =
`(eq (...) (...))'. */ `(eq (...) (...))'. */
static int static int
get_arc_condition_code (comparison) get_arc_condition_code (rtx comparison)
rtx comparison;
{ {
switch (GET_CODE (comparison)) switch (GET_CODE (comparison))
{ {
...@@ -208,9 +207,9 @@ get_arc_condition_code (comparison) ...@@ -208,9 +207,9 @@ get_arc_condition_code (comparison)
return the mode to be used for the comparison. */ return the mode to be used for the comparison. */
enum machine_mode enum machine_mode
arc_select_cc_mode (op, x, y) arc_select_cc_mode (enum rtx_code op,
enum rtx_code op; rtx x ATTRIBUTE_UNUSED,
rtx x, y ATTRIBUTE_UNUSED; rtx y ATTRIBUTE_UNUSED)
{ {
switch (op) switch (op)
{ {
...@@ -284,7 +283,7 @@ unsigned int arc_mode_class [NUM_MACHINE_MODES]; ...@@ -284,7 +283,7 @@ unsigned int arc_mode_class [NUM_MACHINE_MODES];
enum reg_class arc_regno_reg_class[FIRST_PSEUDO_REGISTER]; enum reg_class arc_regno_reg_class[FIRST_PSEUDO_REGISTER];
static void static void
arc_init_reg_tables () arc_init_reg_tables (void)
{ {
int i; int i;
...@@ -357,12 +356,11 @@ const struct attribute_spec arc_attribute_table[] = ...@@ -357,12 +356,11 @@ const struct attribute_spec arc_attribute_table[] =
/* Handle an "interrupt" attribute; arguments as in /* Handle an "interrupt" attribute; arguments as in
struct attribute_spec.handler. */ struct attribute_spec.handler. */
static tree static tree
arc_handle_interrupt_attribute (node, name, args, flags, no_add_attrs) arc_handle_interrupt_attribute (tree *node ATTRIBUTE_UNUSED,
tree *node ATTRIBUTE_UNUSED; tree name,
tree name; tree args,
tree args; int flags ATTRIBUTE_UNUSED,
int flags ATTRIBUTE_UNUSED; bool *no_add_attrs)
bool *no_add_attrs;
{ {
tree value = TREE_VALUE (args); tree value = TREE_VALUE (args);
...@@ -387,9 +385,7 @@ arc_handle_interrupt_attribute (node, name, args, flags, no_add_attrs) ...@@ -387,9 +385,7 @@ arc_handle_interrupt_attribute (node, name, args, flags, no_add_attrs)
/* Acceptable arguments to the call insn. */ /* Acceptable arguments to the call insn. */
int int
call_address_operand (op, mode) call_address_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
return (symbolic_operand (op, mode) return (symbolic_operand (op, mode)
|| (GET_CODE (op) == CONST_INT && LEGITIMATE_CONSTANT_P (op)) || (GET_CODE (op) == CONST_INT && LEGITIMATE_CONSTANT_P (op))
...@@ -397,9 +393,7 @@ call_address_operand (op, mode) ...@@ -397,9 +393,7 @@ call_address_operand (op, mode)
} }
int int
call_operand (op, mode) call_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
if (GET_CODE (op) != MEM) if (GET_CODE (op) != MEM)
return 0; return 0;
...@@ -410,9 +404,7 @@ call_operand (op, mode) ...@@ -410,9 +404,7 @@ call_operand (op, mode)
/* Returns 1 if OP is a symbol reference. */ /* Returns 1 if OP is a symbol reference. */
int int
symbolic_operand (op, mode) symbolic_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
switch (GET_CODE (op)) switch (GET_CODE (op))
{ {
...@@ -429,9 +421,7 @@ symbolic_operand (op, mode) ...@@ -429,9 +421,7 @@ symbolic_operand (op, mode)
operand of mode MODE. */ operand of mode MODE. */
int int
symbolic_memory_operand (op, mode) symbolic_memory_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
if (GET_CODE (op) == SUBREG) if (GET_CODE (op) == SUBREG)
op = SUBREG_REG (op); op = SUBREG_REG (op);
...@@ -445,9 +435,7 @@ symbolic_memory_operand (op, mode) ...@@ -445,9 +435,7 @@ symbolic_memory_operand (op, mode)
/* Return true if OP is a short immediate (shimm) value. */ /* Return true if OP is a short immediate (shimm) value. */
int int
short_immediate_operand (op, mode) short_immediate_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
if (GET_CODE (op) != CONST_INT) if (GET_CODE (op) != CONST_INT)
return 0; return 0;
...@@ -458,9 +446,7 @@ short_immediate_operand (op, mode) ...@@ -458,9 +446,7 @@ short_immediate_operand (op, mode)
This is currently only used when calculating length attributes. */ This is currently only used when calculating length attributes. */
int int
long_immediate_operand (op, mode) long_immediate_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
switch (GET_CODE (op)) switch (GET_CODE (op))
{ {
...@@ -488,9 +474,8 @@ long_immediate_operand (op, mode) ...@@ -488,9 +474,8 @@ long_immediate_operand (op, mode)
This is currently only used when calculating length attributes. */ This is currently only used when calculating length attributes. */
int int
long_immediate_loadstore_operand (op, mode) long_immediate_loadstore_operand (rtx op,
rtx op; enum machine_mode mode ATTRIBUTE_UNUSED)
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
if (GET_CODE (op) != MEM) if (GET_CODE (op) != MEM)
return 0; return 0;
...@@ -530,9 +515,7 @@ long_immediate_loadstore_operand (op, mode) ...@@ -530,9 +515,7 @@ long_immediate_loadstore_operand (op, mode)
move source. */ move source. */
int int
move_src_operand (op, mode) move_src_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
switch (GET_CODE (op)) switch (GET_CODE (op))
{ {
...@@ -572,9 +555,7 @@ move_src_operand (op, mode) ...@@ -572,9 +555,7 @@ move_src_operand (op, mode)
move source. */ move source. */
int int
move_double_src_operand (op, mode) move_double_src_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
switch (GET_CODE (op)) switch (GET_CODE (op))
{ {
...@@ -604,9 +585,7 @@ move_double_src_operand (op, mode) ...@@ -604,9 +585,7 @@ move_double_src_operand (op, mode)
/* Return true if OP is an acceptable argument for a move destination. */ /* Return true if OP is an acceptable argument for a move destination. */
int int
move_dest_operand (op, mode) move_dest_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
switch (GET_CODE (op)) switch (GET_CODE (op))
{ {
...@@ -629,9 +608,7 @@ move_dest_operand (op, mode) ...@@ -629,9 +608,7 @@ move_dest_operand (op, mode)
/* Return true if OP is valid load with update operand. */ /* Return true if OP is valid load with update operand. */
int int
load_update_operand (op, mode) load_update_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
if (GET_CODE (op) != MEM if (GET_CODE (op) != MEM
|| GET_MODE (op) != mode) || GET_MODE (op) != mode)
...@@ -648,9 +625,7 @@ load_update_operand (op, mode) ...@@ -648,9 +625,7 @@ load_update_operand (op, mode)
/* Return true if OP is valid store with update operand. */ /* Return true if OP is valid store with update operand. */
int int
store_update_operand (op, mode) store_update_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
if (GET_CODE (op) != MEM if (GET_CODE (op) != MEM
|| GET_MODE (op) != mode) || GET_MODE (op) != mode)
...@@ -670,9 +645,7 @@ store_update_operand (op, mode) ...@@ -670,9 +645,7 @@ store_update_operand (op, mode)
and only the standard movXX patterns are set up to handle them. */ and only the standard movXX patterns are set up to handle them. */
int int
nonvol_nonimm_operand (op, mode) nonvol_nonimm_operand (rtx op, enum machine_mode mode)
rtx op;
enum machine_mode mode;
{ {
if (GET_CODE (op) == MEM && MEM_VOLATILE_P (op)) if (GET_CODE (op) == MEM && MEM_VOLATILE_P (op))
return 0; return 0;
...@@ -684,9 +657,7 @@ nonvol_nonimm_operand (op, mode) ...@@ -684,9 +657,7 @@ nonvol_nonimm_operand (op, mode)
contexts. */ contexts. */
int int
const_sint32_operand (op, mode) const_sint32_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
/* All allowed constants will fit a CONST_INT. */ /* All allowed constants will fit a CONST_INT. */
return (GET_CODE (op) == CONST_INT return (GET_CODE (op) == CONST_INT
...@@ -698,9 +669,7 @@ const_sint32_operand (op, mode) ...@@ -698,9 +669,7 @@ const_sint32_operand (op, mode)
need some extra crud to make it work when hosted on 64-bit machines. */ need some extra crud to make it work when hosted on 64-bit machines. */
int int
const_uint32_operand (op, mode) const_uint32_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
#if HOST_BITS_PER_WIDE_INT > 32 #if HOST_BITS_PER_WIDE_INT > 32
/* All allowed constants will fit a CONST_INT. */ /* All allowed constants will fit a CONST_INT. */
...@@ -719,9 +688,7 @@ const_uint32_operand (op, mode) ...@@ -719,9 +688,7 @@ const_uint32_operand (op, mode)
comparisons that use the bits that are valid. */ comparisons that use the bits that are valid. */
int int
proper_comparison_operator (op, mode) proper_comparison_operator (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
enum rtx_code code = GET_CODE (op); enum rtx_code code = GET_CODE (op);
...@@ -742,9 +709,7 @@ proper_comparison_operator (op, mode) ...@@ -742,9 +709,7 @@ proper_comparison_operator (op, mode)
return the rtx for the cc reg in the proper mode. */ return the rtx for the cc reg in the proper mode. */
rtx rtx
gen_compare_reg (code, x, y) gen_compare_reg (enum rtx_code code, rtx x, rtx y)
enum rtx_code code;
rtx x, y;
{ {
enum machine_mode mode = SELECT_CC_MODE (code, x, y); enum machine_mode mode = SELECT_CC_MODE (code, x, y);
rtx cc_reg; rtx cc_reg;
...@@ -761,8 +726,7 @@ gen_compare_reg (code, x, y) ...@@ -761,8 +726,7 @@ gen_compare_reg (code, x, y)
We assume the value can be either signed or unsigned. */ We assume the value can be either signed or unsigned. */
int int
arc_double_limm_p (value) arc_double_limm_p (rtx value)
rtx value;
{ {
HOST_WIDE_INT low, high; HOST_WIDE_INT low, high;
...@@ -798,12 +762,11 @@ arc_double_limm_p (value) ...@@ -798,12 +762,11 @@ arc_double_limm_p (value)
to compensate. */ to compensate. */
void void
arc_setup_incoming_varargs (cum, mode, type, pretend_size, no_rtl) arc_setup_incoming_varargs (CUMULATIVE_ARGS *cum,
CUMULATIVE_ARGS *cum; enum machine_mode mode,
enum machine_mode mode; tree type ATTRIBUTE_UNUSED,
tree type ATTRIBUTE_UNUSED; int *pretend_size,
int *pretend_size; int no_rtl)
int no_rtl;
{ {
int first_anon_arg; int first_anon_arg;
...@@ -845,11 +808,7 @@ arc_setup_incoming_varargs (cum, mode, type, pretend_size, no_rtl) ...@@ -845,11 +808,7 @@ arc_setup_incoming_varargs (cum, mode, type, pretend_size, no_rtl)
scanned. In either case, *TOTAL contains the cost result. */ scanned. In either case, *TOTAL contains the cost result. */
static bool static bool
arc_rtx_costs (x, code, outer_code, total) arc_rtx_costs (rtx x, int code, int outer_code ATTRIBUTE_UNUSED, int *total)
rtx x;
int code;
int outer_code ATTRIBUTE_UNUSED;
int *total;
{ {
switch (code) switch (code)
{ {
...@@ -903,8 +862,7 @@ arc_rtx_costs (x, code, outer_code, total) ...@@ -903,8 +862,7 @@ arc_rtx_costs (x, code, outer_code, total)
If ADDR is not a valid address, its cost is irrelevant. */ If ADDR is not a valid address, its cost is irrelevant. */
static int static int
arc_address_cost (addr) arc_address_cost (rtx addr)
rtx addr;
{ {
switch (GET_CODE (addr)) switch (GET_CODE (addr))
{ {
...@@ -1019,8 +977,7 @@ static struct arc_frame_info zero_frame_info; ...@@ -1019,8 +977,7 @@ static struct arc_frame_info zero_frame_info;
call with DECL = NULL_TREE. */ call with DECL = NULL_TREE. */
enum arc_function_type enum arc_function_type
arc_compute_function_type (decl) arc_compute_function_type (tree decl)
tree decl;
{ {
tree a; tree a;
/* Cached value. */ /* Cached value. */
...@@ -1090,8 +1047,7 @@ arc_compute_function_type (decl) ...@@ -1090,8 +1047,7 @@ arc_compute_function_type (decl)
SIZE is the size needed for local variables. */ SIZE is the size needed for local variables. */
unsigned int unsigned int
arc_compute_frame_size (size) arc_compute_frame_size (int size /* # of var. bytes allocated. */)
int size; /* # of var. bytes allocated. */
{ {
int regno; int regno;
unsigned int total_size, var_size, args_size, pretend_size, extra_size; unsigned int total_size, var_size, args_size, pretend_size, extra_size;
...@@ -1155,12 +1111,11 @@ arc_compute_frame_size (size) ...@@ -1155,12 +1111,11 @@ arc_compute_frame_size (size)
/* Common code to save/restore registers. */ /* Common code to save/restore registers. */
void void
arc_save_restore (file, base_reg, offset, gmask, op) arc_save_restore (FILE *file,
FILE *file; const char *base_reg,
const char *base_reg; unsigned int offset,
unsigned int offset; unsigned int gmask,
unsigned int gmask; const char *op)
const char *op;
{ {
int regno; int regno;
...@@ -1183,10 +1138,7 @@ arc_save_restore (file, base_reg, offset, gmask, op) ...@@ -1183,10 +1138,7 @@ arc_save_restore (file, base_reg, offset, gmask, op)
symbols. */ symbols. */
static bool static bool
arc_assemble_integer (x, size, aligned_p) arc_assemble_integer (rtx x, unsigned int size, int aligned_p)
rtx x;
unsigned int size;
int aligned_p;
{ {
if (size == UNITS_PER_WORD && aligned_p if (size == UNITS_PER_WORD && aligned_p
&& ((GET_CODE (x) == SYMBOL_REF && SYMBOL_REF_FUNCTION_P (x)) && ((GET_CODE (x) == SYMBOL_REF && SYMBOL_REF_FUNCTION_P (x))
...@@ -1203,9 +1155,7 @@ arc_assemble_integer (x, size, aligned_p) ...@@ -1203,9 +1155,7 @@ arc_assemble_integer (x, size, aligned_p)
/* Set up the stack and frame pointer (if desired) for the function. */ /* Set up the stack and frame pointer (if desired) for the function. */
static void static void
arc_output_function_prologue (file, size) arc_output_function_prologue (FILE *file, HOST_WIDE_INT size)
FILE *file;
HOST_WIDE_INT size;
{ {
const char *sp_str = reg_names[STACK_POINTER_REGNUM]; const char *sp_str = reg_names[STACK_POINTER_REGNUM];
const char *fp_str = reg_names[FRAME_POINTER_REGNUM]; const char *fp_str = reg_names[FRAME_POINTER_REGNUM];
...@@ -1281,9 +1231,7 @@ arc_output_function_prologue (file, size) ...@@ -1281,9 +1231,7 @@ arc_output_function_prologue (file, size)
and regs. */ and regs. */
static void static void
arc_output_function_epilogue (file, size) arc_output_function_epilogue (FILE *file, HOST_WIDE_INT size)
FILE *file;
HOST_WIDE_INT size;
{ {
rtx epilogue_delay = current_function_epilogue_delay_list; rtx epilogue_delay = current_function_epilogue_delay_list;
int noepilogue = FALSE; int noepilogue = FALSE;
...@@ -1446,7 +1394,7 @@ arc_output_function_epilogue (file, size) ...@@ -1446,7 +1394,7 @@ arc_output_function_epilogue (file, size)
delay slot so for now we only consider functions with empty frames. */ delay slot so for now we only consider functions with empty frames. */
int int
arc_delay_slots_for_epilogue () arc_delay_slots_for_epilogue (void)
{ {
if (arc_compute_function_type (current_function_decl) != ARC_FUNCTION_NORMAL) if (arc_compute_function_type (current_function_decl) != ARC_FUNCTION_NORMAL)
return 0; return 0;
...@@ -1462,9 +1410,7 @@ arc_delay_slots_for_epilogue () ...@@ -1462,9 +1410,7 @@ arc_delay_slots_for_epilogue ()
pointer or any call-saved register is OK. SLOT will always be 0. */ pointer or any call-saved register is OK. SLOT will always be 0. */
int int
arc_eligible_for_epilogue_delay (trial, slot) arc_eligible_for_epilogue_delay (rtx trial, int slot)
rtx trial;
int slot;
{ {
if (slot != 0) if (slot != 0)
abort (); abort ();
...@@ -1489,7 +1435,7 @@ arc_eligible_for_epilogue_delay (trial, slot) ...@@ -1489,7 +1435,7 @@ arc_eligible_for_epilogue_delay (trial, slot)
/* Emit special PIC prologues and epilogues. */ /* Emit special PIC prologues and epilogues. */
void void
arc_finalize_pic () arc_finalize_pic (void)
{ {
/* nothing to do */ /* nothing to do */
} }
...@@ -1497,9 +1443,7 @@ arc_finalize_pic () ...@@ -1497,9 +1443,7 @@ arc_finalize_pic ()
/* Return true if OP is a shift operator. */ /* Return true if OP is a shift operator. */
int int
shift_operator (op, mode) shift_operator (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
rtx op;
enum machine_mode mode ATTRIBUTE_UNUSED;
{ {
switch (GET_CODE (op)) switch (GET_CODE (op))
{ {
...@@ -1527,8 +1471,7 @@ shift_operator (op, mode) ...@@ -1527,8 +1471,7 @@ shift_operator (op, mode)
using it here will give us a chance to play with it. */ using it here will give us a chance to play with it. */
const char * const char *
output_shift (operands) output_shift (rtx *operands)
rtx *operands;
{ {
rtx shift = operands[3]; rtx shift = operands[3];
enum machine_mode mode = GET_MODE (shift); enum machine_mode mode = GET_MODE (shift);
...@@ -1649,8 +1592,9 @@ output_shift (operands) ...@@ -1649,8 +1592,9 @@ output_shift (operands)
CXT is an RTX for the static chain value for the function. */ CXT is an RTX for the static chain value for the function. */
void void
arc_initialize_trampoline (tramp, fnaddr, cxt) arc_initialize_trampoline (rtx tramp ATTRIBUTE_UNUSED,
rtx tramp ATTRIBUTE_UNUSED, fnaddr ATTRIBUTE_UNUSED, cxt ATTRIBUTE_UNUSED; rtx fnaddr ATTRIBUTE_UNUSED,
rtx cxt ATTRIBUTE_UNUSED)
{ {
} }
...@@ -1658,7 +1602,7 @@ arc_initialize_trampoline (tramp, fnaddr, cxt) ...@@ -1658,7 +1602,7 @@ arc_initialize_trampoline (tramp, fnaddr, cxt)
at the top of the file. */ at the top of the file. */
static void static void
arc_file_start () arc_file_start (void)
{ {
default_file_start (); default_file_start ();
fprintf (asm_out_file, "\t.cpu %s\n", arc_cpu_string); fprintf (asm_out_file, "\t.cpu %s\n", arc_cpu_string);
...@@ -1669,10 +1613,7 @@ arc_file_start () ...@@ -1669,10 +1613,7 @@ arc_file_start ()
For `%' followed by punctuation, CODE is the punctuation and X is null. */ For `%' followed by punctuation, CODE is the punctuation and X is null. */
void void
arc_print_operand (file, x, code) arc_print_operand (FILE *file, rtx x, int code)
FILE *file;
rtx x;
int code;
{ {
switch (code) switch (code)
{ {
...@@ -1884,9 +1825,7 @@ arc_print_operand (file, x, code) ...@@ -1884,9 +1825,7 @@ arc_print_operand (file, x, code)
/* Print a memory address as an operand to reference that memory location. */ /* Print a memory address as an operand to reference that memory location. */
void void
arc_print_operand_address (file, addr) arc_print_operand_address (FILE *file, rtx addr)
FILE *file;
rtx addr;
{ {
register rtx base, index = 0; register rtx base, index = 0;
int offset = 0; int offset = 0;
...@@ -1943,8 +1882,7 @@ arc_print_operand_address (file, addr) ...@@ -1943,8 +1882,7 @@ arc_print_operand_address (file, addr)
/* Update compare/branch separation marker. */ /* Update compare/branch separation marker. */
static void static void
record_cc_ref (insn) record_cc_ref (rtx insn)
rtx insn;
{ {
last_insn_set_cc_p = current_insn_set_cc_p; last_insn_set_cc_p = current_insn_set_cc_p;
...@@ -2000,10 +1938,9 @@ record_cc_ref (insn) ...@@ -2000,10 +1938,9 @@ record_cc_ref (insn)
we may not be outputting the branch. */ we may not be outputting the branch. */
void void
arc_final_prescan_insn (insn, opvec, noperands) arc_final_prescan_insn (rtx insn,
rtx insn; rtx *opvec ATTRIBUTE_UNUSED,
rtx *opvec ATTRIBUTE_UNUSED; int noperands ATTRIBUTE_UNUSED)
int noperands ATTRIBUTE_UNUSED;
{ {
/* BODY will hold the body of INSN. */ /* BODY will hold the body of INSN. */
register rtx body = PATTERN (insn); register rtx body = PATTERN (insn);
...@@ -2285,9 +2222,7 @@ arc_final_prescan_insn (insn, opvec, noperands) ...@@ -2285,9 +2222,7 @@ arc_final_prescan_insn (insn, opvec, noperands)
Called from (*targetm.asm_out.internal_label). */ Called from (*targetm.asm_out.internal_label). */
void void
arc_ccfsm_at_label (prefix, num) arc_ccfsm_at_label (const char *prefix, int num)
const char *prefix;
int num;
{ {
if (arc_ccfsm_state == 3 && arc_ccfsm_target_label == num if (arc_ccfsm_state == 3 && arc_ccfsm_target_label == num
&& !strcmp (prefix, "L")) && !strcmp (prefix, "L"))
...@@ -2301,7 +2236,7 @@ arc_ccfsm_at_label (prefix, num) ...@@ -2301,7 +2236,7 @@ arc_ccfsm_at_label (prefix, num)
deleted. */ deleted. */
int int
arc_ccfsm_branch_deleted_p () arc_ccfsm_branch_deleted_p (void)
{ {
if (arc_ccfsm_state == 1 || arc_ccfsm_state == 2) if (arc_ccfsm_state == 1 || arc_ccfsm_state == 2)
return 1; return 1;
...@@ -2312,7 +2247,7 @@ arc_ccfsm_branch_deleted_p () ...@@ -2312,7 +2247,7 @@ arc_ccfsm_branch_deleted_p ()
conditionalized. */ conditionalized. */
void void
arc_ccfsm_record_branch_deleted () arc_ccfsm_record_branch_deleted (void)
{ {
/* Indicate we're conditionalizing insns now. */ /* Indicate we're conditionalizing insns now. */
arc_ccfsm_state += 2; arc_ccfsm_state += 2;
...@@ -2324,9 +2259,7 @@ arc_ccfsm_record_branch_deleted () ...@@ -2324,9 +2259,7 @@ arc_ccfsm_record_branch_deleted ()
} }
void void
arc_va_start (valist, nextarg) arc_va_start (tree valist, rtx nextarg)
tree valist;
rtx nextarg;
{ {
/* See arc_setup_incoming_varargs for reasons for this oddity. */ /* See arc_setup_incoming_varargs for reasons for this oddity. */
if (current_function_args_info < 8 if (current_function_args_info < 8
...@@ -2337,8 +2270,7 @@ arc_va_start (valist, nextarg) ...@@ -2337,8 +2270,7 @@ arc_va_start (valist, nextarg)
} }
rtx rtx
arc_va_arg (valist, type) arc_va_arg (tree valist, tree type)
tree valist, type;
{ {
rtx addr_rtx; rtx addr_rtx;
tree addr, incr; tree addr, incr;
...@@ -2413,10 +2345,7 @@ arc_va_arg (valist, type) ...@@ -2413,10 +2345,7 @@ arc_va_arg (valist, type)
PREFIX is the class of label and NUM is the number within the class. */ PREFIX is the class of label and NUM is the number within the class. */
static void static void
arc_internal_label (stream, prefix, labelno) arc_internal_label (FILE *stream, const char *prefix, unsigned long labelno)
FILE *stream;
const char *prefix;
unsigned long labelno;
{ {
arc_ccfsm_at_label (prefix, labelno); arc_ccfsm_at_label (prefix, labelno);
default_internal_label (stream, prefix, labelno); default_internal_label (stream, prefix, labelno);
......
...@@ -66,11 +66,11 @@ static func_ptr __DTOR_LIST__[1] __attribute__ ((section (".dtors"))) ...@@ -66,11 +66,11 @@ static func_ptr __DTOR_LIST__[1] __attribute__ ((section (".dtors")))
refers to one particular associated `__DTOR_LIST__' which belongs to the refers to one particular associated `__DTOR_LIST__' which belongs to the
same particular root executable or shared library file. */ same particular root executable or shared library file. */
static void __do_global_dtors () static void __do_global_dtors (void)
asm ("__do_global_dtors") __attribute__ ((section (".text"))); asm ("__do_global_dtors") __attribute__ ((section (".text")));
static void static void
__do_global_dtors () __do_global_dtors (void)
{ {
func_ptr *p; func_ptr *p;
for (p = __DTOR_LIST__ + 1; *p; p++) for (p = __DTOR_LIST__ + 1; *p; p++)
...@@ -125,11 +125,11 @@ static func_ptr __DTOR_END__[1] __attribute__ ((section (".dtors"))) ...@@ -125,11 +125,11 @@ static func_ptr __DTOR_END__[1] __attribute__ ((section (".dtors")))
/* Run all global constructors for the program. /* Run all global constructors for the program.
Note that they are run in reverse order. */ Note that they are run in reverse order. */
static void __do_global_ctors () static void __do_global_ctors (void)
asm ("__do_global_ctors") __attribute__ ((section (".text"))); asm ("__do_global_ctors") __attribute__ ((section (".text")));
static void static void
__do_global_ctors () __do_global_ctors (void)
{ {
func_ptr *p; func_ptr *p;
for (p = __CTOR_END__ - 1; *p != (func_ptr) -1; p--) for (p = __CTOR_END__ - 1; *p != (func_ptr) -1; p--)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment