+2018-08-02 Martin Liska <mliska@suse.cz>
+
+ PR gcov-profile/86817
+ * gcov.c (process_all_functions): New function.
+ (main): Call it.
+ (process_file): Move functions processing to
+ process_all_functions.
+
2018-08-02 Thomas Preud'homme <thomas.preudhomme@linaro.org>
PR target/85434
static void print_usage (int) ATTRIBUTE_NORETURN;
static void print_version (void) ATTRIBUTE_NORETURN;
static void process_file (const char *);
+static void process_all_functions (void);
static void generate_results (const char *);
static void create_file_names (const char *);
static char *canonicalize_name (const char *);
if (flag_intermediate_format || argno == argc - 1)
{
+ process_all_functions ();
generate_results (argv[argno]);
release_structures ();
}
{
create_file_names (file_name);
read_graph_file ();
- if (functions.empty ())
- return;
-
read_count_file ();
+}
+/* Process all functions in all files. */
+
+static void
+process_all_functions (void)
+{
hash_map<function_start_pair_hash, function_info *> fn_map;
/* Identify group functions. */
if (fn->is_group)
fn->lines.resize (fn->end_line - fn->start_line + 1);
-
solve_flow_graph (fn);
if (fn->has_catch)
find_exception_blocks (fn);