]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* caller-save.c (init_caller_save): Move creation of SAVEINSN
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Jun 2002 23:04:15 +0000 (23:04 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Jun 2002 23:04:15 +0000 (23:04 +0000)
        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

gcc/ChangeLog
gcc/caller-save.c

index 8288483e5c420f72be5c95fa50f06065d970b5ba..bdb2ab2cf7707286a7ce6280a80b1655c960e9d9 100644 (file)
@@ -49,6 +49,9 @@ Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
 
 2002-06-11  Jeffrey Law <law@redhat.com>
 
+       * caller-save.c (init_caller_save): Move creation of SAVEINSN
+       and RESTINSN into into the scope of the sequence.
+
        * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
        RETURN insns.
 
index 2c6e5ac79d1f12d2d5edf11d541a1c45052d9bd1..bc42c3ac130060120b27f7bcab5aababe1814c46 100644 (file)
@@ -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))