Message ID | 4f83c4d37f9f908ba98953842f431370096c9583.1510223055.git.mliska@suse.cz |
---|---|
State | New |
Headers | show |
Series | GCOV: infrastructure clean-up | expand |
On 11/09/2017 05:24 AM, marxin wrote: > gcc/ChangeLog: > > 2017-11-09 Martin Liska <mliska@suse.cz> > > * gcov.c (read_graph_file): Store to global vector of functions. > (read_count_file): Iterate the vector. > (process_file): Likewise. > (generate_results): Likewise. > (release_structures): Likewise. ok
diff --git a/gcc/gcov.c b/gcc/gcov.c index 846a2326196..83239639247 100644 --- a/gcc/gcov.c +++ b/gcc/gcov.c @@ -392,10 +392,8 @@ public: unsigned src; /* Source file */ }; -/* Holds a list of function basic block graphs. */ - -static function_t *functions; -static function_t **fn_end = &functions; +/* Vector of all functions. */ +static vector<function_t *> functions; /* Vector of source files. */