#1202 internal compiler error

OTHER
closed
nobody
gcc (462)
out-of-date
Unknown
2013-02-05
2008-09-04
Varkhan1
No

// any.c

register struct
{
unsigned char foo;
unsigned char bar;
} mystruct asm("esi");

int main(void)
{
mystruct.bar=123;
return 0;
}

K:\projects\c++\any>gcc any.c
any.c: In function `main':
any.c:11: error: unrecognizable insn:
(insn 24 23 28 0 (set (zero_extract:SI (subreg:SI (reg/v:HI 4 si [ mystruct ]) 0
)
(const_int 8 [0x8])
(const_int 8 [0x8]))
(reg:SI 71)) -1 (nil)
(expr_list:REG_DEAD (reg:SI 71)
(nil)))
any.c:11: internal compiler error: in extract_insn, at recog.c:2083
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.

os: windows xp SP2

Build environment: cmd.exe

E:\Documents and Settings\Owner>gcc -v
Reading specs from E:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable
-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --e
nable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-ja
va-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchroniz
ation --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.2 (mingw-special)

E:\Documents and Settings\Owner>ld -v
GNU ld version 2.17.50 20060824

mingw version: 5.1.4 (from http://heanet.dl.sourceforge.net/sourceforge/mingw/MinGW-5.1.4.exe\)

Discussion

  • Varkhan1
    Varkhan1
    2008-09-04

    • status: open --> open-accepted
     
  • Varkhan1
    Varkhan1
    2008-09-04

    • status: open-accepted --> open
     
  • Varkhan1
    Varkhan1
    2008-09-04

    Logged In: YES
    user_id=1903692
    Originator: YES

    heres code with line numbers

    01 register struct
    02 {
    03 unsigned char foo;
    04 unsigned char bar;
    05 } mystruct asm("esi");
    06
    07 int main(void)
    08 {
    09 mystruct.bar=123;
    10 return 0;
    11 }

     
  • Earnie Boyd
    Earnie Boyd
    2013-02-05

    • labels: MinGW --> gcc
    • status: open --> closed
    • resolution: --> out-of-date
    • category: --> Unknown
    • milestone: --> OTHER