diff options
author | wehle <wehle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-10 18:25:49 +0000 |
---|---|---|
committer | wehle <wehle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-10 18:25:49 +0000 |
commit | 7a4fb8f4497fc3842a09974b3715272a218d21e9 (patch) | |
tree | 7eefe19dc8865370e7ecf0dc3bfec84f34941058 /gcc/alias.c | |
parent | 4062b755f3891789a1cbc2da72d290df7a179095 (diff) | |
download | gcc-7a4fb8f4497fc3842a09974b3715272a218d21e9.tar.gz |
* alias.c (find_base_term): Handle ADDRESSOF.
(memrefs_conflict_p): An ADDRESSOF doesn't conflict.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36300 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index cb5a6363779..b17296bcbd5 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -1131,6 +1131,9 @@ find_base_term (x) case LABEL_REF: return x; + case ADDRESSOF: + return REG_BASE_VALUE (stack_pointer_rtx); + default: return 0; } @@ -1454,6 +1457,9 @@ memrefs_conflict_p (xsize, x, ysize, y, c) return memrefs_conflict_p (xsize, x, ysize, XEXP (y, 0), c); } + if (GET_CODE (x) == ADDRESSOF || GET_CODE (y) == ADDRESSOF) + return xsize <= 0 || ysize <= 0; + if (CONSTANT_P (x)) { if (GET_CODE (x) == CONST_INT && GET_CODE (y) == CONST_INT) |