aboutsummaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2007-05-14 23:16:45 +0000
committerH.J. Lu <hjl.tools@gmail.com>2007-05-14 23:16:45 +0000
commit74bad5d4d8e777574d5957c790c6b0e669d0a5fe (patch)
treeb6a59db166c89ad42645605a1a97d84987befc7c /gprof
parentf5ce4941f0497889c400ff62b087e28077e8b0fd (diff)
downloadgdb-74bad5d4d8e777574d5957c790c6b0e669d0a5fe.zip
gdb-74bad5d4d8e777574d5957c790c6b0e669d0a5fe.tar.gz
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')
-rw-r--r--gprof/ChangeLog4
-rw-r--r--gprof/hist.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index bca9591..7ddbf70 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,7 @@
+2007-05-14 H.J. Lu <hongjiu.lu@intel.com>
+
+ * hist.c (scale_and_align_entries): Avoid C99 feature.
+
2007-04-19 Alan Modra <amodra@bigpond.net.au>
* corefile.c (core_create_function_syms, core_create_line_syms): Don't
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;