X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gprof%2Fcg_print.c;h=1722adfe22132d6652f8fdd9ef555b4090538f7b;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=456e510c773fb58d482040f9ab2526e2e4b0b51c;hpb=4b95cf5c0c75d6efc1b2f96af72317aecca079f1;p=deliverable%2Fbinutils-gdb.git diff --git a/gprof/cg_print.c b/gprof/cg_print.c index 456e510c77..1722adfe22 100644 --- a/gprof/cg_print.c +++ b/gprof/cg_print.c @@ -1,6 +1,6 @@ /* cg_print.c - Print routines for displaying call graphs. - Copyright (C) 2000-2014 Free Software Foundation, Inc. + Copyright (C) 2000-2020 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -61,7 +61,7 @@ double print_time = 0.0; static void -print_header () +print_header (void) { if (first_output) first_output = FALSE; @@ -561,7 +561,7 @@ cmp_name (const PTR left, const PTR right) void -cg_print_index () +cg_print_index (void) { unsigned int sym_index; unsigned int nnames, todo, i, j; @@ -847,7 +847,7 @@ cg_print_function_ordering (void) tmp_arcs_count += arcs[arc_index]->count; /* Count how many times each parent and child are used up - to our threshhold of arcs (90%). */ + to our threshold of arcs (90%). */ if ((double)tmp_arcs_count / (double)total_arcs > 0.90) break; @@ -984,13 +984,9 @@ cg_print_function_ordering (void) #define MOST 0.99 static void -order_and_dump_functions_by_arcs (the_arcs, arc_count, all, - unplaced_arcs, unplaced_arc_count) - Arc **the_arcs; - unsigned long arc_count; - int all; - Arc **unplaced_arcs; - unsigned long *unplaced_arc_count; +order_and_dump_functions_by_arcs (Arc **the_arcs, unsigned long arc_count, + int all, Arc **unplaced_arcs, + unsigned long *unplaced_arc_count) { #ifdef __GNUC__ unsigned long long tmp_arcs, total_arcs;