Your flow change may break libg++

H.J. Lu hjl@varesearch.com
Wed Mar 31 23:46:00 GMT 1999


> 
> On Tue, Mar 02, 1999 at 11:27:43AM -0800, H.J. Lu wrote:
> > I have done that in the past for so many times. But it has become a
> > regular recurring event. We even had a debate on it. I am tired of it.
> 
> No.  Get used to it. 
> 
> I'll treat this just like every other person who says gcc
> breaks emacs/lapack/qt/whatever and ignore it until I get
> a self-contained test case.
> 
> 

Sorry, I don't have time for it. In the meantime, here is a patch
to make egcs dump core instead of messing up the stack. I hope it
rings a bell for you.

Thanks.


-- 
H.J. Lu (hjl@gnu.org)
---
Index: flow.c
===================================================================
RCS file: /local/work/cvs/gnu/egcs/gcc/flow.c,v
retrieving revision 1.1.1.55
diff -u -p -r1.1.1.55 flow.c
--- flow.c	1999/03/01 22:41:26	1.1.1.55
+++ flow.c	1999/03/02 20:06:17
@@ -1478,8 +1478,12 @@ delete_unreachable_blocks ()
       b->aux = b;
 
       for (e = b->succ; e ; e = e->succ_next)
+	{
+	if (tos - worklist >= n)
+	  abort ();
 	if (!e->dest->aux)
 	  *tos++ = e->dest;
+	}
     }
 
   /* Delete all unreachable basic blocks.  Count down so that we don't



More information about the Gcc mailing list