This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[4.3 patch committed] Fix PR target/36784
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 16 Jul 2008 07:47:45 +0900 (JST)
- Subject: [4.3 patch committed] Fix PR target/36784
PR target/36784 is a 4.3 regression which is solved already on
trunk with the patch
http://gcc.gnu.org/ml/gcc-patches/2008-03/msg01245.html
and was latent on the 4.3 branch.
The attached patch is a backport of the above patch to 4.3.
It's tested with bootstrap and the top level "make -k check" on
sh4-unknown-linux-gnu.
Regards,
kaz
--
2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
Backport from mainline:
PR target/36784
2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/sh.c (split_branches): Pass zero to redirect_jump
as 'delete_unused' argument.
diff -upr ORIG/gcc-4_3-branch/gcc/config/sh/sh.c LOCAL/gcc-4_3-branch/gcc/config/sh/sh.c
--- ORIG/gcc-4_3-branch/gcc/config/sh/sh.c 2008-07-10 09:51:29.000000000 +0900
+++ LOCAL/gcc-4_3-branch/gcc/config/sh/sh.c 2008-07-14 13:00:05.000000000 +0900
@@ -5280,7 +5280,7 @@ split_branches (rtx first)
bp->insert_place = insn;
bp->address = addr;
}
- ok = redirect_jump (insn, label, 1);
+ ok = redirect_jump (insn, label, 0);
gcc_assert (ok);
}
else