[lra] patch to fix PARISC bootstrap

Submitted by Vladimir Makarov on Aug. 28, 2012, 7:36 p.m.


Message ID 503D1DC1.4070309@redhat.com
State New
Headers show

Commit Message

Vladimir Makarov Aug. 28, 2012, 7:36 p.m.
Since last merge PARISC bootstrap fails.  The following patch fixes it.

The patch was successfully bootstrapped on x86/x86-64 and PARISC.

Committed as rev. 190759.

2012-08-28  Vladimir Makarov  <vmakarov@redhat.com>

         * lra-constraints.c (extract_loc_address_regs): Check on a simple
         plus when index reg class is the same as base class.

Patch hide | download patch | download mbox

Index: lra-constraints.c
--- lra-constraints.c	(revision 190628)
+++ lra-constraints.c	(working copy)
@@ -490,7 +490,8 @@  extract_loc_address_regs (bool top_p, en
 	   assume here, as well as in the tests below, that all
 	   addresses are in canonical form.  */
 	else if (INDEX_REG_CLASS
-		 == base_reg_class (VOIDmode, as, PLUS, SCRATCH))
+		 == base_reg_class (VOIDmode, as, PLUS, SCRATCH)
+		 && code0 != PLUS && code0 != MULT)
 	    extract_loc_address_regs (false, mode, as, arg0_loc, false, PLUS,
 				      code1, modify_p, ad);