Bug 12353 - [3.4 Regression] ICE in copyprop_hardreg_forward_1
Summary: [3.4 Regression] ICE in copyprop_hardreg_forward_1
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 3.4.0
: P2 normal
Target Milestone: 3.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2003-09-21 15:00 UTC by Anthony Green
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Test case (50.39 KB, text/plain)
2003-09-21 15:01 UTC, Anthony Green
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Green 2003-09-21 15:00:12 UTC
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.
Comment 1 Anthony Green 2003-09-21 15:01:56 UTC
Created attachment 4791 [details]
Test case
Comment 2 graham.stott 2003-09-21 15:21:54 UTC
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

Comment 3 GCC Commits 2003-09-21 15:25:18 UTC
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

Comment 4 GCC Commits 2003-09-21 15:27:03 UTC
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

Comment 5 Andrew Pinski 2003-09-21 18:01:06 UTC
Fixed by the patch below.