diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2002-02-12 15:18:42 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2002-02-12 10:18:42 -0500 |
commit | 0aacc8ed7bf8242980eee04231aff0cdc70f4f08 (patch) | |
tree | 4b5772fc52aec53078cc0fa032a5b63ccbeacc2d /gcc/alias.c | |
parent | aa3aae06f94e6e064f2fcb229393496be6f0aa5f (diff) | |
download | gcc-0aacc8ed7bf8242980eee04231aff0cdc70f4f08.zip gcc-0aacc8ed7bf8242980eee04231aff0cdc70f4f08.tar.gz gcc-0aacc8ed7bf8242980eee04231aff0cdc70f4f08.tar.bz2 |
alias.c (find_base_value, [...]): Handle #ifdef POINTERS_EXTEND_UNSIGNED.
* alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
Handle #ifdef POINTERS_EXTEND_UNSIGNED.
From-SVN: r49706
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index 95b16ca..ca533ee 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -728,6 +728,7 @@ find_base_value (src) rtx src; { unsigned int regno; + switch (GET_CODE (src)) { case SYMBOL_REF: @@ -846,8 +847,6 @@ find_base_value (src) if (GET_MODE_SIZE (GET_MODE (src)) < GET_MODE_SIZE (Pmode)) break; /* Fall through. */ - case ZERO_EXTEND: - case SIGN_EXTEND: /* used for NT/Alpha pointers */ case HIGH: case PRE_INC: case PRE_DEC: @@ -857,6 +856,19 @@ find_base_value (src) case POST_MODIFY: return find_base_value (XEXP (src, 0)); + case ZERO_EXTEND: + case SIGN_EXTEND: /* used for NT/Alpha pointers */ + { + rtx temp = find_base_value (XEXP (src, 0)); + +#ifdef POINTERS_EXTEND_UNSIGNED + if (temp != 0 && CONSTANT_P (temp) && GET_MODE (temp) != Pmode) + temp = convert_memory_address (Pmode, temp); +#endif + + return temp; + } + default: break; } |