diff options
author | Teresa Johnson <tejohnson@google.com> | 2012-11-30 16:47:04 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@gcc.gnu.org> | 2012-11-30 16:47:04 +0000 |
commit | 2730ada7a02e99f9a3088b74b1ff588255c40154 (patch) | |
tree | 2f91f256a35f639f54c8da185d2974983b74c68a /gcc/gcov-io.h | |
parent | c1ed6a0172fa629c31f23f99d76b3fa0109bb66b (diff) | |
download | gcc-2730ada7a02e99f9a3088b74b1ff588255c40154.zip gcc-2730ada7a02e99f9a3088b74b1ff588255c40154.tar.gz gcc-2730ada7a02e99f9a3088b74b1ff588255c40154.tar.bz2 |
Revised patch to ensure that histograms from the profile summary are streamed...
Revised patch to ensure that histograms from the profile summary are streamed
through the LTO files so that the working set can be computed for use in
downstream optimizations.
2012-11-30 Teresa Johnson <tejohnson@google.com>
* lto-cgraph.c (output_profile_summary): Stream out sum_all
and histogram.
(input_profile_summary): Stream in sum_all and histogram.
(merge_profile_summaries): Merge sum_all and histogram, and
change to use RDIV.
(input_symtab): Call compute_working_sets after merging
summaries.
* gcov-io.c (gcov_histo_index): Make extern for compiler.
* gcov-io.h (gcov_histo_index): Ditto.
* profile.c (compute_working_sets): Remove static keyword.
* profile.h (compute_working_sets): Ditto.
* Makefile.in (lto-cgraph.o): Depend on profile.h.
From-SVN: r193999
Diffstat (limited to 'gcc/gcov-io.h')
-rw-r--r-- | gcc/gcov-io.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/gcov-io.h b/gcc/gcov-io.h index e1532d7..1f01aac 100644 --- a/gcc/gcov-io.h +++ b/gcc/gcov-io.h @@ -612,6 +612,7 @@ GCOV_LINKAGE void gcov_write_unsigned (gcov_unsigned_t) ATTRIBUTE_HIDDEN; #if !IN_GCOV && !IN_LIBGCOV /* Available only in compiler */ +GCOV_LINKAGE unsigned gcov_histo_index (gcov_type value); GCOV_LINKAGE void gcov_write_string (const char *); GCOV_LINKAGE gcov_position_t gcov_write_tag (gcov_unsigned_t); GCOV_LINKAGE void gcov_write_length (gcov_position_t /*position*/); |