Bug 19198 - ICE in copyprop_hardreg_forward_1
Summary: ICE in copyprop_hardreg_forward_1
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 3.4.4
: P2 normal
Target Milestone: 3.4.4
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2004-12-30 03:30 UTC by matt
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target: i386-unknown-freebsd4.10
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Pre-processed output from file causing the ICE (150.06 KB, application/octet-stream)
2004-12-30 03:42 UTC, matt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matt 2004-12-30 03:30:59 UTC
root@penelope# gcc -v
Using builtin specs.
gcc version 2.95.4 20020320 [FreeBSD]

----------------------------------------------

root@penelope# uname -a
FreeBSD penelope.gsicomp.on.ca 4.10-RELEASE-p5 FreeBSD 4.10-RELEASE-p5 #0: Wed 
Dec  8 22:11:29 EST 2004     
root@penelope.gsicomp.on.ca:/usr/obj/usr/src/sys/PENELOPE.20040530.01  i386

----------------------------------------------

matt@penelope# make shell32_main.o
gcc34 -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_SHELL32_ -
DCOM_NO_WINDOWS_H --save-temps -D_REENTRANT -fPIC -Wall -pipe -mpreferred-stack-
boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith  -g -O2 -o 
shell32_main.o shell32_main.c
gcc34: warning: -pipe ignored because -save-temps specified
shell32_main.c: In function `SHGetFileInfoW':
shell32_main.c:185: error: insn does not satisfy its constraints:
(insn 1822 1263 1265 118 shell32_main.c:484 (parallel [
            (set (reg:CCNO 17 flags)
                (compare:CCNO (and:QI (reg:QI 5 di [orig:63 flags ] [63])
                        (const_int -32 [0xffffffe0]))
                    (const_int 0 [0x0])))
            (set (reg:QI 5 di [orig:63 flags ] [63])
                (and:QI (reg:QI 5 di [orig:63 flags ] [63])
                    (const_int -32 [0xffffffe0])))
        ]) 205 {*andqi_2} (nil)
    (expr_list:REG_UNUSED (reg:QI 5 di [orig:63 flags ] [63])
        (nil)))
shell32_main.c:185: internal compiler error: in copyprop_hardreg_forward_1, at 
regrename.c:1549

----------------------------------------------
Comment 1 matt 2004-12-30 03:42:27 UTC
Created attachment 7843 [details]
Pre-processed output from file causing the ICE

gzipped pre-processed output.  (Bugzilla didn't like it uncompressed since it
was >1MB).
Comment 2 matt 2004-12-30 03:44:21 UTC
The ICE goes away when compiling without -O2.
Comment 3 Andrew Pinski 2004-12-30 05:22:10 UTC
What exact version of 3.4.4 is this aka give the output of "gcc34 -v".

Also if this is a three week old snapshot, try a newer snapshot as I think this has been fixed already.
Comment 4 matt 2004-12-30 15:28:29 UTC
Ignore the "gcc -v" that claims to be 2.95.4.  That's from the wrong gcc.

Here's the right info:

matt@penelope# gcc34 -v
Reading specs from /usr/local/lib/gcc/i386-portbld-freebsd4.10/3.4.4/specs
Configured with: ./..//gcc-3.4-20041210/configure --disable-nls --with-system-
zlib --with-libiconv-prefix=/usr/local --program-suffix=34 --with-gxx-include-
dir=/usr/local/lib/gcc/i386-portbld-freebsd4.10/3.4.4/include/c++/ --disable-
shared --prefix=/usr/local i386-portbld-freebsd4.10
Thread model: posix
gcc version 3.4.4 20041210 (prerelease) [FreeBSD]

Comment 5 Andrew Pinski 2005-01-23 23:46:11 UTC
I think this is a dup of bug 18932 which is already fixed in a later version of 3.4.4, can you try a newer 
version of 3.4.4?
Comment 6 matt 2005-01-26 00:05:02 UTC
Upgraded to gcc-20050107 and the problem has gone away.
Changing this bug to CLOSED.