I stumbled across this while building a mips-elf-gas with a recent x86 Linux compiler. I'll attach the .i file to this bug. $ gcc -c dwarf2dbg.i -O2 ../../src/HEAD-2003-09-21/gas/dwarf2dbg.c: In function `dwarf2_finish': ../../src/HEAD-2003-09-21/gas/dwarf2dbg.c:1198: error: insn does not satisfy its constraints: (insn 1230 1229 1231 52 (set (strict_low_part (reg:QI 4 sil)) (eq:QI (reg:CCZ 17 flags) (const_int 0 [0x0]))) 363 {setcc_2} (insn_list 1228 (insn_list 1229 (nil))) (expr_list:REG_DEAD (reg:CCZ 17 flags) (nil))) ../../src/HEAD-2003-09-21/gas/dwarf2dbg.c:1198: internal compiler error: in copyprop_hardreg_forward_1, at regrename.c:1543 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Created attachment 4791 [details] Test case
Subject: Re: New: ICE in copyprop_hardreg_forward_1 I'm just about to commit a patch that fixes this which was OK'd by ~rth way back in Jun but I forgot to commit following the ack. Graham
Subject: Bug 12353 CVSROOT: /cvs/gcc Module name: gcc Changes by: grahams@gcc.gnu.org 2003-09-21 15:25:14 Modified files: gcc : ChangeLog Log message: PR target/12353 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.1110&r2=2.1111
Subject: Bug 12353 CVSROOT: /cvs/gcc Module name: gcc Changes by: grahams@gcc.gnu.org 2003-09-21 15:27:00 Modified files: gcc/config/i386: i386.md Log message: PR target/12353 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386.md.diff?cvsroot=gcc&r1=1.481&r2=1.482
Fixed by the patch below.