------- Additional Comments From fjahanian at apple dot com  2004-10-25 18:39 -------
I applied the last two patch, but it didn;t help:

% mygccf -O2 -mcpu=G5 -c loader_obj.i
loader_obj.c: In function 'load_obj':
loader_obj.c:92: error: unrecognizable insn:
(insn 1395 601 1396 50 (set (subreg:DI (mem:SI (plus:SI (reg/f:SI 1 r1)
                    (const_int 716 [0x2cc])) [0 allocednf+0 S4 A8]) 0)
        (reg:DI 32 f0)) -1 (nil)
    (nil))
loader_obj.c:92: internal compiler error: in extract_insn, at recog.c:2034
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.

Just to be clear, this is the patch I applied.

Index: simplify-rtx.c
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/simplify-rtx.c,v
retrieving revision 1.107.2.31.2.9
diff -c -p -r1.107.2.31.2.9 simplify-rtx.c
*** simplify-rtx.c      16 Oct 2004 00:06:42 -0000      1.107.2.31.2.9
--- simplify-rtx.c      25 Oct 2004 18:38:20 -0000
*************** simplify_gen_subreg (enum machine_mode o
*** 3800,3806 ****
    if (newx)
      return newx;
  
!   if (GET_CODE (op) == SUBREG || GET_MODE (op) == VOIDmode)
      return NULL_RTX;
  
    return gen_rtx_SUBREG (outermode, op, byte);
--- 3800,3808 ----
    if (newx)
      return newx;
  
!   if ((GET_CODE (op) == SUBREG || GET_MODE (op) == VOIDmode
!        || (REG_P (op) && REGNO (op) < FIRST_PSEUDO_REGISTER))
!          && !reload_completed)
      return NULL_RTX;
  
    return gen_rtx_SUBREG (outermode, op, byte);

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15286

Reply via email to