CONST falls through into PLUS/MINUS handling.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146616
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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:
{