aboutsummaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-04-23 17:13:31 +0000
committerBen Elliston <bje@au.ibm.com>2005-04-23 17:13:31 +0000
commit9e972ca0eda7909625dc1e3a8f29a3958f2c94c3 (patch)
tree6aff06029254235e890fba4bb059f33b111e4aec /gprof
parent02a71ae8069b06a76c10995cc07b883f08844287 (diff)
downloadgdb-9e972ca0eda7909625dc1e3a8f29a3958f2c94c3.zip
gdb-9e972ca0eda7909625dc1e3a8f29a3958f2c94c3.tar.gz
gdb-9e972ca0eda7909625dc1e3a8f29a3958f2c94c3.tar.bz2
* corefile.c (core_num_syms): Make static.
(core_syms): Likewise. (min_insn_size): Likewise. * gprof.c (abfd): Remove unused variable. * hist.c (hist_dimension): Make static. (hist_dimension_abbrev): Likewise. * sym_ids.c (id_list): Likewise. (table_name): Likewise.
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog11
-rw-r--r--gprof/corefile.c6
-rw-r--r--gprof/gprof.c2
-rw-r--r--gprof/hist.c4
-rw-r--r--gprof/sym_ids.c4
5 files changed, 18 insertions, 9 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index a3c5dbc..fe027f8 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,14 @@
+2005-04-24 Ben Elliston <bje@au.ibm.com>
+
+ * corefile.c (core_num_syms): Make static.
+ (core_syms): Likewise.
+ (min_insn_size): Likewise.
+ * gprof.c (abfd): Remove unused variable.
+ * hist.c (hist_dimension): Make static.
+ (hist_dimension_abbrev): Likewise.
+ * sym_ids.c (id_list): Likewise.
+ (table_name): Likewise.
+
2005-04-14 Alan Modra <amodra@bigpond.net.au>
* corefile.c (core_init): Call bfd_get_synthetic_symtab.
diff --git a/gprof/corefile.c b/gprof/corefile.c
index c06f7d4..e91ab1e 100644
--- a/gprof/corefile.c
+++ b/gprof/corefile.c
@@ -28,12 +28,12 @@
#include "corefile.h"
bfd *core_bfd;
-int core_num_syms;
-asymbol **core_syms;
+static int core_num_syms;
+static asymbol **core_syms;
asection *core_text_sect;
PTR core_text_space;
-int min_insn_size;
+static int min_insn_size;
int offset_to_code;
/* For mapping symbols to specific .o files during file ordering. */
diff --git a/gprof/gprof.c b/gprof/gprof.c
index dbb8cca..2814309 100644
--- a/gprof/gprof.c
+++ b/gprof/gprof.c
@@ -77,8 +77,6 @@ char copyright[] =
static char *gmon_name = GMONNAME; /* profile filename */
-bfd *abfd;
-
/*
* Functions that get excluded by default:
*/
diff --git a/gprof/hist.c b/gprof/hist.c
index a3f0329..f97498e 100644
--- a/gprof/hist.c
+++ b/gprof/hist.c
@@ -48,8 +48,8 @@ bfd_vma lowpc, highpc; /* Same, but expressed in UNITs. */
unsigned int hist_num_bins = 0; /* Number of histogram samples. */
int *hist_sample = 0; /* Histogram samples (shorts in the file!). */
double hist_scale;
-char hist_dimension[16] = "seconds";
-char hist_dimension_abbrev = 's';
+static char hist_dimension[16] = "seconds";
+static char hist_dimension_abbrev = 's';
static double accum_time; /* Accumulated time so far for print_line(). */
static double total_time; /* Total time for all routines. */
diff --git a/gprof/sym_ids.c b/gprof/sym_ids.c
index 72da918..32f9322 100644
--- a/gprof/sym_ids.c
+++ b/gprof/sym_ids.c
@@ -28,7 +28,7 @@
#include "cg_arcs.h"
#include "sym_ids.h"
-struct sym_id
+static struct sym_id
{
struct sym_id *next;
char *spec; /* Parsing modifies this. */
@@ -59,7 +59,7 @@ static void extend_match
Sym_Table syms[NUM_TABLES];
#ifdef DEBUG
-const char *table_name[] =
+static const char *table_name[] =
{
"INCL_GRAPH", "EXCL_GRAPH",
"INCL_ARCS", "EXCL_ARCS",