This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/31344] [4.3 Regression] bootstrap broken on i[345]86-linux
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 May 2007 13:09:19 -0000
- Subject: [Bug rtl-optimization/31344] [4.3 Regression] bootstrap broken on i[345]86-linux
- References: <bug-31344-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #22 from ubizjak at gmail dot com 2007-05-11 14:09 -------
Alternative patch to emit_move_change_mode() to take push_operand away from
change_address():
Index: expr.c
===================================================================
--- expr.c (revision 124612)
+++ expr.c (working copy)
@@ -2867,7 +2867,12 @@ emit_move_change_mode (enum machine_mode
{
rtx ret;
- if (MEM_P (x))
+ if (push_operand (x, GET_MODE (x)))
+ {
+ ret = gen_rtx_MEM (new_mode, XEXP (x, 0));
+ MEM_COPY_ATTRIBUTES (ret, x);
+ }
+ else if (MEM_P (x))
{
/* We don't have to worry about changing the address since the
size in bytes is supposed to be the same. */
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31344