[Bug middle-end/56657] New: [GCC 4.6/4.7] ICE - error: unrecognizable insn.

nkbj1970 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Wed Mar 20 03:25:00 GMT 2013


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

             Bug #: 56657
           Summary: [GCC 4.6/4.7] ICE - error: unrecognizable insn.
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: nkbj1970@hotmail.com
            Target: *-*-mingw32


Created attachment 29693
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29693
Test case.

I got this ICE when cross-building UFRaw (http://ufraw.sourceforge.net) for
Windows using MXE (http://mxe.cc). I have tried GCC 4.7.2, 4.7.0, 4.6.3, and
4.6.0. All crash with the same error. GCC 4.5.4 works.

The output is:
  CC     ufraw_writer.o
ufraw_writer.c: In function 'ufraw_write_image':
ufraw_writer.c:790:1: error: unrecognizable insn:
(insn 214 213 215 19 (set (mem/v/f/c:SI (plus:SI (reg/f:SI 54
virtual-stack-vars)
                (const_int -656 [0xfffffffffffffd70])) [2 out+0 S4 A64])
        (const:SI (plus:SI (symbol_ref:SI ("_iob") [flags 0x440] <var_decl
0x2b94ad99ed20 _iob>)
                (const_int 32 [0x20])))) ufraw_writer.c:334 -1
     (nil))
ufraw_writer.c:790:1: internal compiler error: in extract_insn, at recog.c:2123
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [ufraw_writer.o] Error 1

I have attached a small test case which also shows the error compiled with
'i686-pc-mingw32-g++ -c insn.cc' (it happens for both c and c++ code):
insn.cc: In function 'void f()':
insn.cc:3:29: error: unrecognizable insn:
(insn 8 7 9 3 (set (mem/v/f/c:SI (symbol_ref:SI ("_ZL2fd") [flags 0x2]
<var_decl 0x7f5562fae780 fd>) [0 fd+0 S4 A32])
        (const:SI (plus:SI (symbol_ref:SI ("_iob") [flags 0x440] <var_decl
0x7f5562fae140 _iob>)
                (const_int 32 [0x20])))) insn.cc:3 -1
     (nil))
insn.cc:3:29: internal compiler error: in extract_insn, at recog.c:2123
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Best regards,
Niels Kristian Bech Jensen



More information about the Gcc-bugs mailing list