From b14066a92dfd54d75445146f87bdef0d10b800ba Mon Sep 17 00:00:00 2001 From: Geoff Keating Date: Mon, 11 Sep 2000 14:39:42 +0000 Subject: [PATCH] * alias.c (memrefs_conflict_p): An ADDRESSOF does conflict, sorry. From-SVN: r36317 --- gcc/ChangeLog | 4 ++++ gcc/alias.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 098a50c5f31..6c753256f2c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-09-11 Geoff Keating + + * alias.c (memrefs_conflict_p): An ADDRESSOF does conflict, sorry. + 2000-09-11 Bernd Schmidt * reload.c (regno_clobbered_p): Fix thinko in previous change. diff --git a/gcc/alias.c b/gcc/alias.c index b17296bcbd5..61a1bd67354 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -1457,8 +1457,8 @@ 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 && GET_CODE (y) == ADDRESSOF) + return xsize < 0 || ysize < 0; if (CONSTANT_P (x)) { -- 2.30.2