2014-01-08 Rong Xu <xur@google.com>
commit677451260eabdf47945c73753134053b8f417755
authortejohnson <tejohnson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Jan 2014 16:37:08 +0000 (8 16:37 +0000)
committertejohnson <tejohnson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Jan 2014 16:37:08 +0000 (8 16:37 +0000)
treefffc9c28e27be439d23aa1e73163256e25cf97f7
parent6db33a3dc3c8a1f5570d37eebac1ebe2ea260a66
2014-01-08  Rong Xu  <xur@google.com>

* gcc/gcov-io.c (gcov_var): Move from gcov-io.h.
(gcov_position): Ditto.
(gcov_is_error): Ditto.
(gcov_rewrite): Ditto.
* gcc/gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
only part to libgcc/libgcov.h.
* libgcc/libgcov-driver.c: Use libgcov.h.
(buffer_fn_data): Use xmalloc instead of malloc.
(gcov_exit_merge_gcda): Ditto.
* libgcc/libgcov-driver-system.c (allocate_filename_struct): Ditto.
* libgcc/libgcov.h: New common header files for libgcov-*.h.
* libgcc/libgcov-interface.c: Use libgcov.h
* libgcc/libgcov-merge.c: Ditto.
* libgcc/libgcov-profiler.c: Ditto.
* libgcc/Makefile.in: Add dependence to libgcov.h

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206435 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gcov-io.c
gcc/gcov-io.h
libgcc/ChangeLog
libgcc/Makefile.in
libgcc/libgcov-driver-system.c
libgcc/libgcov-driver.c
libgcc/libgcov-interface.c
libgcc/libgcov-merge.c
libgcc/libgcov-profiler.c
libgcc/libgcov.h [new file with mode: 0644]