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]

patch ia64 fix typo ia64_adjust_cost


All,

While building an ia64 cross compiler with enable-checking
enabled it barfted with an enable checking faiure in ia64_adjust_cost.

The problem is a typo in handling UNSPEC.

Built ia64 cross compiler but otherwise untested.

Graham

ChangeLog

	* config/ia64/ia64.c (ia64_adjust_cost): Fix typo.

-------------------------------------------------------------------
Index: ia64.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ia64/ia64.c,v
retrieving revision 1.126
diff -c -p -r1.126 ia64.c
*** ia64.c      2001/11/04 02:51:25     1.126
--- ia64.c      2001/11/14 14:12:45
*************** ia64_adjust_cost (insn, link, dep_insn,
*** 5249,5257 ****
           && GET_CODE (XEXP (src, 0)) == MEM)
      addr = XEXP (XEXP (src, 0), 0);
    else if (set && GET_CODE (src) == UNSPEC
!          && XVECLEN (XEXP (src, 0), 0) > 0
           && GET_CODE (XVECEXP (src, 0, 0)) == MEM)
      addr = XEXP (XVECEXP (src, 0, 0), 0);
    if (addr && GET_CODE (addr) == POST_MODIFY)
      addr = XEXP (addr, 0);

--- 5249,5258 ----
           && GET_CODE (XEXP (src, 0)) == MEM)
      addr = XEXP (XEXP (src, 0), 0);
    else if (set && GET_CODE (src) == UNSPEC
!          && XVECLEN (src, 0) > 0
           && GET_CODE (XVECEXP (src, 0, 0)) == MEM)
      addr = XEXP (XVECEXP (src, 0, 0), 0);
+
    if (addr && GET_CODE (addr) == POST_MODIFY)
      addr = XEXP (addr, 0);

--------------------------------------------------------------------


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