summaryrefslogtreecommitdiff
path: root/gcc/gcov-dump.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-24 09:46:17 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-24 09:46:17 +0000
commit3f2c2dd8bcd38bd0773b6136df705b314cb244de (patch)
tree1dff424ee79b2287699dd3e721d653f4dbfa039f /gcc/gcov-dump.c
parentfd68dbde67e4a8c062be5ec69549bdef45853def (diff)
downloadgcc-3f2c2dd8bcd38bd0773b6136df705b314cb244de.tar.gz
New GCOV_TAG_FUNCTION layout
* coverage.c (struct function_list): Replace name with ident. (struct counts_entry): Likewise. (fn_ident): New. (htab_counts_entry_hash, htab_counts_entry_eq, htab_counts_entry_del): Adjust. (reads_count_file, get_coverage_counts, coverage_begin_output, coverage_end_function): Adjust. (build_fn_info_type, build_fn_info_value): Likewise. * gcov-dump.c (tag_function): Adjust. * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV. * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV. * gcov.c (struct function_info): Add ident. (read_graph_file, read_count_file): Adjust. * libgcov.c (gcov_exit): Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66035 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcov-dump.c')
-rw-r--r--gcc/gcov-dump.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/gcov-dump.c b/gcc/gcov-dump.c
index 5c0dd3a3676..818c6efed11 100644
--- a/gcc/gcov-dump.c
+++ b/gcc/gcov-dump.c
@@ -254,15 +254,17 @@ tag_function (filename, tag, length)
unsigned tag ATTRIBUTE_UNUSED;
unsigned length ATTRIBUTE_UNUSED;
{
- const char *name;
unsigned long pos = gcov_position ();
- name = gcov_read_string ();
- printf (" `%s'", name ? name : "NULL");
- printf (" checksum=0x%08x", gcov_read_unsigned ());
+ printf (" ident=%u", gcov_read_unsigned ());
+ printf (", checksum=0x%08x", gcov_read_unsigned ());
if (gcov_position () - pos < length)
{
+ const char *name;
+
+ name = gcov_read_string ();
+ printf (", `%s'", name ? name : "NULL");
name = gcov_read_string ();
printf (" %s", name ? name : "NULL");
printf (":%u", gcov_read_unsigned ());