aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov-dump.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2003-07-06 14:51:48 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2003-07-06 14:51:48 +0000
commitdd486eb27ce3fc75e02311d3e36d9e10a9f56eee (patch)
treea94f984308aa02ce879de7afc0672f6a1d92a100 /gcc/gcov-dump.c
parentc07e547752171cafffdbae0c46f90251d266141b (diff)
downloadgcc-dd486eb27ce3fc75e02311d3e36d9e10a9f56eee.zip
gcc-dd486eb27ce3fc75e02311d3e36d9e10a9f56eee.tar.gz
gcc-dd486eb27ce3fc75e02311d3e36d9e10a9f56eee.tar.bz2
gcov-io.h: Add a local time stamp.
* 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. From-SVN: r69006
Diffstat (limited to 'gcc/gcov-dump.c')
-rw-r--r--gcc/gcov-dump.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/gcov-dump.c b/gcc/gcov-dump.c
index 86834e2..67a34dc 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 ();