This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bootstrap comparison failure on alpha


> 
> I just updated my CVS sources that included this patch:
> 
> http://gcc.gnu.org/ml/gcc-cvs/2001-01/msg00134.html
> 
> and the bootstrap comparison problems went away on sparc-solaris2.8,
> but remain on alphaev6-unknown-linux-gnu.
> 
> Is there still a 64bit problem with the previous patch
> 
> http://gcc.gnu.org/ml/gcc-cvs/2001-01/msg00109.html

Actually, there is, OBJECT_SIZE is size_t, which is 64bits on
the alpha.  I applied the following patch and am bootstrapping now:

popov-68% rcsdiff -p ggc-page.c 
===================================================================
RCS file: RCS/ggc-page.c,v
retrieving revision 1.1
diff -p -r1.1 ggc-page.c
*** ggc-page.c  2001/01/05 19:54:06     1.1
--- ggc-page.c  2001/01/05 19:57:06
*************** alloc_page (order)
*** 563,569 ****
    if (GGC_DEBUG_LEVEL >= 2)
      fprintf (G.debug_file, 
             "Allocating page at %p, object size=%d, data %p-%p\n",
!            (PTR) entry, OBJECT_SIZE (order), page, page + entry_size - 1);
  
    return entry;
  }
--- 563,569 ----
    if (GGC_DEBUG_LEVEL >= 2)
      fprintf (G.debug_file, 
             "Allocating page at %p, object size=%d, data %p-%p\n",
!            (PTR) entry, (int) OBJECT_SIZE (order), page, page + entry_size - 1);
  
    return entry;
  }
*************** ggc_alloc (size)
*** 765,771 ****
    if (GGC_DEBUG_LEVEL >= 3)
      fprintf (G.debug_file, 
             "Allocating object, requested size=%d, actual=%d at %p on %p\n",
!            (int) size, OBJECT_SIZE (order), result, (PTR) entry);
  
    return result;
  }
--- 765,771 ----
    if (GGC_DEBUG_LEVEL >= 3)
      fprintf (G.debug_file, 
             "Allocating object, requested size=%d, actual=%d at %p on %p\n",
!            (int) size, (int) OBJECT_SIZE (order), result, (PTR) entry);
  
    return result;
  }


> 
> Brad
> 
> > From lucier@popov.math.purdue.edu  Thu Jan  4 23:50:03 2001
> > Date: Thu, 4 Jan 2001 23:49:52 -0500
> > From: Brad Lucier <lucier@popov.math.purdue.edu>
> > To: gcc-bugs@gcc.gnu.org
> > Subject: bootstrap comparison failure on alpha
> > Cc: lucier@math.purdue.edu
> > 
> > When I use gcc version 2.97 20001228 as the host compiler and attempt a
> > bootstrap on alphaev6-unknown-linux-gnu with --enable-checking=yes, I
> > get the following comparison failures:
> > 
> > Bootstrap comparison failure!
> > cse.o differs
> > dwarf2out.o differs
> > flow.o differs
> > reload.o differs
> > stor-layout.o differs
> > tradcpp.o differs
> > f/intrin.o differs
> > java/class.o differs
> > 
> > Brad Lucier
> > 
> 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]