aboutsummaryrefslogtreecommitdiff
path: root/gcc/caller-save.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-11 23:04:15 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-11 23:04:15 +0000
commit55e5ddb45e327fd26667511d6b04a4246cb37a9d (patch)
tree91f00385bb7fc2a732090e57b904ccc04161e2c4 /gcc/caller-save.c
parent95ed90bf7d82e791a4d661c21413f3462be369b8 (diff)
* caller-save.c (init_caller_save): Move creation of SAVEINSN
and RESTINSN into into the scope of the sequence. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54530 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/caller-save.c')
-rw-r--r--gcc/caller-save.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/caller-save.c b/gcc/caller-save.c
index 2c6e5ac79d1..bc42c3ac130 100644
--- a/gcc/caller-save.c
+++ b/gcc/caller-save.c
@@ -191,11 +191,12 @@ init_caller_save ()
test_mem = gen_rtx_MEM (VOIDmode, address);
savepat = gen_rtx_SET (VOIDmode, test_mem, test_reg);
restpat = gen_rtx_SET (VOIDmode, test_reg, test_mem);
- saveinsn = emit_insn (savepat);
- restinsn = emit_insn (restpat);
start_sequence ();
+ saveinsn = emit_insn (savepat);
+ restinsn = emit_insn (restpat);
+
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
for (mode = 0 ; mode < MAX_MACHINE_MODE; mode++)
if (HARD_REGNO_MODE_OK (i, mode))