This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Bootstrap fails with enourmous memory usage
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Cc: Andreas Jaeger <aj at suse dot de>, <gcc-bugs at gcc dot gnu dot org>,Diego Novillo <dnovillo at redhat dot com>
- Date: Sun, 24 Nov 2002 14:58:42 -0500 (EST)
- Subject: Re: [tree-ssa] Bootstrap fails with enourmous memory usage
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)