This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch RFA] SH: Fix PR target/29599
On Feb 8, 2007, Kaz Kojima <kkojima@rr.iij4u.or.jp> wrote:
> The original offset is 0x7ffffffc and ep->offset is 12 in that case.
Thanks for the investigation. In this case, I'm convinced the change
below is the right thing to do.
> --- ORIG/trunk/gcc/reload1.c 2007-01-29 09:36:53.000000000 +0900
> +++ LOCAL/trunk/gcc/reload1.c 2007-02-08 07:58:14.000000000 +0900
> @@ -3100,6 +3100,7 @@ eliminate_regs_in_insn (rtx insn, int re
> {
> rtx to_rtx = ep->to_rtx;
> offset += ep->offset;
> + offset = trunc_int_for_mode (offset, GET_MODE (reg));
--
Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member http://www.fsfla.org/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}