17093 – [m32r-*-gcc] ICE with -msdata=use -O0 (original) (raw)
Description inaoka.kazuhiro 2004-08-19 06🔞24 UTC
-- sdata.c -- extern char *name; main() { printf("%s\n",name); }
m32r-elf-gcc -c -msdata=use -O0 sdata.c
sdata.c: In function `main': sdata.c:5: error: unrecognizable insn: (insn 8 21 9 0 (set (reg:SI 27) (unspec [ (const_int 0 [0x0]) ] 2)) -1 (nil) (nil)) sdata.c:5: internal compiler error: in extract_insn, at recog.c:2083
Comment 1 Drea Pinski 2004-08-19 06:25:40 UTC
The insn looks right at least one the mainline and the 3.4 branch: (define_insn "*load_sda_base" [(set (match_operand:SI 0 "register_operand" "=r") (unspec:SI [(const_int 0)] UNSPEC_LOAD_SDA_BASE))] "" "ld24 %0,#SDA_BASE" [(set_attr "type" "int4") (set_attr "length" "4")])
Comment 2 inaoka.kazuhiro 2004-08-19 07:13:53 UTC
(In reply to comment #1)
The insn looks right at least one the mainline and the 3.4 branch:
I think so. But It has happened.
Reading specs from /usr/local/m32r-elf/lib/gcc/m32r-elf/3.4.2/specs Configured with: /home3/FSF/org_src/gcc-3.4/gcc/configure --target=m32r-elf --prefix=/usr/local/m32r-elf --srcdir=/home3/FSF/org_src/gcc-3.4/gcc --enable-languages=c,c++ --with-newlib Thread model: single gcc version 3.4.2 20040819 (prerelease)
Comment 3 Drea Pinski 2004-08-19 18:58:32 UTC
*** Bug 17094 has been marked as a duplicate of this bug. ***
Comment 6 Drea Pinski 2004-08-24 14:13:49 UTC
Fixed for 3.4.2.
Comment 7 Drea Pinski 2004-08-24 14:56:18 UTC
Woops closed the wrong one.
Comment 8 Drea Pinski 2004-08-24 15:04:10 UTC
Woops I should look closer at what I was doing, this is fixed now.