summaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-09-25 09:57:50 +0000
committerNick Clifton <nickc@redhat.com>2009-09-25 09:57:50 +0000
commit99a715bd2b83787504600caf617c035e64666e04 (patch)
tree3d1f5b2aba808fa2e07fead9f27600df0c71f71e /gprof
parent0565eed3fd2e320adfbfa141baaa86fac9119835 (diff)
downloadbinutils-redhat-99a715bd2b83787504600caf617c035e64666e04.tar.gz
PR 10656
* readelf.c: Remove duplicate declaration of variable do_wide. * dwarf.h: Add export of do_wide. * hist.h: Move declaration of histograms and num_histograms variables from here to... * hist.c: ...here.
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog7
-rw-r--r--gprof/hist.c4
-rw-r--r--gprof/hist.h7
3 files changed, 14 insertions, 4 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index 8908440ca0..1f0b8cb71c 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,10 @@
+2009-09-25 Dimitry Gorbachev <d.g.gorbachev@gmail.com>
+
+ PR 10656
+ * hist.h: Move declaration of histograms and num_histograms
+ variables from here to...
+ * hist.c: ...here.
+
2009-09-23 Nick Clifton <nickc@redhat.com>
* po/vi.po: Updated Vietnamese translation.
diff --git a/gprof/hist.c b/gprof/hist.c
index a790fd48cc..6f4ead83a6 100644
--- a/gprof/hist.c
+++ b/gprof/hist.c
@@ -1,6 +1,6 @@
/* hist.c - Histogram related operations.
- Copyright 1999, 2000, 2001, 2002, 2004, 2005, 2007
+ Copyright 1999, 2000, 2001, 2002, 2004, 2005, 2007, 2009
Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -48,6 +48,8 @@ extern void flat_blurb (FILE * fp);
static histogram *find_histogram (bfd_vma lowpc, bfd_vma highpc);
static histogram *find_histogram_for_pc (bfd_vma pc);
+histogram * histograms;
+unsigned num_histograms;
double hist_scale;
static char hist_dimension[16] = "seconds";
static char hist_dimension_abbrev = 's';
diff --git a/gprof/hist.h b/gprof/hist.h
index 3facb5ad22..0bd5320c67 100644
--- a/gprof/hist.h
+++ b/gprof/hist.h
@@ -1,6 +1,7 @@
/* hist.h
- Copyright 2000, 2001, 2002, 2004, 2005, 2007 Free Software Foundation, Inc.
+ Copyright 2000, 2001, 2002, 2004, 2005, 2007, 2009
+ Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -30,8 +31,8 @@ typedef struct histogram
int *sample; /* Histogram samples (shorts in the file!). */
} histogram;
-histogram *histograms;
-unsigned num_histograms;
+extern histogram * histograms;
+extern unsigned num_histograms;
/* Scale factor converting samples to pc values:
each sample covers HIST_SCALE bytes. */