aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@godzilla.ics.uci.edu>2002-06-04 02:25:57 +0000
committerRichard Henderson <rth@gcc.gnu.org>2002-06-03 19:25:57 -0700
commita6f7c915fe0d5e0eaef3c7540a905029ffb35089 (patch)
tree38a0dbd512871f07f9bbc01574bf9ab7d24a6282 /gcc
parent7210c9aa601e4c713af8aa5991fd1209dd864b64 (diff)
downloadgcc-a6f7c915fe0d5e0eaef3c7540a905029ffb35089.zip
gcc-a6f7c915fe0d5e0eaef3c7540a905029ffb35089.tar.gz
gcc-a6f7c915fe0d5e0eaef3c7540a905029ffb35089.tar.bz2
* alias.c (nonoverlapping_memrefs_p): Fix off by one error.
From-SVN: r54225
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/alias.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0b91348..7f985e0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
+
+ * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
+
2002-06-03 Roger Sayle <roger@eyesopen.com>
* gcse.c (cprop_jump): Use single_set to get the pattern
diff --git a/gcc/alias.c b/gcc/alias.c
index 60213d2..e3dd160 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. */