diff options
Diffstat (limited to 'gcc/config/cr16/cr16.c')
-rw-r--r-- | gcc/config/cr16/cr16.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/gcc/config/cr16/cr16.c b/gcc/config/cr16/cr16.c index 29284106ab8..be7d663721d 100644 --- a/gcc/config/cr16/cr16.c +++ b/gcc/config/cr16/cr16.c @@ -479,7 +479,7 @@ cr16_regno_reg_class (int regno) /* Return 1 if hard register REGNO can hold a value of machine-mode MODE. */ int -cr16_hard_regno_mode_ok (int regno, enum machine_mode mode) +cr16_hard_regno_mode_ok (int regno, machine_mode mode) { if ((GET_MODE_SIZE (mode) >= 4) && (regno == 11)) return 0; @@ -528,7 +528,7 @@ cr16_function_value_regno_p (const unsigned int regno) /* Create an RTX representing the place where a library function returns a value of mode MODE. */ static rtx -cr16_libcall_value (enum machine_mode mode, +cr16_libcall_value (machine_mode mode, const_rtx func ATTRIBUTE_UNUSED) { return gen_rtx_REG (mode, cr16_ret_register ()); @@ -550,7 +550,7 @@ cr16_function_value (const_tree type, the number of registers needed else 0. */ static int enough_regs_for_param (CUMULATIVE_ARGS * cum, const_tree type, - enum machine_mode mode) + machine_mode mode) { int type_size; int remaining_size; @@ -574,7 +574,7 @@ enough_regs_for_param (CUMULATIVE_ARGS * cum, const_tree type, /* Implements the macro FUNCTION_ARG defined in cr16.h. */ static rtx -cr16_function_arg (cumulative_args_t cum_v, enum machine_mode mode, +cr16_function_arg (cumulative_args_t cum_v, machine_mode mode, const_tree type, bool named ATTRIBUTE_UNUSED) { CUMULATIVE_ARGS *cum = get_cumulative_args (cum_v); @@ -641,7 +641,7 @@ cr16_init_cumulative_args (CUMULATIVE_ARGS * cum, tree fntype, /* Implements the macro FUNCTION_ARG_ADVANCE defined in cr16.h. */ static void -cr16_function_arg_advance (cumulative_args_t cum_v, enum machine_mode mode, +cr16_function_arg_advance (cumulative_args_t cum_v, machine_mode mode, const_tree type, bool named ATTRIBUTE_UNUSED) { CUMULATIVE_ARGS * cum = get_cumulative_args (cum_v); @@ -1170,7 +1170,7 @@ legitimate_pic_operand_p (rtx x) NOTE: @BRO is added using unspec:BRO NOTE: @GOT is added using unspec:GOT. */ rtx -legitimize_pic_address (rtx orig, enum machine_mode mode ATTRIBUTE_UNUSED, +legitimize_pic_address (rtx orig, machine_mode mode ATTRIBUTE_UNUSED, rtx reg) { /* First handle a simple SYMBOL_REF or LABEL_REF. */ @@ -1223,7 +1223,7 @@ legitimize_pic_address (rtx orig, enum machine_mode mode ATTRIBUTE_UNUSED, /* Implementation of TARGET_LEGITIMATE_ADDRESS_P. */ static bool -cr16_legitimate_address_p (enum machine_mode mode ATTRIBUTE_UNUSED, +cr16_legitimate_address_p (machine_mode mode ATTRIBUTE_UNUSED, rtx addr, bool strict) { enum cr16_addrtype addrtype; @@ -1302,7 +1302,7 @@ cr16_legitimate_address_p (enum machine_mode mode ATTRIBUTE_UNUSED, /* Return cost of the memory address x. */ static int -cr16_address_cost (rtx addr, enum machine_mode mode ATTRIBUTE_UNUSED, +cr16_address_cost (rtx addr, machine_mode mode ATTRIBUTE_UNUSED, addr_space_t as ATTRIBUTE_UNUSED, bool speed ATTRIBUTE_UNUSED) { @@ -1354,7 +1354,7 @@ cr16_address_cost (rtx addr, enum machine_mode mode ATTRIBUTE_UNUSED, /* Implement `TARGET_REGISTER_MOVE_COST'. */ static int -cr16_register_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, +cr16_register_move_cost (machine_mode mode ATTRIBUTE_UNUSED, reg_class_t from ATTRIBUTE_UNUSED, reg_class_t to) { return (to != GENERAL_REGS ? 8 : 2); @@ -1367,7 +1367,7 @@ cr16_register_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, nonzero if it is to be read in. This cost is relative to those in REGISTER_MOVE_COST. */ static int -cr16_memory_move_cost (enum machine_mode mode, +cr16_memory_move_cost (machine_mode mode, reg_class_t rclass ATTRIBUTE_UNUSED, bool in ATTRIBUTE_UNUSED) { @@ -1819,7 +1819,7 @@ cr16_create_dwarf_for_multi_push (rtx insn) { rtx dwarf, reg, tmp; int i, j, from, to, word_cnt, dwarf_par_index, inc; - enum machine_mode mode; + machine_mode mode; int num_regs = 0, offset = 0, split_here = 0, total_push_bytes = 0; for (i = 0; i <= current_frame_info.last_reg_to_save; ++i) @@ -2061,7 +2061,7 @@ cr16_can_eliminate (const int from ATTRIBUTE_UNUSED, const int to) it should assign X (which will always be a C variable) a new value. */ static rtx cr16_legitimize_address (rtx x, rtx orig_x ATTRIBUTE_UNUSED, - enum machine_mode mode ATTRIBUTE_UNUSED) + machine_mode mode ATTRIBUTE_UNUSED) { if (flag_pic) return legitimize_pic_address (orig_x, mode, NULL_RTX); @@ -2075,7 +2075,7 @@ cr16_legitimize_address (rtx x, rtx orig_x ATTRIBUTE_UNUSED, satisfies CONSTANT_P. In cr16c treat legitimize float constant as an immediate operand. */ static bool -cr16_legitimate_constant_p (enum machine_mode mode ATTRIBUTE_UNUSED, +cr16_legitimate_constant_p (machine_mode mode ATTRIBUTE_UNUSED, rtx x ATTRIBUTE_UNUSED) { return 1; @@ -2112,7 +2112,7 @@ notice_update_cc (rtx exp) return; } -static enum machine_mode +static machine_mode cr16_unwind_word_mode (void) { return SImode; |