alias.c (find_base_term): Move around LO_SUM case, so that CONST falls through into PLUS/MINUS handling.

* alias.c (find_base_term): Move around LO_SUM case, so that
	CONST falls through into PLUS/MINUS handling.

From-SVN: r146616
This commit is contained in:
Jakub Jelinek 2009-04-22 23:56:14 +02:00 committed by Jakub Jelinek
parent 9a4610284d
commit 023f059b5c
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2009-04-22 Jakub Jelinek <jakub@redhat.com>
* alias.c (find_base_term): Move around LO_SUM case, so that
CONST falls through into PLUS/MINUS handling.
2009-04-23 Ben Elliston <bje@au.ibm.com>
* config/rs6000/linux-unwind.h (get_regs): Remove type

View File

@ -1474,15 +1474,16 @@ find_base_term (rtx x)
return x;
return 0;
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 CONST:
x = XEXP (x, 0);
if (GET_CODE (x) != PLUS && GET_CODE (x) != MINUS)
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:
{