alias.c (find_base_term): Synch LO_SUM handling with what find_base_value does.
authorLuis Machado <luisgpm@br.ibm.com>
Mon, 8 Dec 2008 15:05:08 +0000 (15:05 +0000)
committerPeter Bergner <bergner@gcc.gnu.org>
Mon, 8 Dec 2008 15:05:08 +0000 (09:05 -0600)
2008-12-08  Luis Machado  <luisgpm@br.ibm.com>
* alias.c (find_base_term): Synch LO_SUM handling with what
find_base_value does.

From-SVN: r142553

gcc/ChangeLog
gcc/alias.c

index 353bdd1..2b4f6fa 100644 (file)
@@ -1,3 +1,8 @@
+2008-12-08  Luis Machado  <luisgpm@br.ibm.com>
+
+       * alias.c (find_base_term): Synch LO_SUM handling with what
+       find_base_value does.
+
 2008-12-08  Andrew Haley  <aph@redhat.com>
             Kamaraju Kusumanchi <raju.mailinglists@gmail.com>
 
index 4cadb6b..e5133d6 100644 (file)
@@ -1408,6 +1408,9 @@ find_base_term (rtx x)
        return 0;
       /* Fall through.  */
     case LO_SUM:
+      /* The standard form is (lo_sum reg sym) so look only at the
+         second operand.  */
+      return find_base_term (XEXP (x, 1));
     case PLUS:
     case MINUS:
       {