This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[lra] patch to fix PARISC bootstrap
- From: Vladimir Makarov <vmakarov at redhat dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 28 Aug 2012 15:36:33 -0400
- Subject: [lra] patch to fix PARISC bootstrap
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.
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);