build failure

H. J. Lu hjl@lucon.org
Mon May 14 22:55:00 GMT 2007


On Tue, May 15, 2007 at 08:40:03AM +1000, Greg Schafer wrote:
> Hi
> 
> Trying to bootstrap recent binutils (2.17.50.0.16 by HJ) from an ancient
> RH62 system and the build is bombing in gprof. Compiler is egcs-2.91.66. Any
> takers?
> 
> I guess this commit has something to do with it:
> 
> http://sourceware.org/ml/binutils-cvs/2007-04/msg00038.html
> 

Can you try this?

H.J.
---
--- gprof/hist.c.isoc	2007-04-10 12:03:52.000000000 -0700
+++ gprof/hist.c	2007-05-14 15:54:06.000000000 -0700
@@ -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;



More information about the Binutils mailing list