gcov-io.h: Add a local time stamp.
authorNathan Sidwell <nathan@codesourcery.com>
Sun, 6 Jul 2003 14:51:48 +0000 (14:51 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Sun, 6 Jul 2003 14:51:48 +0000 (14:51 +0000)
commitdd486eb27ce3fc75e02311d3e36d9e10a9f56eee
treea94f984308aa02ce879de7afc0672f6a1d92a100
parentc07e547752171cafffdbae0c46f90251d266141b
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
gcc/ChangeLog
gcc/coverage.c
gcc/gcov-dump.c
gcc/gcov-io.h
gcc/gcov.c
gcc/libgcov.c