aboutsummaryrefslogtreecommitdiff
path: root/gprof/hist.c
diff options
context:
space:
mode:
Diffstat (limited to 'gprof/hist.c')
-rw-r--r--gprof/hist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gprof/hist.c b/gprof/hist.c
index 6c48223..9c7f446 100644
--- a/gprof/hist.c
+++ b/gprof/hist.c
@@ -296,10 +296,10 @@ scale_and_align_entries ()
for (sym = symtab.base; sym < symtab.limit; sym++)
{
- sym->hist.scaled_addr = sym->addr / sizeof (UNIT);
-
histogram *r = find_histogram_for_pc (sym->addr);
+ sym->hist.scaled_addr = sym->addr / sizeof (UNIT);
+
if (r)
{
bin_of_entry = (sym->hist.scaled_addr - r->lowpc) / hist_scale;