(sim_core_signal): Add missing "\n" in message.
[deliverable/binutils-gdb.git] / gprof / hist.c
index 69cc3ea004ab5558ebd180bfdd5151498de7e6a5..2b2dceb817bc271cf2d511aafd9e3573350795b4 100644 (file)
@@ -12,6 +12,8 @@
 #include "sym_ids.h"
 #include "utils.h"
 
+static void scale_and_align_entries PARAMS ((void));
+
 /* declarations of automatically generated functions to output blurbs: */
 extern void flat_blurb PARAMS ((FILE * fp));
 
@@ -210,28 +212,25 @@ DEFUN (hist_write_hist, (ofp, filename), FILE * ofp AND const char *filename)
  * next bin.
  */
 static void
-DEFUN_VOID (scale_and_align_entries)
+scale_and_align_entries ()
 {
   Sym *sym;
-#if OFFSET_TO_CODE > 0
   bfd_vma bin_of_entry;
   bfd_vma bin_of_code;
-#endif
 
   for (sym = symtab.base; sym < symtab.limit; sym++)
     {
       sym->hist.scaled_addr = sym->addr / sizeof (UNIT);
-#if OFFSET_TO_CODE > 0
       bin_of_entry = (sym->hist.scaled_addr - lowpc) / hist_scale;
       bin_of_code = (sym->hist.scaled_addr + UNITS_TO_CODE - lowpc) / hist_scale;
       if (bin_of_entry < bin_of_code)
        {
          DBG (SAMPLEDEBUG,
               printf ("[scale_and_align_entries] pushing 0x%lx to 0x%lx\n",
-                sym->hist.scaled_addr, sym->aligned_addr + UNITS_TO_CODE));
-         sym->aligned_addr += UNITS_TO_CODE;
+                      sym->hist.scaled_addr,
+                      sym->hist.scaled_addr + UNITS_TO_CODE));
+         sym->hist.scaled_addr += UNITS_TO_CODE;
        }
-#endif /* OFFSET_TO_CODE > 0 */
     }
 }
 
This page took 0.023366 seconds and 4 git commands to generate.