Bug 15499 - ICE in copyprop_hardreg_forward_1 on cross compile for ARM
Summary: ICE in copyprop_hardreg_forward_1 on cross compile for ARM
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 3.4.0
: P2 normal
Target Milestone: 3.4.1
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2004-05-17 19:12 UTC by Michael Link
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i686-host_pc-linux-gnu
Target: arm-9tdmi-linux-gnu
Build: i686-host_pc-linux-gnu
Known to work: 3.4.1 4.0.0
Known to fail: 3.4.0
Last reconfirmed:


Attachments
Saved temporary file that produces ICE (38.90 KB, text/plain)
2004-05-17 19:13 UTC, Michael Link
Details
X.org file, reduced to minimum reproducing bug (3.59 KB, text/plain)
2004-06-22 06:56 UTC, Marc Britten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Link 2004-05-17 19:12:55 UTC
Internal compiler error when compiling OpenSSL 0.9.7d. I didn't encounter this
error when using -Os.

$ arm-9tdmi-linux-gnu-gcc -I.. -I../.. -I../../include -fPIC -DZLIB_SHARED
-DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H
-DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall
--save-temps  -c -o pem_info.o pem_info.c
pem_info.c: In function `PEM_X509_INFO_read_bio':
pem_info.c:275: error: insn does not satisfy its constraints:
(insn:HI 828 1799 832 23 (set (mem/s:SI (post_modify:SI (reg:SI 1 r1 [orig:343
<variable>.dec_pkey ] [343])
                (plus:SI (reg:SI 1 r1 [orig:343 <variable>.dec_pkey ] [343])
                    (const_int 12 [0xc]))) [5 <variable>.type+0 S4 A32])
        (reg:SI 8 r8 [344])) 125 {*arm_movsi_insn} (insn_list 827 (insn_list 826
(nil)))
    (expr_list:REG_DEAD (reg:SI 8 r8 [344])
        (expr_list:REG_INC (reg:SI 1 r1 [orig:343 <variable>.dec_pkey ] [343])
            (expr_list:REG_EQUAL (const_int 6 [0x6])
                (nil)))))
pem_info.c:275: internal compiler error: in copyprop_hardreg_forward_1, at
regrename.c:1549
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

$ arm-9tdmi-linux-gnu-gcc -v
Reading specs from
/opt/crosstool/arm-9tdmi-linux-gnu/gcc-3.4.0-glibc-2.3.2/lib/gcc/arm-9tdmi-linux-gnu/3.4.0/specs
Configured with:
/home/linkm/crosstool-0.28-rc13/build/arm-9tdmi-linux-gnu/gcc-3.4.0-glibc-2.3.2/gcc-3.4.0/configure
--target=arm-9tdmi-linux-gnu --host=i686-host_pc-linux-gnu
--prefix=/opt/crosstool/arm-9tdmi-linux-gnu/gcc-3.4.0-glibc-2.3.2
--with-cpu=arm9tdmi --enable-cxx-flags=-mcpu=arm9tdmi
--with-headers=/opt/crosstool/arm-9tdmi-linux-gnu/gcc-3.4.0-glibc-2.3.2/arm-9tdmi-linux-gnu/include
--with-local-prefix=/opt/crosstool/arm-9tdmi-linux-gnu/gcc-3.4.0-glibc-2.3.2/arm-9tdmi-linux-gnu
--disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit
--enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
Thread model: posix
gcc version 3.4.0
Comment 1 Michael Link 2004-05-17 19:13:47 UTC
Created attachment 6318 [details]
Saved temporary file that produces ICE
Comment 2 Marc Britten 2004-06-22 06:56:55 UTC
Created attachment 6602 [details]
X.org file, reduced to minimum reproducing bug

I spent some time reducing the size of this file to the bare minimum that
reproduced the bug, most of it is just includes defining X11 types which are
referred to in the 2 functions.

The bug seems very convoluted, removing a single for loop or printf often got
rid of the error

I'm using a cross compiler produced with crosstool by Dan Kegel (crosstool 0.28
rc23 for the default arm target) this uses gcc 3.4.0 and glibc 2.3.2
Comment 3 Richard Earnshaw 2004-08-05 11:00:00 UTC
Confirmed, but already fixed in 3.4.1.