2007-05-14 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 14 May 2007 23:16:45 +0000 (23:16 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 14 May 2007 23:16:45 +0000 (23:16 +0000)
* hist.c (scale_and_align_entries): Avoid C99 feature.

gprof/ChangeLog
gprof/hist.c

index bca9591913d17f82704006324624060974450e4a..7ddbf701fd876dffbe133d4fcf02aad9c1f2d703 100644 (file)
@@ -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
index 6c48223a4449d23d913d4d4e24b775465dc0d577..9c7f446a6d4bfa16924257648e0a5d7b35f5e81c 100644 (file)
@@ -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;