aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2004-11-28 13:02:52 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2004-11-28 13:02:52 +0000
commitfbee756399a9efa24d5f629a7236fa59251d0d04 (patch)
treef6a5730e206725ab942a13db5d5ef3bf8e76e1bd
parent6e1037da47efab9181d14cd9945294fcbb1e5dd6 (diff)
downloadgcc-fbee756399a9efa24d5f629a7236fa59251d0d04.zip
gcc-fbee756399a9efa24d5f629a7236fa59251d0d04.tar.gz
gcc-fbee756399a9efa24d5f629a7236fa59251d0d04.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/simplify-rtx.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bd956c4..3a75806 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-28 Ulrich Weigand <uweigand@de.ibm.com>
+
+ PR rtl-optimization/18420
+ * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
+
2004-11-28 Steven Bosscher <stevenb@suse.de>
John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index 52c0cff..75bf42a 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))