This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]