diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2004-06-18 07:33:08 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2004-06-18 07:33:08 +0000 |
commit | fd743bc1097ad82cd5bccc9149ac0f63ce36a239 (patch) | |
tree | 9e387d4d3a8ab7e756314c707d213eb7562b69a4 /gcc/emit-rtl.c | |
parent | 24a88b0c7a37254d961e740f1dc5071177107c01 (diff) | |
download | gcc-fd743bc1097ad82cd5bccc9149ac0f63ce36a239.zip gcc-fd743bc1097ad82cd5bccc9149ac0f63ce36a239.tar.gz gcc-fd743bc1097ad82cd5bccc9149ac0f63ce36a239.tar.bz2 |
emit-rtl.c (unshare_all_rtl_1): New name of unshare_all_rtl.
2004-06-18 Paolo Bonzini <bonzini@gnu.org>
* emit-rtl.c (unshare_all_rtl_1): New name of unshare_all_rtl.
(unshare_all_rtl_again): Call unshare_all_rtl_1.
(unshare_all_rtl): New.
* function.c (instantiate_virtual_regs): Remove parameters.
* function.h (instantiate_virtual_regs): Add prototype.
* rtl.h (unshare_all_rtl): Add prototype.
* tree.h (instantiate_virtual_regs, unshare_all_rtl): Remove
prototype.
* passes.c: Remove assertions on the parameters to
rest_of_handle_* functions. Remove the parameters to
the functions, replacing decl with current_function_decl
and insns with get_insns ().
From-SVN: r83341
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 1a6667a..4167915 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -2148,8 +2148,8 @@ restore_emit_status (struct function *p ATTRIBUTE_UNUSED) /* Go through all the RTL insn bodies and copy any invalid shared structure. This routine should only be called once. */ -void -unshare_all_rtl (tree fndecl, rtx insn) +static void +unshare_all_rtl_1 (tree fndecl, rtx insn) { tree decl; @@ -2200,7 +2200,13 @@ unshare_all_rtl_again (rtx insn) reset_used_flags (stack_slot_list); - unshare_all_rtl (cfun->decl, insn); + unshare_all_rtl_1 (cfun->decl, insn); +} + +void +unshare_all_rtl (void) +{ + unshare_all_rtl_1 (current_function_decl, get_insns ()); } /* Check that ORIG is not marked when it should not be and mark ORIG as in use, |