From 023f059b5c168cb31e8818d2c983f5687b169df4 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 22 Apr 2009 23:56:14 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/alias.c | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 34f80811911..90730541fe3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-04-22 Jakub Jelinek + + * alias.c (find_base_term): Move around LO_SUM case, so that + CONST falls through into PLUS/MINUS handling. + 2009-04-23 Ben Elliston * config/rs6000/linux-unwind.h (get_regs): Remove type diff --git a/gcc/alias.c b/gcc/alias.c index 85db75569c8..acfd934a7cf 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: { -- 2.30.2