aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/function.c9
2 files changed, 13 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7e2e0db..30e59fc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-25 Joseph Myers <joseph@codesourcery.com>
+
+ * function.c (instantiate_virtual_regs_in_insn): Call force_reg
+ inside start_sequence / end_sequence pair.
+
2006-11-25 Steven Bosscher <steven@gcc.gnu.org>
* jump.c (mark_all_labels): Work in cfglayout mode.
diff --git a/gcc/function.c b/gcc/function.c
index a27d8cb..78dfe81 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -1529,7 +1529,14 @@ instantiate_virtual_regs_in_insn (rtx insn)
Validate the new value vs the insn predicate. Note that
asm insns will have insn_code -1 here. */
if (!safe_insn_predicate (insn_code, i, x))
- x = force_reg (insn_data[insn_code].operand[i].mode, x);
+ {
+ start_sequence ();
+ x = force_reg (insn_data[insn_code].operand[i].mode, x);
+ seq = get_insns ();
+ end_sequence ();
+ if (seq)
+ emit_insn_before (seq, insn);
+ }
*recog_data.operand_loc[i] = recog_data.operand[i] = x;
any_change = true;