This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH]: Fix tree-optimization/22279
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 04 Jul 2005 13:45:55 -0400
- Subject: [PATCH]: Fix tree-optimization/22279
I used <= when i meant <
Fixed thusly and committed to mainline.
2005-07-04 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/22279
* tree-ssa-structalias.c (offset_overlaps_with_access): Use
correct operator.
Index: tree-ssa-structalias.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-structalias.c,v
retrieving revision 2.9
diff -u -p -r2.9 tree-ssa-structalias.c
--- tree-ssa-structalias.c 1 Jul 2005 19:45:23 -0000 2.9
+++ tree-ssa-structalias.c 4 Jul 2005 17:44:16 -0000
@@ -1951,7 +1951,7 @@ offset_overlaps_with_access (const unsig
{
if (fieldpos == accesspos && fieldsize == accesssize)
return true;
- if (accesspos >= fieldpos && accesspos <= (fieldpos + fieldsize))
+ if (accesspos >= fieldpos && accesspos < (fieldpos + fieldsize))
return true;
if (accesspos < fieldpos && (accesspos + accesssize > fieldpos))
return true;