Commit 892f2924 by H.J. Lu Committed by H.J. Lu

Put back typedef for gcov_working_set_t/gcov_bucket_type

	* basic-block.h (gcov_working_set_t): Put back typedef. 
	* gcov-io.h (gcov_bucket_type): Likewise.
	(gcov_working_set_info, gcov_working_set_t): Likewise.

From-SVN: r205866
parent 892ae770
2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
* basic-block.h (gcov_working_set_t): Put back typedef.
* gcov-io.h (gcov_bucket_type): Likewise.
(gcov_working_set_info, gcov_working_set_t): Likewise.
2013-12-10 Oleg Endo <olegendo@gcc.gnu.org> 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
* cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator): * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
...@@ -939,7 +939,7 @@ extern void rtl_profile_for_edge (edge); ...@@ -939,7 +939,7 @@ extern void rtl_profile_for_edge (edge);
extern void default_rtl_profile (void); extern void default_rtl_profile (void);
/* In profile.c. */ /* In profile.c. */
struct gcov_working_set_t; typedef struct gcov_working_set_info gcov_working_set_t;
extern gcov_working_set_t *find_working_set (unsigned pct_times_10); extern gcov_working_set_t *find_working_set (unsigned pct_times_10);
/* Check tha probability is sane. */ /* Check tha probability is sane. */
......
...@@ -401,7 +401,7 @@ typedef unsigned HOST_WIDEST_INT gcov_type_unsigned; ...@@ -401,7 +401,7 @@ typedef unsigned HOST_WIDEST_INT gcov_type_unsigned;
/* Structured records. */ /* Structured records. */
/* Structure used for each bucket of the log2 histogram of counter values. */ /* Structure used for each bucket of the log2 histogram of counter values. */
struct gcov_bucket_type typedef struct
{ {
/* Number of counters whose profile count falls within the bucket. */ /* Number of counters whose profile count falls within the bucket. */
gcov_unsigned_t num_counters; gcov_unsigned_t num_counters;
...@@ -409,7 +409,7 @@ struct gcov_bucket_type ...@@ -409,7 +409,7 @@ struct gcov_bucket_type
gcov_type min_value; gcov_type min_value;
/* Cumulative value of the profile counts in this bucket. */ /* Cumulative value of the profile counts in this bucket. */
gcov_type cum_value; gcov_type cum_value;
}; } gcov_bucket_type;
/* For a log2 scale histogram with each range split into 4 /* For a log2 scale histogram with each range split into 4
linear sub-ranges, there will be at most 64 (max gcov_type bit size) - 1 log2 linear sub-ranges, there will be at most 64 (max gcov_type bit size) - 1 log2
...@@ -634,13 +634,13 @@ GCOV_LINKAGE void gcov_write_length (gcov_position_t /*position*/); ...@@ -634,13 +634,13 @@ GCOV_LINKAGE void gcov_write_length (gcov_position_t /*position*/);
/* Working set size statistics for a given percentage of the entire /* Working set size statistics for a given percentage of the entire
profile (sum_all from the counter summary). */ profile (sum_all from the counter summary). */
struct gcov_working_set_t typedef struct gcov_working_set_info
{ {
/* Number of hot counters included in this working set. */ /* Number of hot counters included in this working set. */
unsigned num_counters; unsigned num_counters;
/* Smallest counter included in this working set. */ /* Smallest counter included in this working set. */
gcov_type min_counter; gcov_type min_counter;
}; } gcov_working_set_t;
GCOV_LINKAGE void compute_working_sets (const struct gcov_ctr_summary *summary, GCOV_LINKAGE void compute_working_sets (const struct gcov_ctr_summary *summary,
gcov_working_set_t *gcov_working_sets); gcov_working_set_t *gcov_working_sets);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment