[Bug rtl-optimization/31344] [4.3 Regression] bootstrap broken on i[345]86-linux

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri May 11 13:09:00 GMT 2007



------- 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



More information about the Gcc-bugs mailing list