aboutsummaryrefslogtreecommitdiff
path: root/gcc/alias.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-04-22 23:56:14 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2009-04-22 23:56:14 +0200
commit023f059b5c168cb31e8818d2c983f5687b169df4 (patch)
tree3876efc0aa84c9fca8072376a3aeed37ca13cbe6 /gcc/alias.c
parent9a4610284d04ad1a9a26d52e117e67ee6ef70c8d (diff)
downloadgcc-023f059b5c168cb31e8818d2c983f5687b169df4.zip
gcc-023f059b5c168cb31e8818d2c983f5687b169df4.tar.gz
gcc-023f059b5c168cb31e8818d2c983f5687b169df4.tar.bz2
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
Diffstat (limited to 'gcc/alias.c')
-rw-r--r--gcc/alias.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/alias.c b/gcc/alias.c
index 85db755..acfd934 100644
--- a/gcc/alias.c
+++ b/gcc/alias.c
@@ -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:
{