Commit 023f059b by Jakub Jelinek Committed by Jakub Jelinek

alias.c (find_base_term): Move around LO_SUM case, so that CONST falls through…

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
parent 9a461028
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> 2009-04-23 Ben Elliston <bje@au.ibm.com>
* config/rs6000/linux-unwind.h (get_regs): Remove type * config/rs6000/linux-unwind.h (get_regs): Remove type
......
...@@ -1474,15 +1474,16 @@ find_base_term (rtx x) ...@@ -1474,15 +1474,16 @@ find_base_term (rtx x)
return x; return x;
return 0; 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: case CONST:
x = XEXP (x, 0); x = XEXP (x, 0);
if (GET_CODE (x) != PLUS && GET_CODE (x) != MINUS) if (GET_CODE (x) != PLUS && GET_CODE (x) != MINUS)
return 0; return 0;
/* Fall through. */ /* 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 PLUS:
case MINUS: case MINUS:
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment