aboutsummaryrefslogtreecommitdiff
path: root/gcc/alias.c
diff options
context:
space:
mode:
authorJohn Wehle <john@feith.com>2000-09-14 04:47:48 +0000
committerJohn Wehle <wehle@gcc.gnu.org>2000-09-14 04:47:48 +0000
commitb24ea0776687310b2f3d767146eb6568f788a198 (patch)
tree4d020ff04ceae8759a7474b147b19582163fdd06 /gcc/alias.c
parentfd5d5b07b743014af3b70d4b0f9ca9bdfacf3656 (diff)
downloadgcc-b24ea0776687310b2f3d767146eb6568f788a198.zip
gcc-b24ea0776687310b2f3d767146eb6568f788a198.tar.gz
gcc-b24ea0776687310b2f3d767146eb6568f788a198.tar.bz2
alias.c (memrefs_conflict_p): An ADDRESSOF doesn't conflict with frame_pointer_rtx.
* alias.c (memrefs_conflict_p): An ADDRESSOF doesn't conflict with frame_pointer_rtx. From-SVN: r36401
Diffstat (limited to 'gcc/alias.c')
-rw-r--r--gcc/alias.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/gcc/alias.c b/gcc/alias.c
index 32d63b2..be46281 100644
--- a/gcc/alias.c
+++ b/gcc/alias.c
@@ -1457,8 +1457,17 @@ 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 (GET_CODE (x) == ADDRESSOF)
+ {
+ if (y == frame_pointer_rtx
+ || GET_CODE (y) == ADDRESSOF)
+ return xsize <= 0 || ysize <= 0;
+ }
+ if (GET_CODE (y) == ADDRESSOF)
+ {
+ if (x == frame_pointer_rtx)
+ return xsize <= 0 || ysize <= 0;
+ }
if (CONSTANT_P (x))
{