From fbee756399a9efa24d5f629a7236fa59251d0d04 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Sun, 28 Nov 2004 13:02:52 +0000 Subject: [PATCH 1/1] 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 --- gcc/ChangeLog | 5 +++++ gcc/simplify-rtx.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) 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)) -- 2.30.2