From: law Date: Tue, 11 Jun 2002 23:04:15 +0000 (+0000) Subject: * caller-save.c (init_caller_save): Move creation of SAVEINSN X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=55e5ddb45e327fd26667511d6b04a4246cb37a9d;p=thirdparty%2Fgcc.git * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8288483e5c42..bdb2ab2cf770 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -49,6 +49,9 @@ Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka 2002-06-11 Jeffrey Law + * 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. diff --git a/gcc/caller-save.c b/gcc/caller-save.c index 2c6e5ac79d1f..bc42c3ac1300 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))