------- 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