aboutsummaryrefslogtreecommitdiff
path: root/gcc/global.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2000-03-24 22:48:01 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2000-03-24 22:48:01 +0100
commit7d167afd46ed1252cef65dbb043c2815b082fd89 (patch)
treef90c05f553aeeb028e19de1c5837ae1bb6663362 /gcc/global.c
parent5ad5a9844bd95909a89dd2e0fd374ddd413ccda6 (diff)
downloadgcc-7d167afd46ed1252cef65dbb043c2815b082fd89.zip
gcc-7d167afd46ed1252cef65dbb043c2815b082fd89.tar.gz
gcc-7d167afd46ed1252cef65dbb043c2815b082fd89.tar.bz2
sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for comparison if regno's are equal.
* sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for comparison if regno's are equal. * calls.c (initialize_argument_informat): Add ecf_flags argument. Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL. (expand_call): Update caller. Avoid making a sibling call if argument size of the callee is larger than argument size of the caller. Call hard_function_value with outgoing set if in sibcall pass. Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL. * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used): Change LEAF_REGISTERS from an array initializer to actual array identifier. Move static global variable into the function. (leaf_function_p): Allow SIBLING_CALL_P calls even outside of sequences for leaf functions. * global.c (global_alloc): Likewise. * tm.texi (LEAF_REGISTERS): Update documentation. * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly TARGET_FLAT leaf disabling hack. (LEAF_REGISTERS): Changed from an array initializer to actual array identifier to avoid duplication and remove the above hack. (FUNCTION_OK_FOR_SIBCALL): Define. * config/sparc/sparc.md (sibcall): New attr type. Use it almost always like call attribute. (eligible_for_sibcall_delay): New attribute. (sibcall): New delay type. (sibcall, sibcall_value, sibcall_epilogue): New expands. (sibcall_symbolic_sp32, sibcall_symbolic_sp64, sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns. * config/sparc/sparc.c (sparc_leaf_regs): New array. (eligible_for_sibcall_delay, output_restore_regs, output_sibcall): New functions. (output_function_epilogue): Move part of the code into output_restore_regs. (ultra_code_from_mask, ultrasparc_sched_reorder): Handle TYPE_SIBCALL. * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New prototypes. From-SVN: r32730
Diffstat (limited to 'gcc/global.c')
-rw-r--r--gcc/global.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/global.c b/gcc/global.c
index 74d9fd2..f672076 100644
--- a/gcc/global.c
+++ b/gcc/global.c
@@ -374,7 +374,7 @@ global_alloc (file)
a leaf function. */
{
char *cheap_regs;
- static char leaf_regs[] = LEAF_REGISTERS;
+ char *leaf_regs = LEAF_REGISTERS;
if (only_leaf_regs_used () && leaf_function_p ())
cheap_regs = leaf_regs;