From: Ulrich Weigand Date: Sun, 28 Nov 2004 13:02:52 +0000 (+0000) Subject: re PR rtl-optimization/18420 (ICE compiling mesa at -O2) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fbee756399a9efa24d5f629a7236fa59251d0d04;hp=6e1037da47efab9181d14cd9945294fcbb1e5dd6;p=gcc.git re PR rtl-optimization/18420 (ICE compiling mesa at -O2) PR rtl-optimization/18420 * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change. From-SVN: r91419 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bd956c4057e..3a758063001 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-11-28 Ulrich Weigand + + PR rtl-optimization/18420 + * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change. + 2004-11-28 Steven Bosscher John David Anglin diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index 52c0cffb87b..75bf42afbd4 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -3782,8 +3782,7 @@ simplify_gen_subreg (enum machine_mode outermode, rtx op, if (newx) return newx; - if (GET_CODE (op) == SUBREG || GET_MODE (op) == VOIDmode - || (REG_P (op) && REGNO (op) < FIRST_PSEUDO_REGISTER)) + if (GET_CODE (op) == SUBREG || GET_MODE (op) == VOIDmode) return NULL_RTX; if (validate_subreg (outermode, innermode, op, byte))