aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2004-06-18 07:33:08 +0000
committerPaolo Bonzini <bonzini@gcc.gnu.org>2004-06-18 07:33:08 +0000
commitfd743bc1097ad82cd5bccc9149ac0f63ce36a239 (patch)
tree9e387d4d3a8ab7e756314c707d213eb7562b69a4 /gcc/function.c
parent24a88b0c7a37254d961e740f1dc5071177107c01 (diff)
downloadgcc-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/function.c')
-rw-r--r--gcc/function.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 277ac76..8d25bd2 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -3596,30 +3596,30 @@ purge_hard_subreg_sets (rtx insn)
references to hard register references. */
void
-instantiate_virtual_regs (tree fndecl, rtx insns)
+instantiate_virtual_regs (void)
{
rtx insn;
unsigned int i;
/* Compute the offsets to use for this function. */
- in_arg_offset = FIRST_PARM_OFFSET (fndecl);
+ in_arg_offset = FIRST_PARM_OFFSET (current_function_decl);
var_offset = STARTING_FRAME_OFFSET;
- dynamic_offset = STACK_DYNAMIC_OFFSET (fndecl);
+ dynamic_offset = STACK_DYNAMIC_OFFSET (current_function_decl);
out_arg_offset = STACK_POINTER_OFFSET;
- cfa_offset = ARG_POINTER_CFA_OFFSET (fndecl);
+ cfa_offset = ARG_POINTER_CFA_OFFSET (current_function_decl);
/* Scan all variables and parameters of this function. For each that is
in memory, instantiate all virtual registers if the result is a valid
address. If not, we do it later. That will handle most uses of virtual
regs on many machines. */
- instantiate_decls (fndecl, 1);
+ instantiate_decls (current_function_decl, 1);
/* Initialize recognition, indicating that volatile is OK. */
init_recog ();
/* Scan through all the insns, instantiating every virtual register still
present. */
- for (insn = insns; insn; insn = NEXT_INSN (insn))
+ for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
if (GET_CODE (insn) == INSN || GET_CODE (insn) == JUMP_INSN
|| GET_CODE (insn) == CALL_INSN)
{
@@ -3647,7 +3647,7 @@ instantiate_virtual_regs (tree fndecl, rtx insns)
/* Now instantiate the remaining register equivalences for debugging info.
These will not be valid addresses. */
- instantiate_decls (fndecl, 0);
+ instantiate_decls (current_function_decl, 0);
/* Indicate that, from now on, assign_stack_local should use
frame_pointer_rtx. */