summaryrefslogtreecommitdiffstats
path: root/gcc/gcov-dump.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-06 14:51:48 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-06 14:51:48 +0000
commit42fa384f7f1d12e02987b17d2650e2136b38fa00 (patch)
treea94f984308aa02ce879de7afc0672f6a1d92a100 /gcc/gcov-dump.c
parentb80f1d67f4ed212faa54034bed77dec05afdad97 (diff)
downloadppe42-gcc-42fa384f7f1d12e02987b17d2650e2136b38fa00.tar.gz
ppe42-gcc-42fa384f7f1d12e02987b17d2650e2136b38fa00.zip
* 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
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 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 ();
OpenPOWER on IntegriCloud