Break out coverage routines to new file.
* Makefile.in (COVERAGE_H): New variable (C_OBJS): Add coverage.o (coverage.o): New target. (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust dependencies. (GTFILES): Adjust. (gt-coverage.h): New target. (gt-profile.h): Remove. * profile.h: Remove. Move to ... * coverage.h: ... here. New. #include gcov-io.h. * gcov-io.h: Move function definitions to ... * gcov-io.c: ... here. New. * profile.c: Move coverage routines to coverage.c. (instrument_edges, get_exec_counts, branch_prob, init_branch_prob, end_branch_prob): Adjust. * coverage.c: New. Coverage routines from profile.c (coverage_counter_ref, coverage_init, coverage_finish, coverage_end_function, coverage_begin_output, coverage_counter_ref, get_coverage_counts): Define. * gcov-dump.c, gcov.c: #include gcov-io.c. * libgcov.c: Likewise. Adjust. * loop-init.c: Don't #include profile.h * tracer.c, predict.c, sched-ebb.c: Adjust #includes. * rtl.h: Add coverage prototypes. * toplev.c (compile_file): Init coverage, not branch_prob. Always call coverage_finish. (rest_of_compilation): Call coverage_end_function. From-SVN: r65897
Showing
- gcc/ChangeLog 41 additions, 7 deletionsgcc/ChangeLog
- gcc/Makefile.in 27 additions, 22 deletionsgcc/Makefile.in
- gcc/coverage.c 1146 additions, 0 deletionsgcc/coverage.c
- gcc/coverage.h 14 additions, 4 deletionsgcc/coverage.h
- gcc/gcov-dump.c 1 addition, 0 deletionsgcc/gcov-dump.c
- gcc/gcov-io.c 431 additions, 0 deletionsgcc/gcov-io.c
- gcc/gcov-io.h 35 additions, 434 deletionsgcc/gcov-io.h
- gcc/libgcov.c 2 additions, 1 deletiongcc/libgcov.c
- gcc/loop-init.c 0 additions, 1 deletiongcc/loop-init.c
- gcc/profile.c 90 additions, 1086 deletionsgcc/profile.c
- gcc/rtl.h 6 additions, 2 deletionsgcc/rtl.h
- gcc/toplev.c 7 additions, 6 deletionsgcc/toplev.c
- gcc/tracer.c 2 additions, 2 deletionsgcc/tracer.c
Loading
Please register or sign in to comment