summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-21 02:14:25 +0000
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-21 02:14:25 +0000
commit9e9ce32b6272991fc107c24bda5bb2f2a8190e23 (patch)
treead0b7c7347cbfef576d3024b84271c85ad3e824b
parent51d3cd3881b1a68e611395dce23e11908c5206ee (diff)
downloadppe42-gcc-9e9ce32b6272991fc107c24bda5bb2f2a8190e23.tar.gz
ppe42-gcc-9e9ce32b6272991fc107c24bda5bb2f2a8190e23.zip
PR target/18701
* combine.c (combine_simplify_rtx): Revert change of 2004-12-31. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94005 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/combine.c8
2 files changed, 7 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 74474ec8ec6..fe6e8a4d20b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-21 Hans-Peter Nilsson <hp@bitrange.com>
+
+ PR target/18701
+ * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
+
2005-01-20 Paul Brook <paul@codesourcery.com>
* doc/rtl.texi: Document value extension requirements for CONST_INT.
diff --git a/gcc/combine.c b/gcc/combine.c
index 984c45e10ea..dca4d971a1e 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -3984,14 +3984,10 @@ combine_simplify_rtx (rtx x, enum machine_mode op0_mode, int in_dest)
}
/* Don't change the mode of the MEM if that would change the meaning
- of the address. Similarly, don't allow widening, as that may
- access memory outside the defined object or using an address
- that is invalid for a wider mode. */
+ of the address. */
if (MEM_P (SUBREG_REG (x))
&& (MEM_VOLATILE_P (SUBREG_REG (x))
- || mode_dependent_address_p (XEXP (SUBREG_REG (x), 0))
- || (GET_MODE_SIZE (mode)
- > GET_MODE_SIZE (GET_MODE (SUBREG_REG (x))))))
+ || mode_dependent_address_p (XEXP (SUBREG_REG (x), 0))))
return gen_rtx_CLOBBER (mode, const0_rtx);
/* Note that we cannot do any narrowing for non-constants since
OpenPOWER on IntegriCloud