This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]