rs6000 patch fix enable-checking failure.

Graham Stott graham.stott@btinternet.com
Tue Jul 30 16:56:00 GMT 2002


Geoff,

Here's an updated patch.

built x86 cross target powerpc-eabi --enable-checking all languages
no regressions.

Graham

ChangeLog

2002-07-31  Graham Stott  <graham.stott@btinternet.com>

       *config/rs6000/rs6000.c(rs6000_hash_constant): Fix
       hash for LABEL_REF's.

-------------------------------------------------------------------
Index: rs6000.c
===================================================================
RCS file: /cvs/uberbaum/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.351
diff -c -p -r1.351 rs6000.c
*** rs6000.c    30 Jul 2002 21:23:46 -0000      1.351
--- rs6000.c    30 Jul 2002 23:34:53 -0000
*************** rs6000_hash_constant (k)
*** 11369,11375 ****
     int fidx;

     if (GET_CODE (k) == LABEL_REF)
!     return result * 1231 + X0INT (XEXP (k, 0), 3);

     if (GET_CODE (k) == CODE_LABEL)
       fidx = 3;
--- 11369,11375 ----
     int fidx;

     if (GET_CODE (k) == LABEL_REF)
!     return result * 1231 + (unsigned) INSN_UID (XEXP (k, 0));

     if (GET_CODE (k) == CODE_LABEL)
       fidx = 3;
-------------------------------------------------------------------------



More information about the Gcc-patches mailing list