-
- Downloads
libgcov.c (struct gcov_fn_buffer): New struct.
libgcc/ * libgcov.c (struct gcov_fn_buffer): New struct. (buffer_fn_data): New helper. (gcov_exit): Rework for new gcov data structures. gcc/ * gcov.c (object_summary): Replace with ... (object_runs): ... this. (process_file): Remove functions with no data. (generate_results): Ignore files with no lines. (release_function): New helper, broken out of ... (release_structures): ... here. Use it. (read_count_file): Adjust for new data file format. (output_lines): Use object_runs. * gcov-io.h (GCOV_TAG_OBJECT_SUMMARY): Obsolete. (struct gcov_ctr_info): Move definition. (struct gcov_fn_info): Add key field, use gcov_ctr_info for trailing array. (struct gcov_info): Add merge function array, remove mask and counts. Trailing array is array of pointers to function info. * coverage.c (struct function_list): Replace counter numbers with counter arrays. Add fndecl field. GTYify. (counts_entry): Remove chain workspace. (functions_head): GTYify. (prg_n_ctrs): Remove. (fn_v_ctrs): New. (tree_ctr_tables): Remove. (read_counts_file): Cope with blank entries and expect program summaries before functions. Don't warn on missing entries. (coverage_counter_alloc): Allocate individual function arrays. (tree_coverage_counter_ref, tree_coverage_counter_addr): Adjust for individual function arrays. (coverage_end_function): GTYify function list object. Finalize function's counter arrays. (build_var): New. Create a counter-related variable with appropriate linkage. (build_fn_info_type): Adjust for new runtime structure. (build_fn_info_value): Rename to ... (build_fn_info): ... here. Build new format data. (build_ctr_info_type, build_ctr_info_value): Remove. (build_info_type): New. Build new format data structure. (build_info): Adjust for new format data. (create_coverage): Likewise. * gcov-dump.c (tag_function): Recognize placeholders. gcc/testsuite/ * gcc.dg/profile-dir-1.c: Adjust final scan. * gcc.dg/profile-dir-2.c: Adjust final scan. * gcc.dg/profile-dir-3.c: Adjust final scan. * gcc.misc-tests/gcov.exp: Adjust regexp. * gcc.misc-tests/gcov-12.c: New. * gcc.misc-tests/gcov-13.c: New. * gcc.misc-tests/gcovpart-13b.c: New. * gcc.misc-tests/gcov-14.c: New. From-SVN: r181105
Showing
- gcc/ChangeLog 41 additions, 0 deletionsgcc/ChangeLog
- gcc/coverage.c 342 additions, 307 deletionsgcc/coverage.c
- gcc/gcov-dump.c 17 additions, 12 deletionsgcc/gcov-dump.c
- gcc/gcov-io.h 32 additions, 33 deletionsgcc/gcov-io.h
- gcc/gcov.c 76 additions, 50 deletionsgcc/gcov.c
- gcc/testsuite/ChangeLog 11 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/profile-dir-1.c 3 additions, 3 deletionsgcc/testsuite/gcc.dg/profile-dir-1.c
- gcc/testsuite/gcc.dg/profile-dir-2.c 3 additions, 3 deletionsgcc/testsuite/gcc.dg/profile-dir-2.c
- gcc/testsuite/gcc.dg/profile-dir-3.c 3 additions, 3 deletionsgcc/testsuite/gcc.dg/profile-dir-3.c
- gcc/testsuite/gcc.misc-tests/gcov-12.c 17 additions, 0 deletionsgcc/testsuite/gcc.misc-tests/gcov-12.c
- gcc/testsuite/gcc.misc-tests/gcov-13.c 18 additions, 0 deletionsgcc/testsuite/gcc.misc-tests/gcov-13.c
- gcc/testsuite/gcc.misc-tests/gcov-14.c 24 additions, 0 deletionsgcc/testsuite/gcc.misc-tests/gcov-14.c
- gcc/testsuite/gcc.misc-tests/gcov.exp 1 addition, 1 deletiongcc/testsuite/gcc.misc-tests/gcov.exp
- gcc/testsuite/gcc.misc-tests/gcovpart-13b.c 4 additions, 0 deletionsgcc/testsuite/gcc.misc-tests/gcovpart-13b.c
- libgcc/ChangeLog 6 additions, 0 deletionslibgcc/ChangeLog
- libgcc/libgcov.c 252 additions, 185 deletionslibgcc/libgcov.c
Loading
Please register or sign in to comment