diff options
author | Peter Bergner <bergner@vnet.ibm.com> | 2007-08-31 01:27:57 +0000 |
---|---|---|
committer | Peter Bergner <bergner@vnet.ibm.com> | 2007-08-31 01:27:57 +0000 |
commit | 9083c7d2a7289e6ebf10b2f1698bf196136a69da (patch) | |
tree | 12715292a8239d1b0e5b775620124ad2c93e34a6 /gcc/config/score/score.c | |
parent | 9abf6f33c53841539c944712a490a3e99a592e21 (diff) |
Merged revisions 127676-127677,127680-127682,127684,127689,127691-127692,127694-127697,127712-127948 via svnmerge from ra-improvements
svn+ssh://gcc.gnu.org/svn/gcc/trunk
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ra-improvements@127949 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/score/score.c')
-rw-r--r-- | gcc/config/score/score.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gcc/config/score/score.c b/gcc/config/score/score.c index 1a3aee5412f..6dba9903b7e 100644 --- a/gcc/config/score/score.c +++ b/gcc/config/score/score.c @@ -59,8 +59,8 @@ #define CE_REG_CLASS_P(C) \ ((C) == HI_REG || (C) == LO_REG || (C) == CE_REGS) -static int score_arg_partial_bytes (const CUMULATIVE_ARGS *, - enum machine_mode, tree, int); +static int score_arg_partial_bytes (CUMULATIVE_ARGS *, + enum machine_mode, tree, bool); static int score_symbol_insns (enum score_symbol_type); @@ -101,16 +101,16 @@ static int score_address_cost (rtx); #define TARGET_ASM_OUTPUT_MI_THUNK th_output_mi_thunk #undef TARGET_ASM_CAN_OUTPUT_MI_THUNK -#define TARGET_ASM_CAN_OUTPUT_MI_THUNK hook_bool_tree_hwi_hwi_tree_true +#define TARGET_ASM_CAN_OUTPUT_MI_THUNK hook_bool_const_tree_hwi_hwi_const_tree_true #undef TARGET_PROMOTE_FUNCTION_ARGS -#define TARGET_PROMOTE_FUNCTION_ARGS hook_bool_tree_true +#define TARGET_PROMOTE_FUNCTION_ARGS hook_bool_const_tree_true #undef TARGET_PROMOTE_FUNCTION_RETURN -#define TARGET_PROMOTE_FUNCTION_RETURN hook_bool_tree_true +#define TARGET_PROMOTE_FUNCTION_RETURN hook_bool_const_tree_true #undef TARGET_PROMOTE_PROTOTYPES -#define TARGET_PROMOTE_PROTOTYPES hook_bool_tree_true +#define TARGET_PROMOTE_PROTOTYPES hook_bool_const_tree_true #undef TARGET_MUST_PASS_IN_STACK #define TARGET_MUST_PASS_IN_STACK must_pass_in_stack_var_size @@ -137,7 +137,7 @@ static int score_address_cost (rtx); small structures are returned in a register. Objects with varying size must still be returned in memory. */ static bool -score_return_in_memory (tree type, tree fndecl ATTRIBUTE_UNUSED) +score_return_in_memory (const_tree type, const_tree fndecl ATTRIBUTE_UNUSED) { return ((TYPE_MODE (type) == BLKmode) || (int_size_in_bytes (type) > 2 * UNITS_PER_WORD) @@ -147,7 +147,7 @@ score_return_in_memory (tree type, tree fndecl ATTRIBUTE_UNUSED) /* Return nonzero when an argument must be passed by reference. */ static bool score_pass_by_reference (CUMULATIVE_ARGS *cum ATTRIBUTE_UNUSED, - enum machine_mode mode, tree type, + enum machine_mode mode, const_tree type, bool named ATTRIBUTE_UNUSED) { /* If we have a variable-sized parameter, we have no choice. */ @@ -156,7 +156,7 @@ score_pass_by_reference (CUMULATIVE_ARGS *cum ATTRIBUTE_UNUSED, /* Return a legitimate address for REG + OFFSET. */ static rtx -score_add_offset (rtx temp, rtx reg, HOST_WIDE_INT offset) +score_add_offset (rtx temp ATTRIBUTE_UNUSED, rtx reg, HOST_WIDE_INT offset) { if (!IMM_IN_RANGE (offset, 15, 1)) { @@ -427,7 +427,7 @@ th_select_rtx_section (enum machine_mode mode, rtx x, /* Implement TARGET_IN_SMALL_DATA_P. */ static bool -th_in_small_data_p (tree decl) +th_in_small_data_p (const_tree decl) { HOST_WIDE_INT size; @@ -685,8 +685,8 @@ score_function_arg_advance (CUMULATIVE_ARGS *cum, enum machine_mode mode, /* Implement TARGET_ARG_PARTIAL_BYTES macro. */ static int -score_arg_partial_bytes (const CUMULATIVE_ARGS *cum, - enum machine_mode mode, tree type, int named) +score_arg_partial_bytes (CUMULATIVE_ARGS *cum, + enum machine_mode mode, tree type, bool named) { struct score_arg_info info; classify_arg (cum, mode, type, named, &info); @@ -730,7 +730,7 @@ score_function_arg (const CUMULATIVE_ARGS *cum, enum machine_mode mode, VALTYPE is the return type and MODE is VOIDmode. For libcalls, VALTYPE is null and MODE is the mode of the return value. */ rtx -score_function_value (tree valtype, tree func ATTRIBUTE_UNUSED, +score_function_value (const_tree valtype, const_tree func ATTRIBUTE_UNUSED, enum machine_mode mode) { if (valtype) |