#1683 Error unrecognizable insn

OTHER
closed
nobody
Bug
duplicate
Unknown
False
2013-04-13
2012-12-09
Giles
No

MinGW 4.7.1 fails to compile this code:

#include <stdio.h>
static FILE *volatile fd;
void f(void) { fd = stdout; }

Producing the following error:

D:\Sources\src\DE\Test.cpp: In function 'void f()':
D:\Sources\\src\DE\Test.cpp:3:52: error: unrecognizable insn:
(insn 8 7 9 3 (set (mem/v/f/c:SI (symbol_ref:SI ("_ZL2fd") [flags 0x2] <var_decl 050d88a0 fd>) [0 fd+0 S4 A32])
(const:SI (plus:SI (symbol_ref:SI ("_iob") [flags 0x440] <var_decl 05096c60 _iob>)
(const_int 32 [0x20])))) D:\DubEdit\src\DE\Test.cpp:3 -1
(nil))
D:\Sources\src\DE\Test.cpp:3:52: internal compiler error: in extract_insn, at recog.c:2123

Discussion

  • Earnie Boyd
    Earnie Boyd
    2013-01-08

    Since this causes an internal error in GCC please file a bug report with GCC. See gcc.gnu.org/bugs.html for instructions on doing that.

     
  • Earnie Boyd
    Earnie Boyd
    2013-01-08

    • labels: 456608 --> gcc-4.7.0
    • milestone: --> component_package
    • status: open --> pending-remind
     
  • Earnie Boyd
    Earnie Boyd
    2013-02-04

    GCC bugs need to be reported to GCC. See http://gcc.gnu.org/bugs.html for instruction.

     
  • Earnie Boyd
    Earnie Boyd
    2013-02-04

    • status: pending-remind --> pending
    • resolution: --> none
    • category: --> Unknown
    • milestone: component_package --> OTHER
     
  • Earnie Boyd
    Earnie Boyd
    2013-02-11

    • labels: gcc-4.7.0 --> gcc-4.7.0, gcc
    • type: --> Bug
    • patch_attached: --> False
     
  • This is a duplicate of bug [#1682].

    Best regards,
    Niels Kristian Bech Jensen

     

    Related

    Issues: #1682


    Last edit: Earnie Boyd 2013-04-13
  • Earnie Boyd
    Earnie Boyd
    2013-04-13

    • status: pending --> closed
    • Resolution: none --> duplicate