This is the mail archive of the gcc-patches@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: rs6000 patch fix enable-checking failure.


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;
-------------------------------------------------------------------------


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