Patchwork [committed] Fix interchanged base/index on PA hpux

login
register
mail settings
Submitter John David Anglin
Date June 18, 2010, 12:37 a.m.
Message ID <20100618003735.E50864FA3@hiauly1.hia.nrc.ca>
Download mbox | patch
Permalink /patch/56098/
State New
Headers show

Comments

John David Anglin - June 18, 2010, 12:37 a.m.
The enclosed patch fixes a problem with base and index registers
being interchanged.  This affects hppa hpux targets.  Tested on
hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11 with no observed
regressions.

Dave

Patch

Index: config/pa/pa.c
===================================================================
--- config/pa/pa.c	(revision 160864)
+++ config/pa/pa.c	(working copy)
@@ -1699,10 +1699,6 @@ 
 		  && !REG_POINTER (operand0)
 		  && !HARD_REGISTER_P (operand0))
 		copy_reg_pointer (operand0, operand1);
-	      else if (REG_POINTER (operand0)
-		       && !REG_POINTER (operand1)
-		       && !HARD_REGISTER_P (operand1))
-		copy_reg_pointer (operand1, operand0);
 	    }
 	  
 	  /* When MEMs are broken out, the REG_POINTER flag doesn't