optimization/5747: ss20020218 fails to build binutils-2.11.93.0.2 on sparc-suse-linux - ICE in loop.c

pthomas@suse.de pthomas@suse.de
Thu Feb 21 13:26:00 GMT 2002


>Number:         5747
>Category:       optimization
>Synopsis:       ss20020218 fails to build binutils-2.11.93.0.2 on sparc-suse-linux - ICE in loop.c
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 21 09:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     pthomas@suse.de
>Release:        3.1 20020218
>Organization:
>Environment:
sparc-suse-linux
gcc Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --host=sparc-suse-linux --build=sparc-suse-linux --target=sparc-suse-linux --with-cpu=v7
Thread model: posix



>Description:
Compiling the attached tkh.i, a condensed version of bfd/tekhex.c from binutils with

gcc -O2 -fPIC -c tkh.i

fails with an ICE:

tkh.i: In function `tekhex_init':
tkh.i:35: virtual array reg_n_info[169]: element 169 out of bounds in load_mems, at loop.c:9827

Either using -O or without -fPIC succeeds.
>How-To-Repeat:
Compile attatached tkh.i as detailed above.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list