summaryrefslogtreecommitdiff
path: root/gcc/gcov-io.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-io.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-io.c')
-rw-r--r--gcc/gcov-io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/gcov-io.c b/gcc/gcov-io.c
index b5952174517..2f2a87fdb21 100644
--- a/gcc/gcov-io.c
+++ b/gcc/gcov-io.c
@@ -222,6 +222,7 @@ gcov_write_counter (gcov_type value)
}
#endif /* IN_LIBGCOV */
+#if !IN_LIBGCOV
/* Write STRING to coverage file. Sets error flag on file
error, overflow flag on overflow */
@@ -254,6 +255,7 @@ gcov_write_string (const char *string)
memcpy (buffer + 4 + length, &pad, rem);
}
}
+#endif
/* Write a tag TAG and reserve space for the record length. Return a
value to be used for gcov_write_length. */
@@ -396,6 +398,7 @@ gcov_read_counter ()
buffer, or NULL on empty string. You must copy the string before
calling another gcov function. */
+#if !IN_LIBGCOV
GCOV_LINKAGE const char *
gcov_read_string ()
{
@@ -407,6 +410,7 @@ gcov_read_string ()
length += 4 - (length & 3);
return (const char *) gcov_read_bytes (length);
}
+#endif
GCOV_LINKAGE void
gcov_read_summary (struct gcov_summary *summary)