This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Bootstrap fails with enourmous memory usage


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]