diff mbox

Make -fno-tree-pta work

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

Commit Message

Richard Biener Sept. 6, 2012, 9:06 a.m. UTC
This fixes -fno-tree-pta - noticed it doesn't work when trying
to compile a testcase where PTA uses too much memory.

Bootstrapped & tested on x86_64-unknown-linux-gnu, applied.

Richard.

2012-09-06  Richard Guenther  <rguenther@suse.de>

	* passes.c (execute_function_todo): Call compute_may_aliases
	only if flag_tree_pta is set.
diff mbox

Patch

Index: gcc/passes.c
===================================================================
--- gcc/passes.c	(revision 190983)
+++ gcc/passes.c	(working copy)
@@ -1776,7 +1776,8 @@  execute_function_todo (void *data)
   if (flags & TODO_rebuild_alias)
     {
       execute_update_addresses_taken ();
-      compute_may_aliases ();
+      if (flag_tree_pta)
+	compute_may_aliases ();
     }
   else if (optimize && (flags & TODO_update_address_taken))
     execute_update_addresses_taken ();