[patch committed SH] Fix PR target/41029

Kaz Kojima kkojima@rr.iij4u.or.jp
Wed Aug 12 22:27:00 GMT 2009


I've applied the attached patch to fix PR target/41029.
A splitter for movdf took REGNO for a post_inc rtl.
The patch is tested with bootstrap and the top level "make -k
check" on sh4-unknown-linux-gnu.

Regards,
	kaz
--
2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>

	PR target/41029
	* config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.

--- ORIG/trunk/gcc/config/sh/sh.md	2009-07-06 23:27:44.000000000 +0900
+++ trunk/gcc/config/sh/sh.md	2009-08-11 07:54:41.000000000 +0900
@@ -6065,7 +6065,7 @@ label:
           /* If we have modified the stack pointer, the value that we have
   	     read with post-increment might be modified by an interrupt,
 	     so write it back.  */
-          if (REGNO (addr) == STACK_POINTER_REGNUM)
+          if (REGNO (XEXP (addr, 0)) == STACK_POINTER_REGNUM)
 	    emit_insn (gen_push_e (reg0));
           else
 	    emit_insn (gen_addsi3 (XEXP (operands[1], 0), XEXP (operands[1], 0), GEN_INT (-4)));



More information about the Gcc-patches mailing list