This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Bootstrap still broken on ia64


>Yes.  I thought I'd fixed all of these places to use either
>real_hash or real_identical, both of which ignore the padding.
>Obviously I missed one.

I tried writing a patch for this.  With this patch, my make bootstrap (minus
ada) completed successfully.

2002-09-25  Jim Wilson  <wilson@tortoise.toronto.redhat.com>

	* emit-rtl.c (const_double_htab_eq): Rewrite to use real_identical.

Index: emit-rtl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/emit-rtl.c,v
retrieving revision 1.297
diff -p -r1.297 emit-rtl.c
*** emit-rtl.c	22 Sep 2002 14:09:31 -0000	1.297
--- emit-rtl.c	25 Sep 2002 22:02:19 -0000
*************** const_double_htab_eq (x, y)
*** 239,253 ****
       const void *y;
  {
    rtx a = (rtx)x, b = (rtx)y;
!   size_t i;
  
    if (GET_MODE (a) != GET_MODE (b))
      return 0;
-   for (i = 0; i < sizeof(CONST_DOUBLE_FORMAT)-1; i++)
-     if (XWINT (a, i) != XWINT (b, i))
-       return 0;
  
!   return 1;
  }
  
  /* Returns a hash code for X (which is a really a mem_attrs *).  */
--- 239,253 ----
       const void *y;
  {
    rtx a = (rtx)x, b = (rtx)y;
!   REAL_VALUE_TYPE r, s;
  
    if (GET_MODE (a) != GET_MODE (b))
      return 0;
  
!   REAL_VALUE_FROM_CONST_DOUBLE (r, a);
!   REAL_VALUE_FROM_CONST_DOUBLE (s, b);
! 
!   return real_identical (&r, &s);
  }
  
  /* Returns a hash code for X (which is a really a mem_attrs *).  */


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