The following path shouldfix

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55049

The patch was successfully bootstrapped on x86-64. Sorry, I can not bootstrap with mx32 because of libraries absence.

  Committed as rev. 192771.

2012-10-24  Vladimir Makarov  <vmaka...@redhat.com>

    PR bootstrap/55049
    * lra-constraints.c (extract_loc_address_regs): Pass top_p for
    ZERO_EXTEND operand.

svn diff --diff-cmd diff -x -up lra-constraints.c 
Index: lra-constraints.c
===================================================================
--- lra-constraints.c   (revision 192770)
+++ lra-constraints.c   (working copy)
@@ -515,6 +515,12 @@ extract_loc_address_regs (bool top_p, en
     case PC:
       return;
 
+    case ZERO_EXTEND:
+      /* Pass TOP_P for displacement.  */
+      extract_loc_address_regs (top_p, mode, as, &XEXP (*loc, 0), context_p,
+                               code, index_code, modify_p, ad);
+      return;
+
     case PLUS:
     case LO_SUM:
       /* When we have an address that is a sum, we must determine

Reply via email to