This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fixed m32r-linux-gcc ICE: in extract_insn, at recog.c
- 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: Wed, 10 Aug 2005 16:09:21 +0900
- Subject: [PATCH] Fixed m32r-linux-gcc ICE: in extract_insn, at recog.c
Hi Nick,
This is a patch to fix the following ICE bug.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23309
Please commit it into 3.4-branch, 4.0-branch and mainline.
Regards,
Kazuhiro Inaoka
gcc/ChangeLog
2005-08-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
* config/m32r/m32r.c (m32r_reload_lr): Fixed ICE bug [Bug c/23309].
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)))));