diff options
author | Richard Henderson <rth@redhat.com> | 2003-06-20 10:30:05 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2003-06-20 10:30:05 -0700 |
commit | a3424f5c1e409cf8d7e9c0d7372a0a223a33eade (patch) | |
tree | 73514e4f64d84936d90b75c8a73e6fd5958b4ab8 /gcc/target.h | |
parent | 3a9476696caa7ef0cea761530df25647b8dbbe0b (diff) | |
download | gcc-a3424f5c1e409cf8d7e9c0d7372a0a223a33eade.zip gcc-a3424f5c1e409cf8d7e9c0d7372a0a223a33eade.tar.gz gcc-a3424f5c1e409cf8d7e9c0d7372a0a223a33eade.tar.bz2 |
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
Diffstat (limited to 'gcc/target.h')
-rw-r--r-- | gcc/target.h | 11 |
1 files changed, 9 insertions, 2 deletions
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)); |