diff options
| author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-22 21:56:14 +0000 |
|---|---|---|
| committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-22 21:56:14 +0000 |
| commit | a7cf5bbf407b59635c3d7d7a6aceaedbadfe08c8 (patch) | |
| tree | 3876efc0aa84c9fca8072376a3aeed37ca13cbe6 | |
| parent | 6632aeb54aba709529fa8786746a56c5fddee740 (diff) | |
| download | ppe42-gcc-a7cf5bbf407b59635c3d7d7a6aceaedbadfe08c8.tar.gz ppe42-gcc-a7cf5bbf407b59635c3d7d7a6aceaedbadfe08c8.zip | |
* alias.c (find_base_term): Move around LO_SUM case, so that
CONST falls through into PLUS/MINUS handling.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146616 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | 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 <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 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: { |

