From a6f7c915fe0d5e0eaef3c7540a905029ffb35089 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Tue, 4 Jun 2002 02:25:57 +0000 Subject: [PATCH] * alias.c (nonoverlapping_memrefs_p): Fix off by one error. From-SVN: r54225 --- gcc/ChangeLog | 4 ++++ gcc/alias.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0b913487d01..7f985e04e3b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-06-03 Dan Nicolaescu + + * alias.c (nonoverlapping_memrefs_p): Fix off by one error. + 2002-06-03 Roger Sayle * gcse.c (cprop_jump): Use single_set to get the pattern diff --git a/gcc/alias.c b/gcc/alias.c index 60213d21511..e3dd16008cf 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -2022,7 +2022,7 @@ nonoverlapping_memrefs_p (x, y) /* If we don't know the size of the lower-offset value, we can't tell if they conflict. Otherwise, we do the test. */ - return sizex >= 0 && offsety > offsetx + sizex; + return sizex >= 0 && offsety >= offsetx + sizex; } /* True dependence: X is read after store in MEM takes place. */ -- 2.30.2