MIPS fix

law@redhat.com law@redhat.com
Tue Jun 11 13:26:00 GMT 2002



This fixes a slew of failures for mips-elf.  A return is a jump and when
you get it wrong, well, nothing good happens.  Installed into the mainline 
sources.

Eric -- you may want to move this to the branch.

	* mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
	RETURN insns.

Index: mips.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.c,v
retrieving revision 1.207
diff -c -3 -p -r1.207 mips.c
*** mips.c	11 Jun 2002 16:14:54 -0000	1.207
--- mips.c	11 Jun 2002 20:19:54 -0000
*************** mips_expand_epilogue ()
*** 7608,7614 ****
  
    if (mips_can_use_return_insn ())
      {
!       emit_insn (gen_return ());
        return;
      }
  
--- 7608,7614 ----
  
    if (mips_can_use_return_insn ())
      {
!       emit_jump_insn (gen_return ());
        return;
      }
  





More information about the Gcc-patches mailing list