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]

[tree-ssa libmudflap] violation message improvement


Hi -

Applying:


2002-08-28  Frank Ch. Eigler  <fche@redhat.com>

	* mf-runtime.c (__mf_violation): Try harder to locate nearby objects.


Index: mf-runtime.c
===================================================================
RCS file: /cvs/gcc/gcc/libmudflap/Attic/mf-runtime.c,v
retrieving revision 1.1.2.10
diff -u -p -r1.1.2.10 mf-runtime.c
--- mf-runtime.c	27 Aug 2002 22:33:29 -0000	1.1.2.10
+++ mf-runtime.c	28 Aug 2002 19:45:46 -0000
@@ -1554,7 +1554,7 @@ __mf_violation (uintptr_t ptr, uintptr_t
 	s_low = ptr;
 	s_high = CLAMPSZ (ptr, sz);
 
-	while (tries < 4) /* magic */
+	while (tries < 16) /* magic */
 	  {
 	    if (dead_p)
 	      num_objs = __mf_find_dead_objects (s_low, s_high, objs, max_objs);
@@ -1565,8 +1565,8 @@ __mf_violation (uintptr_t ptr, uintptr_t
 	      break;
 
 	    tries ++;
-	    s_low = CLAMPSUB (s_low, (sz * tries));
-	    s_high = CLAMPADD (s_high, (sz * tries));
+	    s_low = CLAMPSUB (s_low, (sz * tries * tries));
+	    s_high = CLAMPADD (s_high, (sz * tries * tries));
 	  }
 
 	for (i = 0; i < num_objs; i++)


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