* final.c (alter_subreg): Don't call subreg_regno for a non-REG.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97444
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-04-02 Alexandre Oliva <aoliva@redhat.com>
+
+ PR middle-end/20491
+ * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
+
2005-04-02 Alexandre Oliva <aoliva@redhat.com>
PR rtl-optimization/20290
if (new != 0)
*xp = new;
- else
+ else if (REG_P (y))
{
/* Simplify_subreg can't handle some REG cases, but we have to. */
unsigned int regno = subreg_regno (x);
- gcc_assert (REG_P (y));
*xp = gen_rtx_REG_offset (y, GET_MODE (x), regno, SUBREG_BYTE (x));
}
}