[patch] fix for PR 24709

Andrew MacLeod amacleod@redhat.com
Fri Nov 11 21:45:00 GMT 2005


In an attempt to prevent an infinite loop when verifying the immediate
use links, an arbitrary limit was checked which is higher than one would
ever expect to see.  Unfortunately, the limit was set too low. the
original value of 30,000 uses was exceeded by this test case (It peaked
at about 32,000+).  This new limit should never be reached....  

This should be a non-impact change since it simply raises the limit
which generates an error.

Bootstrapping on build-i686-pc-linux-gnu as we speak, and no new failures in the testsuites.

Andrew

	* tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
	loop check.


Index: tree-ssa-operands.c
===================================================================
--- tree-ssa-operands.c	(revision 106272)
+++ tree-ssa-operands.c	(working copy)
@@ -2012,8 +2012,8 @@
 
       prev = ptr;
       ptr = ptr->next;
-      /* Avoid infinite loops.  */
-      if (count++ > 30000)
+      /* Avoid infinite loops.  50,000,000 uses probably indicates a problem.  */
+      if (count++ > 50000000)
 	goto error;
     }
 




More information about the Gcc-patches mailing list