[Bug target/25947] New: Unrecognizable insn ICE for readline-5.1 in rl_vi_complete

hp at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jan 24 16:57:00 GMT 2006


With LAST_UPDATED "Tue Jan 24 01:27:36 UTC 2006 (revision 110159M)",
compile this code, reduced from readline-5.1 with -O2 -fpic:

extern char *rl_line_buffer;
extern int rl_point;
extern int rl_end;
static const char *vi_motion = " hl^$0ftFT;,%wbeWBE|";
void
rl_vi_complete (int ignore, int key)
{
  if ((rl_point < rl_end)
      &&
      (!(((rl_line_buffer[rl_point]) == ' ')
         || ((rl_line_buffer[rl_point]) == '\t'))))
    {
      if (!
          (((rl_line_buffer[rl_point + 1]) == ' ')
           || ((rl_line_buffer[rl_point + 1]) == '\t')))
        rl_vi_end_word (1, 'E');
    }
}

Observe:
/tmp/z.i: In function 'rl_vi_complete':
/tmp/z.i:19: error: unrecognizable insn:
(insn 70 28 71 3 (set (reg/f:SI 13 r13 [40])
        (plus:SI (mem/c/i:SI (reg/f:SI 9 r9 [37]) [2 rl_line_buffer+0 S4 A8])
            (reg:SI 13 r13 [orig:28 rl_point.0 ] [28]))) -1 (nil)
    (nil))
/tmp/z.i:19: internal compiler error: in extract_insn, at recog.c:2086
Also observable with local gcc-3.2.x derivative (cris-dist-1.63).


-- 
           Summary: Unrecognizable insn ICE for readline-5.1 in
                    rl_vi_complete
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: hp at gcc dot gnu dot org
        ReportedBy: hp at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: cris-axis-linux-gnu


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



More information about the Gcc-bugs mailing list