Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(57)

Issue 4832042: [google] Do not declare pmu and sampling rate related vars for profile-use build

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by davidxl
Modified:
10 years, 3 months ago
Reviewers:
CC:
gcc-patches_gcc.gnu.org
Base URL:
svn+ssh://gcc.gnu.org/svn/gcc/branches/google/gcc-4_6/gcc/
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M coverage.c View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 1
davidxl
13 years, 8 months ago (2011-07-29 05:13:15 UTC) #1
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.

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.

--
This patch is available for review at http://codereview.appspot.com/4832042
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b