diff options
author | Teresa Johnson <tejohnson@google.com> | 2014-05-22 14:06:08 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@gcc.gnu.org> | 2014-05-22 14:06:08 +0000 |
commit | e3f0315f883341299b198872bf1289413e7515e7 (patch) | |
tree | c6ba216b23b093c7937d812160fcf3dfafedbe7a /libgcc/libgcov-driver.c | |
parent | d8000f037857a297c0cd900794fd53477f65e765 (diff) | |
download | gcc-e3f0315f883341299b198872bf1289413e7515e7.zip gcc-e3f0315f883341299b198872bf1289413e7515e7.tar.gz gcc-e3f0315f883341299b198872bf1289413e7515e7.tar.bz2 |
gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
2014-05-22 Teresa Johnson <tejohnson@google.com>
* gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
(gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
(gcov_rewrite): Use gcov_nonruntime_assert.
(gcov_open): Ditto.
(gcov_write_words): Ditto.
(gcov_write_length): Ditto.
(gcov_read_words): Use gcov_nonruntime_assert, and remove
gcc_assert from IN_LIBGCOV code.
(gcov_read_summary): Use gcov_error to flag profile corruption.
(gcov_sync): Use gcov_nonruntime_assert.
(gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
(gcov_histo_index): Use gcov_nonruntime_assert.
(static void gcov_histogram_merge): Ditto.
(compute_working_sets): Ditto.
* gcov-io.h (gcov_nonruntime_assert): Define.
(gcov_error): Define for !IN_LIBGCOV
* libgcov-driver.c (gcov_error): Move declaration before gcov-io.c
include.
From-SVN: r210805
Diffstat (limited to 'libgcc/libgcov-driver.c')
-rw-r--r-- | libgcc/libgcov-driver.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libgcc/libgcov-driver.c b/libgcc/libgcov-driver.c index f8abdb1..ef0505e 100644 --- a/libgcc/libgcov-driver.c +++ b/libgcc/libgcov-driver.c @@ -42,6 +42,10 @@ void __gcov_init (struct gcov_info *p __attribute__ ((unused))) {} #endif #ifdef L_gcov + +/* A utility function for outputing errors. */ +static int gcov_error (const char *, ...); + #include "gcov-io.c" /* The following functions can be called from outside of this file. */ @@ -108,9 +112,6 @@ reset_gcov_dump_complete (void) gcov_dump_complete = 0; } -/* A utility function for outputing errors. */ -static int gcov_error (const char *, ...); - static struct gcov_fn_buffer * free_fn_data (const struct gcov_info *gi_ptr, struct gcov_fn_buffer *buffer, unsigned limit) |