This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 3.4] Backport fix for PR 23309
- From: Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 06 Dec 2005 15:13:39 +0900
- Subject: [PATCH 3.4] Backport fix for PR 23309
Hi Nick,
The following patch is a backport to the 3.4-branch for PR 23309.
Please commit into 3.4-branch?
gcc/ChangeLog
2005-08-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
PR 23309
* config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
deciding which instruction sequence to use.
Regards,
Kazuhiro Inaoka
Index: m32r.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m32r/m32r.c,v
retrieving revision 1.80.4.5
diff -u -p -r1.80.4.5 m32r.c
--- m32r.c 24 May 2005 09:43:42 -0000 1.80.4.5
+++ m32r.c 10 Aug 2005 06:38:01 -0000
@@ -1906,7 +1906,7 @@ m32r_reload_lr (rtx sp, int size)
if (size == 0)
emit_insn (gen_movsi (lr, gen_rtx_MEM (Pmode, sp)));
- else if (size <= 32768)
+ else if (size < 32768)
emit_insn (gen_movsi (lr, gen_rtx_MEM (Pmode,
gen_rtx_PLUS (Pmode, sp,
GEN_INT (size)))));