summaryrefslogtreecommitdiff
path: root/gcc/targhooks.h
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-02 09:34:54 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-02 09:34:54 +0000
commitb6ea32c35a3144f01e2d1f78ba24925196bc97a7 (patch)
tree417cb41087b6a363102c51ebf7a4358bd360b492 /gcc/targhooks.h
parentdf41fe2ee93d13e2e6f7f9eb5565417636525297 (diff)
downloadgcc-b6ea32c35a3144f01e2d1f78ba24925196bc97a7.tar.gz
* Makefile.in (targhooks.o, reload.o): Update dependencies.
(GTFILES): Add targhooks.c. (gt-targhooks.h): New rule; depend on s-gtype. * target.h (direct_pool_load_p): New hook. * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro. (TARGET_INITIALIZER): Include it. * targhooks.h (default_direct_pool_load_p): Declare. (hook_bool_machine_mode_true): Declare. * targhooks.c: Include insn-config.h, recog.h, ggc.h and gt-targhooks.h. (pool_symbol): New variable. (default_direct_pool_load_p): New function. (hook_bool_machine_mode_true): New function. * reload.c: Include target.h. (find_reloads): If an alternative will force a constant into memory, count an extra reload if constant pool symbols are not valid addresses. If an alternative uses memory to move values between registers, count the move as two reloads rather than one. * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define. * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73196 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/targhooks.h')
-rw-r--r--gcc/targhooks.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/targhooks.h b/gcc/targhooks.h
index 724abe82ab4..f188ce201b2 100644
--- a/gcc/targhooks.h
+++ b/gcc/targhooks.h
@@ -32,4 +32,7 @@ extern void default_setup_incoming_varargs (CUMULATIVE_ARGS *, enum machine_mode
extern bool default_strict_argument_naming (CUMULATIVE_ARGS *);
extern bool default_pretend_outgoing_varargs_named (CUMULATIVE_ARGS *);
+extern bool default_direct_pool_load_p (enum machine_mode);
+
extern bool hook_bool_CUMULATIVE_ARGS_true (CUMULATIVE_ARGS *);
+extern bool hook_bool_machine_mode_true (enum machine_mode);