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: Diego Novillo <dnovillo at redhat dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: Toon Moene <toon at moene dot indiv dot nluug dot nl>, Andreas Jaeger <aj at suse dot de>, gcc-bugs at gcc dot gnu dot org
- Date: Sun, 24 Nov 2002 15:19:42 -0500
- Subject: Re: [tree-ssa] Bootstrap fails with enourmous memory usage
- Organization: Red Hat Canada
- References: <3DE112DC.2050200@moene.indiv.nluug.nl> <Pine.LNX.4.44.0211241457170.27468-100000@dberlin.org>
On Sun, 24 Nov 2002, Daniel Berlin wrote:
> 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)
Hmm, why would it? We will allocate 'num' arguments anyway.
Maybe I'm missing something about VARRAYs.