diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-02-13 14:50:53 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-02-13 14:50:53 +0000 |
commit | 5104ef691f9965a80664115e28320c1f667863bd (patch) | |
tree | 32b68e574e51513adda4604f42ebf73b68b96e13 /gcc/alias.c | |
parent | 7953f6869c3e086e8aaf0fd64112194332bd8844 (diff) | |
download | gcc-5104ef691f9965a80664115e28320c1f667863bd.tar.gz |
* alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
Make same change as for find_base_value.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49730 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index ca533ee4d82..fb93d658faf 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -1242,8 +1242,6 @@ find_base_term (x) if (GET_MODE_SIZE (GET_MODE (x)) < GET_MODE_SIZE (Pmode)) return 0; /* Fall through. */ - case ZERO_EXTEND: - case SIGN_EXTEND: /* Used for Alpha/NT pointers */ case HIGH: case PRE_INC: case PRE_DEC: @@ -1253,6 +1251,19 @@ find_base_term (x) case POST_MODIFY: return find_base_term (XEXP (x, 0)); + case ZERO_EXTEND: + case SIGN_EXTEND: /* Used for Alpha/NT pointers */ + { + rtx temp = find_base_term (XEXP (x, 0)); + +#ifdef POINTERS_EXTEND_UNSIGNED + if (temp != 0 && CONSTANT_P (temp) && GET_MODE (temp) != Pmode) + temp = convert_memory_address (Pmode, temp); +#endif + + return temp; + } + case VALUE: val = CSELIB_VAL_PTR (x); for (l = val->locs; l; l = l->next) |