aboutsummaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog11
-rw-r--r--gprof/basic_blocks.c4
-rw-r--r--gprof/cg_arcs.c4
-rw-r--r--gprof/cg_print.c14
-rw-r--r--gprof/gen-c-prog.awk3
-rw-r--r--gprof/gmon_io.c4
-rw-r--r--gprof/hertz.c2
-rw-r--r--gprof/hist.c6
-rw-r--r--gprof/sym_ids.c2
9 files changed, 28 insertions, 22 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index af43cd1..33766bb 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,14 @@
+2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
+
+ * basic_blocks.c: Update old style function definitions.
+ * cg_arcs.c: Likewise.
+ * cg_print.c: Likewise.
+ * gen-c-prog.awk: Likewise.
+ * gmon_io.c: Likewise.
+ * hertz.c: Likewise.
+ * hist.c: Likewise.
+ * sym_ids.c: Likewise.
+
2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.in: Regenerated with automake 1.11.6.
diff --git a/gprof/basic_blocks.c b/gprof/basic_blocks.c
index dac093a..a588b2e 100644
--- a/gprof/basic_blocks.c
+++ b/gprof/basic_blocks.c
@@ -248,7 +248,7 @@ bb_write_blocks (FILE *ofp, const char *filename)
<filename>:<line-number>: (<function-name>:<bb-addr): <ncalls> */
void
-print_exec_counts ()
+print_exec_counts (void)
{
Sym **sorted_bbs, *sym;
unsigned int i, j, len;
@@ -459,7 +459,7 @@ annotate_with_count (char *buf, unsigned int width, int line_num, PTR arg)
regarding that source file are printed. */
void
-print_annotated_source ()
+print_annotated_source (void)
{
Sym *sym, *line_stats, *new_line;
Source_File *sf;
diff --git a/gprof/cg_arcs.c b/gprof/cg_arcs.c
index 1fa619d..c51137d 100644
--- a/gprof/cg_arcs.c
+++ b/gprof/cg_arcs.c
@@ -245,7 +245,7 @@ propagate_time (Sym *parent)
* its members.
*/
static void
-cycle_time ()
+cycle_time (void)
{
Sym *member, *cyc;
@@ -269,7 +269,7 @@ cycle_time ()
static void
-cycle_link ()
+cycle_link (void)
{
Sym *sym, *cyc, *member;
Arc *arc;
diff --git a/gprof/cg_print.c b/gprof/cg_print.c
index 30f445f..77a0c4c 100644
--- a/gprof/cg_print.c
+++ b/gprof/cg_print.c
@@ -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;
@@ -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;
diff --git a/gprof/gen-c-prog.awk b/gprof/gen-c-prog.awk
index d916940..c66cf45 100644
--- a/gprof/gen-c-prog.awk
+++ b/gprof/gen-c-prog.awk
@@ -15,8 +15,7 @@ NR == 1 {
print ""
print "void ", FUNCTION, "(FILE *);"
print "void";
- printf "%s (file)\n", FUNCTION
- print " FILE *file;";
+ printf "%s (FILE *file)\n", FUNCTION
print "{";
}
printf " fputs (\"";
diff --git a/gprof/gmon_io.c b/gprof/gmon_io.c
index 71a12aa..c827ae6 100644
--- a/gprof/gmon_io.c
+++ b/gprof/gmon_io.c
@@ -61,7 +61,7 @@ int gmon_input = 0;
int gmon_file_version = 0; /* 0 == old (non-versioned) file format. */
static enum gmon_ptr_size
-gmon_get_ptr_size ()
+gmon_get_ptr_size (void)
{
int size;
@@ -87,7 +87,7 @@ gmon_get_ptr_size ()
}
static enum gmon_ptr_signedness
-gmon_get_ptr_signedness ()
+gmon_get_ptr_signedness (void)
{
int sext;
diff --git a/gprof/hertz.c b/gprof/hertz.c
index 6fa1db4..dc052d5 100644
--- a/gprof/hertz.c
+++ b/gprof/hertz.c
@@ -31,7 +31,7 @@
int
-hertz ()
+hertz (void)
{
#ifdef HERTZ
return HERTZ;
diff --git a/gprof/hist.c b/gprof/hist.c
index d81ca26..0764129 100644
--- a/gprof/hist.c
+++ b/gprof/hist.c
@@ -289,7 +289,7 @@ hist_write_hist (FILE * ofp, const char *filename)
next bin. */
static void
-scale_and_align_entries ()
+scale_and_align_entries (void)
{
Sym *sym;
bfd_vma bin_of_entry;
@@ -445,7 +445,7 @@ hist_assign_samples_1 (histogram *r)
/* Calls 'hist_assign_sampes_1' for all histogram records read so far. */
void
-hist_assign_samples ()
+hist_assign_samples (void)
{
unsigned i;
@@ -562,7 +562,7 @@ cmp_time (const PTR lp, const PTR rp)
/* Print the flat histogram profile. */
void
-hist_print ()
+hist_print (void)
{
Sym **time_sorted_syms, *top_dog, *sym;
unsigned int sym_index;
diff --git a/gprof/sym_ids.c b/gprof/sym_ids.c
index 9a93022..d942075 100644
--- a/gprof/sym_ids.c
+++ b/gprof/sym_ids.c
@@ -273,7 +273,7 @@ extend_match (struct match *m, Sym *sym, Sym_Table *tab, bfd_boolean second_pass
requests---you get what you ask for! */
void
-sym_id_parse ()
+sym_id_parse (void)
{
Sym *sym, *left, *right;
struct sym_id *id;