[tree-ssa] Bootstrap fails with enourmous memory usage
Diego Novillo
dnovillo@redhat.com
Sun Nov 24 13:30:00 GMT 2002
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.
More information about the Gcc-bugs
mailing list