This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/15286] ICE cause by reload
- From: "uweigand at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Oct 2004 16:20:34 -0000
- Subject: [Bug target/15286] ICE cause by reload
- References: <20040504204950.15286.fjahanian@apple.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From uweigand at gcc dot gnu dot org 2004-10-25 16:20 -------
Does this patch help?
Index: gcc/simplify-rtx.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/simplify-rtx.c,v
retrieving revision 1.206
diff -c -p -r1.206 simplify-rtx.c
*** gcc/simplify-rtx.c 18 Oct 2004 18:46:06 -0000 1.206
--- gcc/simplify-rtx.c 25 Oct 2004 16:17:42 -0000
*************** simplify_gen_subreg (enum machine_mode o
*** 3789,3795 ****
if (newx)
return newx;
! if (GET_CODE (op) == SUBREG || GET_MODE (op) == VOIDmode)
return NULL_RTX;
return gen_rtx_SUBREG (outermode, op, byte);
--- 3789,3796 ----
if (newx)
return newx;
! if (GET_CODE (op) == SUBREG || GET_MODE (op) == VOIDmode
! || (REG_P (op) && REGNO (op) < FIRST_PSEUDO_REGISTER))
return NULL_RTX;
return gen_rtx_SUBREG (outermode, op, byte);
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15286