From 42fa384f7f1d12e02987b17d2650e2136b38fa00 Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 6 Jul 2003 14:51:48 +0000 Subject: * gcov-io.h: Add a local time stamp. (struct gcov_info): Add stamp field. (gcov_truncate): New. * coverage.c (read_counts_file): Skip the stamp. (coverage_begin_output): Write the stamp. (build_gcov_info): Declare and init the stamp. (coverage_finish): Only unlink data file, if stamp is zero. * gcov-dump.c (dump_file): Dump the stamp. * gcov.c (bbg_stamp): New. (release_structures): Clear bbg_stamp. (read_graph_file): Read stamp. (read_count_file): Check stamp. * libgcov.c (gcov_exit): Check stamp and truncate if needed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69006 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/gcov-dump.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/gcov-dump.c') diff --git a/gcc/gcov-dump.c b/gcc/gcov-dump.c index 86834e25b7b..67a34dcfff7 100644 --- a/gcc/gcov-dump.c +++ b/gcc/gcov-dump.c @@ -184,6 +184,13 @@ dump_file (const char *filename) printf ("%s:warning:current version is `%.4s'\n", filename, e); } + /* stamp */ + { + unsigned stamp = gcov_read_unsigned (); + + printf ("%s:stamp %lu\n", filename, (unsigned long)stamp); + } + while (1) { gcov_position_t base, position = gcov_position (); -- cgit v1.2.1