mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-26 23:04:39 +08:00
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:
parent
9a4610284d
commit
023f059b5c
@ -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
|
||||
|
@ -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:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user