Patchwork [pph] Misc cleanups (3/3) (issue5274043)

login
register
mail settings
Submitter Diego Novillo
Date Oct. 14, 2011, 12:10 p.m.
Message ID <20111014121017.1FE591DA1D3@topo.tor.corp.google.com>
Download mbox | patch
Permalink /patch/119776/
State New
Headers show

Comments

Diego Novillo - Oct. 14, 2011, 12:10 p.m.
* pph-streamer-out.c (pph_out_tree_1): Do not call pph_trace_tree
 	unless flag_pph_tracer is set.

Patch

diff --git a/gcc/cp/pph-streamer-out.c b/gcc/cp/pph-streamer-out.c
index e337a31..d534b42 100644
--- a/gcc/cp/pph-streamer-out.c
+++ b/gcc/cp/pph-streamer-out.c
@@ -1916,7 +1916,8 @@  pph_out_tree_1 (pph_stream *stream, tree expr, bool mergeable)
     }
   else if (marker == PPH_RECORD_START || marker == PPH_RECORD_START_MUTATED)
     {
-      pph_trace_tree (expr, mergeable);
+      if (flag_pph_tracer)
+	pph_trace_tree (expr, mergeable);
 
       /* This is the first time we see EXPR, write it out.  */
       if (marker == PPH_RECORD_START)