Makefile.in (loop-init.o): Do not depend on gcov-io.h, gcov-iov.h.
authorNathan Sidwell <nathan@codesourcery.com>
Fri, 11 Apr 2003 10:38:57 +0000 (10:38 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 11 Apr 2003 10:38:57 +0000 (10:38 +0000)
commit94de45d9fe364fefd0cea5352c486306e68d704b
tree7661c471f34c22626015acd1801aa486d1a6f9c4
parent7a615b25793c2201a7b92c8fd3425567b96b22ce
Makefile.in (loop-init.o): Do not depend on gcov-io.h, gcov-iov.h.

* Makefile.in (loop-init.o): Do not depend on gcov-io.h,
gcov-iov.h.

Simplify interface to gcov reading and writing.
* gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
gcov_alloc, gcov_modified, gcov_errored): Move into ...
(struct gcov_var gcov_var): ... this static structure.
(gcov_write_unsigned, gcov_write_counter, gcov_write_string):
Return void.
(gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
read object.
(gcov_read_bytes, gcov_write_bytes): Set error flag on error.
(gcov_reserve_length): Remove.
(gcov_write_tag): New.
(gcov_write_length): Adjust.
(gcov_read_summary, gcov_write_summary): Adjust.
(gcov_eof, gcov_ok): Rename to ...
(gcov_is_eof, gcov_is_error): ... here. Return error code.
(gcov_save_position, gcov_resync): Rename to ...
(gcov_position, gcov_seek): ... here.
(gcov_skip, gcov_skip_string): Remove.
(gcov_error): Remove.
(gcov_open, gcov_close): Adjust.
* gcov.c (find_source): Take const char *, copy it on allocation.
(read_graph_file): Adjust.
(read_count_file): Adjust.
* libgcov.c (gcov_exit): Adjust.
* gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
tag_arc_counts, tag_summary): Return void. Adjust.
(struct tag_format): Adjust proc member.
(dump_file): Adjust gcov calls.

From-SVN: r65464
gcc/ChangeLog
gcc/Makefile.in
gcc/gcov-dump.c
gcc/gcov-io.h
gcc/gcov.c
gcc/libgcov.c
gcc/profile.c