From e2a5f96bbfae7b9b30d76246c1cd58fe80dddd2c Mon Sep 17 00:00:00 2001 From: "J\"orn Rennecke" Date: Thu, 4 Jan 2001 23:28:00 +0000 Subject: integrate.c (expand_inline_function): Don't put a virtual register into the reg map. * integrate.c (expand_inline_function): Don't put a virtual register into the reg map. * function.c (fixup_var_refs_1): If force_operand didn't put the address into the target, move it there. From-SVN: r38694 --- gcc/function.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/function.c') diff --git a/gcc/function.c b/gcc/function.c index bbd7ecc..90ca36a 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -1916,7 +1916,9 @@ fixup_var_refs_1 (var, promoted_mode, loc, insn, replacements) /* That failed. Fall back on force_operand and hope. */ start_sequence (); - force_operand (sub, y); + sub = force_operand (sub, y); + if (sub != y) + emit_insn (gen_move_insn (y, sub)); seq = gen_sequence (); end_sequence (); } -- cgit v1.1