diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-07 07:41:39 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-07 07:41:39 +0000 |
commit | 2dbdc48e8810753a291818a65ae4c1bf116648af (patch) | |
tree | fcbd5a8dae55ab36f6d797f3280c575b6ee81f71 /gcc/hooks.c | |
parent | af299c11715a14cbc4e4a9aadef9a19ffbc7c1c8 (diff) | |
download | gcc-2dbdc48e8810753a291818a65ae4c1bf116648af.tar.gz |
* hooks.c (hook_bool_mode_rtx_true): New function.
* hooks.h (hook_bool_mode_rtx_true): Declare.
* toplev.c (compile_file): Call output_shared_constant_pool.
* varasm.c (shared_constant_pool): New variable.
(assemble_start_function, assemble_end_function): Remove arguments
from call to output_constant_pool.
(create_constant_pool): New function, split out from...
(init_varasm_status): ...here.
(force_const_mem): Choose between the shared and per-function constant
pools. Set current_function_uses_const_pool when reusing old entries
as well as when creating new ones.
(mark_constant): Ignore data argument.
(mark_constants): Remove pool argument.
(mark_constant_pool): Likewise. Use current_function_uses_const_pool
to decide whether the function uses a constant pool.
(output_constant_pool_contents): New function, split out from...
(output_constant_pool): ...here.
(output_shared_constant_pool): New function.
(init_varasm_once): Initialize shared_constant_pool.
* output.h (output_constant_pool): Delete.
(output_shared_constant_pool): Declare.
* config/s390/s390-protos.h (s390_output_constant_pool): Delete.
* config/i386/i386.c (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Override.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111804 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/hooks.c')
-rw-r--r-- | gcc/hooks.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/hooks.c b/gcc/hooks.c index 8a708777113..18b17dc85f2 100644 --- a/gcc/hooks.c +++ b/gcc/hooks.c @@ -77,6 +77,14 @@ hook_bool_mode_rtx_false (enum machine_mode mode ATTRIBUTE_UNUSED, return false; } +/* Generic hook that takes (enum machine_mode, rtx) and returns true. */ +bool +hook_bool_mode_rtx_true (enum machine_mode mode ATTRIBUTE_UNUSED, + rtx value ATTRIBUTE_UNUSED) +{ + return true; +} + /* Generic hook that takes (FILE *, const char *) and does nothing. */ void hook_void_FILEptr_constcharptr (FILE *a ATTRIBUTE_UNUSED, const char *b ATTRIBUTE_UNUSED) |