diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2007-05-14 23:16:45 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2007-05-14 23:16:45 +0000 |
commit | 74bad5d4d8e777574d5957c790c6b0e669d0a5fe (patch) | |
tree | b6a59db166c89ad42645605a1a97d84987befc7c /gprof/hist.c | |
parent | f5ce4941f0497889c400ff62b087e28077e8b0fd (diff) | |
download | fsf-binutils-gdb-74bad5d4d8e777574d5957c790c6b0e669d0a5fe.zip fsf-binutils-gdb-74bad5d4d8e777574d5957c790c6b0e669d0a5fe.tar.gz fsf-binutils-gdb-74bad5d4d8e777574d5957c790c6b0e669d0a5fe.tar.bz2 |
2007-05-14 H.J. Lu <hongjiu.lu@intel.com>
* hist.c (scale_and_align_entries): Avoid C99 feature.
Diffstat (limited to 'gprof/hist.c')
-rw-r--r-- | gprof/hist.c | 4 |
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; |