Patchwork [google] Do not declare pmu and sampling rate related vars for profile-use build (issue4832042)

login
register
mail settings
Submitter Xinliang David Li
Date July 29, 2011, 5:13 a.m.
Message ID <20110729051313.9BF291B40AA@aples.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/107336/
State New
Headers show

Comments

Xinliang David Li - July 29, 2011, 5:13 a.m.
The following trivial patch will be applied to google branches.
Bootstrap and tessted on x86-64/linux

2011-07-28  David Li  <davidxl@google.com>

	* coverage.c (coverage_init): Remove checking of profile-use
	flags.


--
This patch is available for review at http://codereview.appspot.com/4832042

Patch

Index: coverage.c
===================================================================
--- coverage.c	(revision 176765)
+++ coverage.c	(working copy)
@@ -1952,9 +1952,10 @@  coverage_init (const char *filename, con
 static bool
 profiling_enabled_p (void)
 {
-  return flag_pmu_profile_generate || profile_arc_flag ||
-      flag_profile_generate_sampling || flag_test_coverage ||
-      flag_branch_probabilities || flag_profile_reusedist;
+  return flag_pmu_profile_generate
+   || profile_arc_flag
+   || flag_profile_generate_sampling
+   || flag_profile_reusedist;
 }
 
 /* Construct variables for PMU profiling.