aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/rtlanal.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 47d6a63..06995dd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-17 Mark Dettinger <dettinge@de.ibm.com>
+
+ * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
+ when modes are tieable.
+
2005-01-17 Ranjit Mathew <rmathew@hotmail.com>
* gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index abfa7b2..2cae7ed 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -3270,6 +3270,7 @@ rtx_cost (rtx x, enum rtx_code outer_code ATTRIBUTE_UNUSED)
return 0;
case SUBREG:
+ total = 0;
/* If we can't tie these modes, make this expensive. The larger
the mode, the more expensive it is. */
if (! MODES_TIEABLE_P (GET_MODE (x), GET_MODE (SUBREG_REG (x))))