2010-03-31 Richard Guenther <rguenther@suse.de>
PR middle-end/43600
* cgraphunit.c (cgraph_output_in_order): Do not allocate
temporary data on stack.
From-SVN: r157867
+2010-03-31 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/43600
+ * cgraphunit.c (cgraph_output_in_order): Do not allocate
+ temporary data on stack.
+
2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
cgraph_output_in_order (void)
{
int max;
- size_t size;
struct cgraph_order_sort *nodes;
int i;
struct cgraph_node *pf;
struct cgraph_asm_node *pa;
max = cgraph_order;
- size = max * sizeof (struct cgraph_order_sort);
- nodes = (struct cgraph_order_sort *) alloca (size);
- memset (nodes, 0, size);
+ nodes = XCNEWVEC (struct cgraph_order_sort, max);
varpool_analyze_pending_decls ();
}
cgraph_asm_nodes = NULL;
+ free (nodes);
}
/* Return true when function body of DECL still needs to be kept around