diff mbox

Fix PR48804

Message ID alpine.LNX.2.00.1104281505160.810@zhemvz.fhfr.qr
State New
Headers show

Commit Message

Richard Biener April 28, 2011, 1:06 p.m. UTC
Looking closer reveals a use-after-free, so this reverts the
portion of the patch likely causing 48804.

Committed as obvious.

Richard.

2011-04-28  Richard Guenther  <rguenther@suse.de>

	Revert
	2011-04-28  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-structalias.c (solve_constraints): Build succ graph
	as late as possible.
diff mbox

Patch

Index: gcc/tree-ssa-structalias.c
===================================================================
--- gcc/tree-ssa-structalias.c	(revision 173066)
+++ gcc/tree-ssa-structalias.c	(working copy)
@@ -6359,10 +6359,11 @@  solve_constraints (void)
     fprintf (dump_file, "Rewriting constraints and unifying "
 	     "variables\n");
   rewrite_constraints (graph, si);
-  free_var_substitution_info (si);
 
   build_succ_graph ();
 
+  free_var_substitution_info (si);
+
   /* Attach complex constraints to graph nodes.  */
   move_complex_constraints (graph);