public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/56657] New: [GCC 4.6/4.7] ICE - error: unrecognizable insn.
@ 2013-03-20  3:25 nkbj1970 at hotmail dot com
  2013-03-20  5:00 ` [Bug middle-end/56657] " nkbj1970 at hotmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: nkbj1970 at hotmail dot com @ 2013-03-20  3:25 UTC (permalink / raw)
  To: gcc-bugs


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/56657] [GCC 4.6/4.7] ICE - error: unrecognizable insn.
  2013-03-20  3:25 [Bug middle-end/56657] New: [GCC 4.6/4.7] ICE - error: unrecognizable insn nkbj1970 at hotmail dot com
@ 2013-03-20  5:00 ` nkbj1970 at hotmail dot com
  2013-03-20  5:00 ` nkbj1970 at hotmail dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: nkbj1970 at hotmail dot com @ 2013-03-20  5:00 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from Niels Kristian Bech Jensen <nkbj1970 at hotmail dot com> 2013-03-20 05:00:40 UTC ---
Created attachment 29695
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29695
Output from '-save-temps'


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/56657] [GCC 4.6/4.7] ICE - error: unrecognizable insn.
  2013-03-20  3:25 [Bug middle-end/56657] New: [GCC 4.6/4.7] ICE - error: unrecognizable insn nkbj1970 at hotmail dot com
  2013-03-20  5:00 ` [Bug middle-end/56657] " nkbj1970 at hotmail dot com
@ 2013-03-20  5:00 ` nkbj1970 at hotmail dot com
  2013-03-20  5:03 ` nkbj1970 at hotmail dot com
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: nkbj1970 at hotmail dot com @ 2013-03-20  5:00 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Niels Kristian Bech Jensen <nkbj1970 at hotmail dot com> 2013-03-20 04:59:56 UTC ---
Created attachment 29694
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29694
Output from '-save-temps'


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/56657] [GCC 4.6/4.7] ICE - error: unrecognizable insn.
  2013-03-20  3:25 [Bug middle-end/56657] New: [GCC 4.6/4.7] ICE - error: unrecognizable insn nkbj1970 at hotmail dot com
  2013-03-20  5:00 ` [Bug middle-end/56657] " nkbj1970 at hotmail dot com
  2013-03-20  5:00 ` nkbj1970 at hotmail dot com
@ 2013-03-20  5:03 ` nkbj1970 at hotmail dot com
  2013-03-20  9:07 ` mikpe at it dot uu.se
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: nkbj1970 at hotmail dot com @ 2013-03-20  5:03 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Niels Kristian Bech Jensen <nkbj1970 at hotmail dot com> 2013-03-20 05:03:00 UTC ---
Doh. I forgot to attach the output from '-save-temps'.

I am not sure about the 'middle-end' component. Please change to the correct
one if I am wrong.

Best regards,
Niels Kristian Bech Jensen


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug middle-end/56657] [GCC 4.6/4.7] ICE - error: unrecognizable insn.
  2013-03-20  3:25 [Bug middle-end/56657] New: [GCC 4.6/4.7] ICE - error: unrecognizable insn nkbj1970 at hotmail dot com
                   ` (2 preceding siblings ...)
  2013-03-20  5:03 ` nkbj1970 at hotmail dot com
@ 2013-03-20  9:07 ` mikpe at it dot uu.se
  2013-03-20 11:00 ` [Bug target/56657] [4.6/4.7 Regression] " rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mikpe at it dot uu.se @ 2013-03-20  9:07 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Mikael Pettersson <mikpe at it dot uu.se> 2013-03-20 09:07:28 UTC ---
Created attachment 29698
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29698
reduced test case


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/56657] [4.6/4.7 Regression] ICE - error: unrecognizable insn.
  2013-03-20  3:25 [Bug middle-end/56657] New: [GCC 4.6/4.7] ICE - error: unrecognizable insn nkbj1970 at hotmail dot com
                   ` (3 preceding siblings ...)
  2013-03-20  9:07 ` mikpe at it dot uu.se
@ 2013-03-20 11:00 ` rguenth at gcc dot gnu.org
  2013-03-23  7:35 ` nkbj1970 at hotmail dot com
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-03-20 11:00 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-03-20
          Component|middle-end                  |target
   Target Milestone|---                         |4.6.4
            Summary|[GCC 4.6/4.7] ICE - error:  |[4.6/4.7 Regression] ICE -
                   |unrecognizable insn.        |error: unrecognizable insn.
     Ever Confirmed|0                           |1

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> 2013-03-20 11:00:41 UTC ---
Confirmed partly as of comment #4.  State of 4.8/4.9 unknown.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/56657] [4.6/4.7 Regression] ICE - error: unrecognizable insn.
  2013-03-20  3:25 [Bug middle-end/56657] New: [GCC 4.6/4.7] ICE - error: unrecognizable insn nkbj1970 at hotmail dot com
                   ` (4 preceding siblings ...)
  2013-03-20 11:00 ` [Bug target/56657] [4.6/4.7 Regression] " rguenth at gcc dot gnu.org
@ 2013-03-23  7:35 ` nkbj1970 at hotmail dot com
  2013-04-03 10:14 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: nkbj1970 at hotmail dot com @ 2013-03-23  7:35 UTC (permalink / raw)
  To: gcc-bugs


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

Niels Kristian Bech Jensen <nkbj1970 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.8.0

--- Comment #7 from Niels Kristian Bech Jensen <nkbj1970 at hotmail dot com> 2013-03-23 07:35:11 UTC ---
GCC 4.8.0 does not crash.

Best regards,
Niels Kristian Bech Jensen


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/56657] [4.6/4.7 Regression] ICE - error: unrecognizable insn.
  2013-03-20  3:25 [Bug middle-end/56657] New: [GCC 4.6/4.7] ICE - error: unrecognizable insn nkbj1970 at hotmail dot com
                   ` (5 preceding siblings ...)
  2013-03-23  7:35 ` nkbj1970 at hotmail dot com
@ 2013-04-03 10:14 ` rguenth at gcc dot gnu.org
  2013-04-12 15:17 ` [Bug target/56657] [4.7 " jakub at gcc dot gnu.org
  2013-04-13 10:34 ` nkbj1970 at hotmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-04-03 10:14 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/56657] [4.7 Regression] ICE - error: unrecognizable insn.
  2013-03-20  3:25 [Bug middle-end/56657] New: [GCC 4.6/4.7] ICE - error: unrecognizable insn nkbj1970 at hotmail dot com
                   ` (6 preceding siblings ...)
  2013-04-03 10:14 ` rguenth at gcc dot gnu.org
@ 2013-04-12 15:17 ` jakub at gcc dot gnu.org
  2013-04-13 10:34 ` nkbj1970 at hotmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-04-12 15:17 UTC (permalink / raw)
  To: gcc-bugs


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.6.4                       |4.7.4

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-12 15:16:38 UTC ---
GCC 4.6.4 has been released and the branch has been closed.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/56657] [4.7 Regression] ICE - error: unrecognizable insn.
  2013-03-20  3:25 [Bug middle-end/56657] New: [GCC 4.6/4.7] ICE - error: unrecognizable insn nkbj1970 at hotmail dot com
                   ` (7 preceding siblings ...)
  2013-04-12 15:17 ` [Bug target/56657] [4.7 " jakub at gcc dot gnu.org
@ 2013-04-13 10:34 ` nkbj1970 at hotmail dot com
  8 siblings, 0 replies; 10+ messages in thread
From: nkbj1970 at hotmail dot com @ 2013-04-13 10:34 UTC (permalink / raw)
  To: gcc-bugs


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

Niels Kristian Bech Jensen <nkbj1970 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to work|                            |4.6.4, 4.7.3
         Resolution|                            |FIXED

--- Comment #9 from Niels Kristian Bech Jensen <nkbj1970 at hotmail dot com> 2013-04-13 10:34:27 UTC ---
This bug is fixed in both GCC 4.6.4 and 4.7.3. Thanks.

Best regards,
Niels Kristian Bech Jensen


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-04-13 10:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-20  3:25 [Bug middle-end/56657] New: [GCC 4.6/4.7] ICE - error: unrecognizable insn nkbj1970 at hotmail dot com
2013-03-20  5:00 ` [Bug middle-end/56657] " nkbj1970 at hotmail dot com
2013-03-20  5:00 ` nkbj1970 at hotmail dot com
2013-03-20  5:03 ` nkbj1970 at hotmail dot com
2013-03-20  9:07 ` mikpe at it dot uu.se
2013-03-20 11:00 ` [Bug target/56657] [4.6/4.7 Regression] " rguenth at gcc dot gnu.org
2013-03-23  7:35 ` nkbj1970 at hotmail dot com
2013-04-03 10:14 ` rguenth at gcc dot gnu.org
2013-04-12 15:17 ` [Bug target/56657] [4.7 " jakub at gcc dot gnu.org
2013-04-13 10:34 ` nkbj1970 at hotmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).