Menu

#163 Error unrecognizable insn

closed
nobody
MinGW (23)
5
2012-12-19
2012-12-08
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

  • Giles

    Giles - 2012-12-09

    Sorry. I put it in the wrong place. I copied it in Bug section but can't remove it from here.

     
  • Earnie Boyd

    Earnie Boyd - 2012-12-19

    We do not distribute GCC 4.7.1. You should try GCC 4.7.2 to see if your issue is resolved. If it is not open a bug report with GCC. See http://gcc.gnu.org/bugs

     
  • Earnie Boyd

    Earnie Boyd - 2012-12-19
    • status: open --> closed