diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-04 18:27:19 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-04 18:27:19 +0000 |
commit | 6c56d3c9153627a6bbf0cdc045c3bd411315f540 (patch) | |
tree | 48d2612cbd2d4812c63435c60a1a9865090aa906 /gcc/gcov-io.h | |
parent | 3598538cbd964f7bbdddf36284d0c696fa469ca9 (diff) | |
download | gcc-6c56d3c9153627a6bbf0cdc045c3bd411315f540.tar.gz |
* gcov-io.h (struct gcov_info): Replace trailing array with
pointer to array.
* profile.c (branch_prob): Only call renamed
coverage_begin_function once.
* coverage.h (coverage_begin_output): Rename to ...
(coverage_begin_function): ... here.
* coverage.c (struct function_list): Rename to ...
(struct coverage_data): ... this. Update all uses.
(gcov_info_var, gcov_fn_info_type, gcov_fn_info_ptr_type): New
globals.
(bbg_file_opened, bbg_function_announced): Remove.
(get_coverage_counts): Adjust message.
(coverage_begin_ouput): Rename to ...
(coverage_begin_function): ... here. Move file opening to
coverage_init. Adjust for being called only once.
(coverage_end_function): Remove bbg file and inhibit further
output here on error.
(build_info_type): Adjust for change to pointer to array.
(build_info): Receive array of function pointers and adjust.
(create_coverage): Break into ...
(coverage_obj_init, coverage_obj_fn, coverage_obj_finish):
... these, and adjust.
(coverage_init): Open the notes file here. Tidy.
(coverage_finish): Call coverage_obj_init etc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181994 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcov-io.h')
-rw-r--r-- | gcc/gcov-io.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcov-io.h b/gcc/gcov-io.h index 3ff9fcd22f0..b80f7069620 100644 --- a/gcc/gcov-io.h +++ b/gcc/gcov-io.h @@ -448,8 +448,8 @@ struct gcov_info unused) */ unsigned n_functions; /* number of functions */ - const struct gcov_fn_info *functions[0]; /* pointers to function - information */ + const struct gcov_fn_info *const *functions; /* pointer to pointers + to function information */ }; /* Register a new object file module. */ |