* gcov-io.h: Add a local time stamp.
commit42fa384f7f1d12e02987b17d2650e2136b38fa00
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Jul 2003 14:51:48 +0000 (6 14:51 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Jul 2003 14:51:48 +0000 (6 14:51 +0000)
treea94f984308aa02ce879de7afc0672f6a1d92a100
parentb80f1d67f4ed212faa54034bed77dec05afdad97
* 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/ChangeLog
gcc/coverage.c
gcc/gcov-dump.c
gcc/gcov-io.h
gcc/gcov.c
gcc/libgcov.c