[tree-ssa] Bootstrap fails with enourmous memory usage

Daniel Berlin dberlin@dberlin.org
Sun Nov 24 12:42:00 GMT 2002



On Sun, 24 Nov 2002, Toon Moene wrote:

> Andreas Jaeger wrote:
> 
> > I cannot compile the current tree-ssa branch from CVS on my Athlon
> > systems the usual way:
> > 
> > top shows an enourmous amount of used memory:
> > 
> >   PID USER     PRI  NI  SIZE SWAP SHARE STAT %CPU %MEM   TIME COMMAND
> > 12244 aj        25   0 1591M 1872   884 R    97.8 78.7  43:21 stage1/cc1 -quiet
> 
> Mine fails even earlier, on a powerpc-unknown-linux-gnu system 
> (actually, Titanium PowerBook with 256 Mbyte RAM and 508 Kbyte SWAP - 
> sorry, a typo). I did not enable RTL checking ...

Try this small patch, see if it helps at all:
Index: tree-dfa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-dfa.c,v
retrieving revision 1.1.4.47
diff -u -p -r1.1.4.47 tree-dfa.c
--- tree-dfa.c	13 Nov 2002 21:04:39 -0000	1.1.4.47
+++ tree-dfa.c	24 Nov 2002 19:58:07 -0000
@@ -862,7 +951,7 @@ create_ref (var, ref_type, ref_mod, bb, 
 	  for (in = bb->pred, num = 0; in; in = in->pred_next)
 	    num++;
 
-	  VARRAY_GENERIC_PTR_INIT (ref->vphi.phi_args, num, "phi_args");
+	  VARRAY_GENERIC_PTR_INIT (ref->vphi.phi_args, 1, "phi_args");
 	}
     }
   else if (ref_type == V_USE)



More information about the Gcc-bugs mailing list