From a3424f5c1e409cf8d7e9c0d7372a0a223a33eade Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 20 Jun 2003 10:30:05 -0700 Subject: hooks.c (hook_int_void_no_regs): Rename from hook_reg_class_void_no_regs; change return type. * hooks.c (hook_int_void_no_regs): Rename from hook_reg_class_void_no_regs; change return type. * hooks.h: Update. * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update. * target.h (branch_target_register_class): Change return type to int. Add documentation. * config/sh/sh.c (sh_target_reg_class): Change return type. * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise. From-SVN: r68275 --- gcc/target.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'gcc/target.h') diff --git a/gcc/target.h b/gcc/target.h index 4ba369d..f693868 100644 --- a/gcc/target.h +++ b/gcc/target.h @@ -296,8 +296,15 @@ struct gcc_target not, at the current point in the compilation. */ bool (* cannot_modify_jumps_p) PARAMS ((void)); - enum reg_class (* branch_target_register_class) PARAMS ((void)); - bool (* branch_target_register_callee_saved) PARAMS ((bool)); + /* Return a register class for which branch target register + optimizations should be applied. */ + int (* branch_target_register_class) PARAMS ((void)); + + /* Return true if branch target register optimizations should include + callee-saved registers that are not already live during the current + function. AFTER_PE_GEN is true if prologues and epilogues have + already been generated. */ + bool (* branch_target_register_callee_saved) PARAMS ((bool after_pe_gen)); /* True if the constant X cannot be placed in the constant pool. */ bool (* cannot_force_const_mem) PARAMS ((rtx)); -- cgit v1.1