diff options
Diffstat (limited to 'gcc/config/arc/arc.c')
-rw-r--r-- | gcc/config/arc/arc.c | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 8bfebfdce94..d04be019480 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -385,16 +385,16 @@ static void arc_file_start (void); static void arc_internal_label (FILE *, const char *, unsigned long); static void arc_output_mi_thunk (FILE *, tree, HOST_WIDE_INT, HOST_WIDE_INT, tree); -static int arc_address_cost (rtx, enum machine_mode, addr_space_t, bool); +static int arc_address_cost (rtx, machine_mode, addr_space_t, bool); static void arc_encode_section_info (tree decl, rtx rtl, int first); static void arc_init_builtins (void); -static rtx arc_expand_builtin (tree, rtx, rtx, enum machine_mode, int); +static rtx arc_expand_builtin (tree, rtx, rtx, machine_mode, int); static int branch_dest (rtx); static void arc_output_pic_addr_const (FILE *, rtx, int); -void emit_pic_move (rtx *, enum machine_mode); +void emit_pic_move (rtx *, machine_mode); bool arc_legitimate_pic_operand_p (rtx); static bool arc_function_ok_for_sibcall (tree, tree); static rtx arc_function_value (const_tree, const_tree, bool); @@ -405,7 +405,7 @@ static bool arc_in_small_data_p (const_tree); static void arc_init_reg_tables (void); static bool arc_return_in_memory (const_tree, const_tree); static void arc_init_simd_builtins (void); -static bool arc_vector_mode_supported_p (enum machine_mode); +static bool arc_vector_mode_supported_p (machine_mode); static bool arc_can_use_doloop_p (const widest_int &, const widest_int &, unsigned int, bool); @@ -418,7 +418,7 @@ static bool arc_frame_pointer_required (void); /* Implements target hook vector_mode_supported_p. */ static bool -arc_vector_mode_supported_p (enum machine_mode mode) +arc_vector_mode_supported_p (machine_mode mode) { if (!TARGET_SIMD_SET) return false; @@ -438,9 +438,9 @@ static bool arc_can_follow_jump (const rtx_insn *follower, const rtx_insn *followee); static rtx frame_insn (rtx); -static void arc_function_arg_advance (cumulative_args_t, enum machine_mode, +static void arc_function_arg_advance (cumulative_args_t, machine_mode, const_tree, bool); -static rtx arc_legitimize_address_0 (rtx, rtx, enum machine_mode mode); +static rtx arc_legitimize_address_0 (rtx, rtx, machine_mode mode); static void arc_finalize_pic (void); @@ -602,7 +602,7 @@ arc_sched_adjust_priority (rtx_insn *insn, int priority) } static reg_class_t -arc_secondary_reload (bool in_p, rtx x, reg_class_t cl, enum machine_mode, +arc_secondary_reload (bool in_p, rtx x, reg_class_t cl, machine_mode, secondary_reload_info *) { if (cl == DOUBLE_REGS) @@ -996,10 +996,10 @@ arc_short_comparison_p (rtx comparison, int offset) /* Given a comparison code (EQ, NE, etc.) and the first operand of a COMPARE, return the mode to be used for the comparison. */ -enum machine_mode +machine_mode arc_select_cc_mode (enum rtx_code op, rtx x, rtx y) { - enum machine_mode mode = GET_MODE (x); + machine_mode mode = GET_MODE (x); rtx x1; /* For an operation that sets the condition codes as a side-effect, the @@ -1150,7 +1150,7 @@ arc_init_reg_tables (void) for (i = 0; i < NUM_MACHINE_MODES; i++) { - enum machine_mode m = (enum machine_mode) i; + machine_mode m = (machine_mode) i; switch (GET_MODE_CLASS (m)) { @@ -1490,13 +1490,13 @@ arc_set_default_type_attributes (tree type ATTRIBUTE_UNUSED) return the rtx for the cc reg in the proper mode. */ rtx -gen_compare_reg (rtx comparison, enum machine_mode omode) +gen_compare_reg (rtx comparison, machine_mode omode) { enum rtx_code code = GET_CODE (comparison); rtx x = XEXP (comparison, 0); rtx y = XEXP (comparison, 1); rtx tmp, cc_reg; - enum machine_mode mode, cmode; + machine_mode mode, cmode; cmode = GET_MODE (x); @@ -1641,7 +1641,7 @@ arc_double_limm_p (rtx value) static void arc_setup_incoming_varargs (cumulative_args_t args_so_far, - enum machine_mode mode, tree type, + machine_mode mode, tree type, int *pretend_size, int no_rtl) { int first_anon_arg; @@ -1680,7 +1680,7 @@ arc_setup_incoming_varargs (cumulative_args_t args_so_far, If ADDR is not a valid address, its cost is irrelevant. */ int -arc_address_cost (rtx addr, enum machine_mode, addr_space_t, bool speed) +arc_address_cost (rtx addr, machine_mode, addr_space_t, bool speed) { switch (GET_CODE (addr)) { @@ -2564,7 +2564,7 @@ output_shift (rtx *operands) { /* static int loopend_lab;*/ rtx shift = operands[3]; - enum machine_mode mode = GET_MODE (shift); + machine_mode mode = GET_MODE (shift); enum rtx_code code = GET_CODE (shift); const char *shift_one; @@ -4712,7 +4712,7 @@ arc_output_pic_addr_const (FILE * file, rtx x, int code) /* Emit insns to move operands[1] into operands[0]. */ void -emit_pic_move (rtx *operands, enum machine_mode) +emit_pic_move (rtx *operands, machine_mode) { rtx temp = reload_in_progress ? operands[0] : gen_reg_rtx (Pmode); @@ -4754,7 +4754,7 @@ emit_pic_move (rtx *operands, enum machine_mode) /* Implement TARGET_ARG_PARTIAL_BYTES. */ static int -arc_arg_partial_bytes (cumulative_args_t cum_v, enum machine_mode mode, +arc_arg_partial_bytes (cumulative_args_t cum_v, machine_mode mode, tree type, bool named ATTRIBUTE_UNUSED) { CUMULATIVE_ARGS *cum = get_cumulative_args (cum_v); @@ -4812,7 +4812,7 @@ arc_arg_partial_bytes (cumulative_args_t cum_v, enum machine_mode mode, and the rest are pushed. */ static rtx -arc_function_arg (cumulative_args_t cum_v, enum machine_mode mode, +arc_function_arg (cumulative_args_t cum_v, machine_mode mode, const_tree type ATTRIBUTE_UNUSED, bool named ATTRIBUTE_UNUSED) { CUMULATIVE_ARGS *cum = get_cumulative_args (cum_v); @@ -4859,7 +4859,7 @@ arc_function_arg (cumulative_args_t cum_v, enum machine_mode mode, course function_arg_partial_nregs will come into play. */ static void -arc_function_arg_advance (cumulative_args_t cum_v, enum machine_mode mode, +arc_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); @@ -4885,7 +4885,7 @@ arc_function_value (const_tree valtype, const_tree fn_decl_or_type ATTRIBUTE_UNUSED, bool outgoing ATTRIBUTE_UNUSED) { - enum machine_mode mode = TYPE_MODE (valtype); + machine_mode mode = TYPE_MODE (valtype); int unsignedp ATTRIBUTE_UNUSED; unsignedp = TYPE_UNSIGNED (valtype); @@ -4919,7 +4919,7 @@ arc_legitimate_pic_operand_p (rtx x) satisfies CONSTANT_P. */ bool -arc_legitimate_constant_p (enum machine_mode, rtx x) +arc_legitimate_constant_p (machine_mode, rtx x) { if (!flag_pic) return true; @@ -4970,7 +4970,7 @@ arc_legitimate_constant_p (enum machine_mode, rtx x) } static bool -arc_legitimate_address_p (enum machine_mode mode, rtx x, bool strict) +arc_legitimate_address_p (machine_mode mode, rtx x, bool strict) { if (RTX_OK_FOR_BASE_P (x, strict)) return true; @@ -5026,7 +5026,7 @@ arc_mode_dependent_address_p (const_rtx addr, addr_space_t) /* Determine if it's legal to put X into the constant pool. */ static bool -arc_cannot_force_const_mem (enum machine_mode mode, rtx x) +arc_cannot_force_const_mem (machine_mode mode, rtx x) { return !arc_legitimate_constant_p (mode, x); } @@ -5115,7 +5115,7 @@ arc_init_builtins (void) arc_init_simd_builtins (); } -static rtx arc_expand_simd_builtin (tree, rtx, rtx, enum machine_mode, int); +static rtx arc_expand_simd_builtin (tree, rtx, rtx, machine_mode, int); /* Expand an expression EXP that calls a built-in function, with result going to TARGET if that's convenient @@ -5127,7 +5127,7 @@ static rtx arc_expand_builtin (tree exp, rtx target, rtx subtarget, - enum machine_mode mode, + machine_mode mode, int ignore) { tree fndecl = TREE_OPERAND (CALL_EXPR_FN (exp), 0); @@ -5137,8 +5137,8 @@ arc_expand_builtin (tree exp, rtx op1; int fcode = DECL_FUNCTION_CODE (fndecl); int icode; - enum machine_mode mode0; - enum machine_mode mode1; + machine_mode mode0; + machine_mode mode1; if (fcode > ARC_SIMD_BUILTIN_BEGIN && fcode < ARC_SIMD_BUILTIN_END) return arc_expand_simd_builtin (exp, target, subtarget, mode, ignore); @@ -5705,7 +5705,7 @@ walk_stores (rtx x, void (*fun) (rtx, rtx, void *), void *data) static bool arc_pass_by_reference (cumulative_args_t ca_v ATTRIBUTE_UNUSED, - enum machine_mode mode ATTRIBUTE_UNUSED, + machine_mode mode ATTRIBUTE_UNUSED, const_tree type, bool named ATTRIBUTE_UNUSED) { @@ -6419,7 +6419,7 @@ small_data_pattern_1 (rtx *loc, void *data ATTRIBUTE_UNUSED) a PLUS. */ bool -small_data_pattern (rtx op, enum machine_mode) +small_data_pattern (rtx op, machine_mode) { return (GET_CODE (op) != SEQUENCE && for_each_rtx (&op, small_data_pattern_1, 0)); @@ -6433,7 +6433,7 @@ small_data_pattern (rtx op, enum machine_mode) /* volatile cache option still to be handled. */ bool -compact_sda_memory_operand (rtx op, enum machine_mode mode) +compact_sda_memory_operand (rtx op, machine_mode mode) { rtx addr; int size; @@ -6837,7 +6837,7 @@ static rtx arc_expand_simd_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED, - enum machine_mode mode ATTRIBUTE_UNUSED, + machine_mode mode ATTRIBUTE_UNUSED, int ignore ATTRIBUTE_UNUSED) { tree fndecl = TREE_OPERAND (CALL_EXPR_FN (exp), 0); @@ -6854,11 +6854,11 @@ arc_expand_simd_builtin (tree exp, unsigned int i; int fcode = DECL_FUNCTION_CODE (fndecl); int icode; - enum machine_mode mode0; - enum machine_mode mode1; - enum machine_mode mode2; - enum machine_mode mode3; - enum machine_mode mode4; + machine_mode mode0; + machine_mode mode1; + machine_mode mode2; + machine_mode mode3; + machine_mode mode4; const struct builtin_description * d; for (i = 0, d = arc_simd_builtin_desc_list; @@ -7298,7 +7298,7 @@ arc_preserve_reload_p (rtx in) } int -arc_register_move_cost (enum machine_mode, +arc_register_move_cost (machine_mode, enum reg_class from_class, enum reg_class to_class) { /* The ARC600 has no bypass for extension registers, hence a nop might be @@ -7545,7 +7545,7 @@ arc_expand_movmem (rtx *operands) for (i = 0; size > 0; i ^= 1, size -= piece) { rtx tmp; - enum machine_mode mode; + machine_mode mode; if (piece > size) piece = size & -size; @@ -7576,7 +7576,7 @@ arc_expand_movmem (rtx *operands) been emitted. */ bool -prepare_move_operands (rtx *operands, enum machine_mode mode) +prepare_move_operands (rtx *operands, machine_mode mode) { /* We used to do this only for MODE_INT Modes, but addresses to floating point variables may well be in the small data section. */ @@ -7664,7 +7664,7 @@ prepare_move_operands (rtx *operands, enum machine_mode mode) bool prepare_extend_operands (rtx *operands, enum rtx_code code, - enum machine_mode omode) + machine_mode omode) { if (!TARGET_NO_SDATA_SET && small_data_pattern (operands[1], Pmode)) { @@ -8187,7 +8187,7 @@ arc_get_ccfsm_cond (struct arc_ccfsm *statep, bool reverse) gcc_assert (ARC_INVERSE_CONDITION_CODE (raw_cc) == statep->cc); - enum machine_mode ccm = GET_MODE (XEXP (cond, 0)); + machine_mode ccm = GET_MODE (XEXP (cond, 0)); enum rtx_code code = reverse_condition (GET_CODE (cond)); if (code == UNKNOWN || ccm == CC_FP_GTmode || ccm == CC_FP_GEmode) code = reverse_condition_maybe_unordered (GET_CODE (cond)); @@ -8420,7 +8420,7 @@ arc_predicate_delay_insns (void) gcc_unreachable (); if (reverse != !INSN_FROM_TARGET_P (dlay)) { - enum machine_mode ccm = GET_MODE (XEXP (cond, 0)); + machine_mode ccm = GET_MODE (XEXP (cond, 0)); enum rtx_code code = reverse_condition (GET_CODE (cond)); if (code == UNKNOWN || ccm == CC_FP_GTmode || ccm == CC_FP_GEmode) code = reverse_condition_maybe_unordered (GET_CODE (cond)); @@ -8484,7 +8484,7 @@ arc_write_ext_corereg (rtx insn) static rtx arc_legitimize_address_0 (rtx x, rtx oldx ATTRIBUTE_UNUSED, - enum machine_mode mode) + machine_mode mode) { rtx addr, inner; @@ -8515,13 +8515,13 @@ arc_legitimize_address_0 (rtx x, rtx oldx ATTRIBUTE_UNUSED, } else if (GET_CODE (addr) == SYMBOL_REF && !SYMBOL_REF_FUNCTION_P (addr)) x = force_reg (Pmode, x); - if (memory_address_p ((enum machine_mode) mode, x)) + if (memory_address_p ((machine_mode) mode, x)) return x; return NULL_RTX; } static rtx -arc_legitimize_address (rtx orig_x, rtx oldx, enum machine_mode mode) +arc_legitimize_address (rtx orig_x, rtx oldx, machine_mode mode) { rtx new_x = arc_legitimize_address_0 (orig_x, oldx, mode); @@ -8975,7 +8975,7 @@ arc_process_double_reg_moves (rtx *operands) rtx arc_split_move (rtx *operands) { - enum machine_mode mode = GET_MODE (operands[0]); + machine_mode mode = GET_MODE (operands[0]); int i; int swap = 0; rtx xop[4]; @@ -9310,13 +9310,13 @@ arc_register_priority (int r) } static reg_class_t -arc_spill_class (reg_class_t /* orig_class */, enum machine_mode) +arc_spill_class (reg_class_t /* orig_class */, machine_mode) { return GENERAL_REGS; } bool -arc_legitimize_reload_address (rtx *p, enum machine_mode mode, int opnum, +arc_legitimize_reload_address (rtx *p, machine_mode mode, int opnum, int itype) { rtx x = *p; |