diff options
author | Rong Xu <xur@google.com> | 2012-12-27 22:36:27 +0000 |
---|---|---|
committer | Rong Xu <xur@google.com> | 2012-12-27 22:36:27 +0000 |
commit | 8b026bf74f0eb289fe063414767458b2ab77af17 (patch) | |
tree | 749cbaca07e294580dde1d7ec87143faa7bc7248 | |
parent | 7153319e88a2da76725cffe4cfb055b1ee9fe231 (diff) |
2012-12-27 Rong Xu <xur@google.com>
* libgcc/libgcov.c (gcov_write_gcda_file): Kernel FDO
support.
* gcc/gcov-io.h: Ditto.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/google/gcc-4_7@194739 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/gcov-io.h | 1 | ||||
-rw-r--r-- | libgcc/libgcov.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/gcov-io.h b/gcc/gcov-io.h index 6c20bfaa915..d59054aa0e0 100644 --- a/gcc/gcov-io.h +++ b/gcc/gcov-io.h @@ -183,6 +183,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see Todo: using a program to auto-generate the vaules in build time. */ #define BITS_PER_UNIT 8 #define LONG_LONG_TYPE_SIZE 64 +#define MEMMODEL_RELAXED 0 /* There are many gcc_assertions. Set the vaule to 1 if we want a warning message if the assertion fails. */ diff --git a/libgcc/libgcov.c b/libgcc/libgcov.c index 6e28b8e9d25..d00c29385ec 100644 --- a/libgcc/libgcov.c +++ b/libgcc/libgcov.c @@ -924,8 +924,10 @@ struct gcov_summary_buffer struct gcov_summary summary; }; +#ifndef __GCOV_KERNEL__ static struct gcov_summary_buffer *next_sum_buffer, *sum_buffer; static struct gcov_summary_buffer **sum_tail; +#endif /* Merge with existing gcda file in the same directory to avoid excessive growthe of the files. */ @@ -1209,6 +1211,7 @@ gcov_write_gcda_file (struct gcov_info *gi_ptr) /* Generate whole program statistics. */ gcov_write_summary (GCOV_TAG_PROGRAM_SUMMARY, &program); +#ifndef __GCOV_KERNEL__ /* Rewrite all the summaries that were after the summary we merged into. This is necessary as the merged summary may have a different size due to the number of non-zero histogram entries changing after @@ -1221,6 +1224,7 @@ gcov_write_gcda_file (struct gcov_info *gi_ptr) free (sum_buffer); sum_buffer = next_sum_buffer; } +#endif /* Write execution counts for each function. */ for (f_ix = 0; f_ix < gi_ptr->n_functions; f_ix++) |