Bug 46044 - ICE in get_attr_first_insn on ia64 Itanium
Summary: ICE in get_attr_first_insn on ia64 Itanium
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.5.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2010-10-16 12:32 UTC by Jeroen Demeyer
Modified: 2010-10-26 23:46 UTC (History)
2 users (show)

See Also:
Host: ia64-unknown-linux-gnu
Target: ia64-unknown-linux-gnu
Build: ia64-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2010-10-26 23:38:56


Attachments
testcase (303 bytes, application/octet-stream)
2010-10-16 12:33 UTC, Jeroen Demeyer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Demeyer 2010-10-16 12:32:57 UTC
On a Red Hat Enterprise Linux 5 system on Intel Itanium 2 processors:

$ uname -a
Linux cleo 2.6.18-128.1.1.el5 #1 SMP Mon Jan 26 13:57:09 EST 2009 ia64 ia64 ia64 GNU/Linux

$ gcc -v -O3 krasner.i -c -o krasner.o
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc-4.5.1/ia64-Linux-rhel/libexec/gcc/ia64-unknown-linux-gnu/4.5.1/lto-wrapper
Target: ia64-unknown-linux-gnu
Configured with: /usr/local/gcc-4.5.1/src/gcc-4.5.1/configure --enable-languages=c,c++,fortran --with-gnu-as --with-as=/usr/local/binutils-2.20.1/ia64-Linux-rhel-gcc-4.4.3/bin/as --with-gnu-ld --with-ld=/usr/local/binutils-2.20.1/ia64-Linux-rhel-gcc-4.4.3/bin/ld --with-gmp=/usr/local/gmp-5.0.1/ia64-Linux-rhel-gcc-4.5.0 --with-mpfr=/usr/local/mpfr-3.0.0/ia64-Linux-rhel-gmp-5.0.1-gcc-4.5.0 --with-mpc=/usr/local/mpc-0.8.2/ia64-Linux-rhel-mpfr-3.0.0-gmp-5.0.1-gcc-4.5.0 --prefix=/usr/local/gcc-4.5.1/ia64-Linux-rhel
Thread model: posix
gcc version 4.5.1 (GCC)
COLLECT_GCC_OPTIONS='-v' '-O3' '-c' '-o' 'krasner.o'
 /usr/local/gcc-4.5.1/ia64-Linux-rhel/libexec/gcc/ia64-unknown-linux-gnu/4.5.1/cc1 -fpreprocessed krasner.i -quiet -dumpbase krasner.i -auxbase-strip krasner.o -O3 -version -o /tmp/ccf8q5Rb.s
GNU C (GCC) version 4.5.1 (ia64-unknown-linux-gnu)
        compiled by GNU C version 4.5.1, GMP version 5.0.1, MPFR version 3.0.0, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C (GCC) version 4.5.1 (ia64-unknown-linux-gnu)
        compiled by GNU C version 4.5.1, GMP version 5.0.1, MPFR version 3.0.0, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: ffd8a52aa8a650053718419da68f7db2
krasner.i: In function "krasner":
krasner.i:30:1: error: unrecognizable insn:
(insn:TI 259 278 279 18 (parallel [
            (set (reg:DI 14 r14 [orig:411 n1 ] [411])
                (asm_operands:DI ("") ("=&r") 0 [
                        (reg/v:DI 32 r34 [orig:395 i ] [395])
                        (reg:SI 15 r15 [413])
                    ]
                     [
                        (asm_input:DI ("r") (null):0)
                        (asm_input:SI ("r") (null):0)
                    ]
                     [] krasner.i:30))
            (set (reg:DI 32 r34 [orig:412 n0 ] [412])
                (asm_operands:DI ("") ("=r") 1 [
                        (reg/v:DI 32 r34 [orig:395 i ] [395])
                        (reg:SI 15 r15 [413])
                    ]
                     [
                        (asm_input:DI ("r") (null):0)
                        (asm_input:SI ("r") (null):0)
                    ]
                     [] krasner.i:30))
        ]) -1 (nil))
krasner.i:30:1: internal compiler error: in get_attr_first_insn, at config/ia64/itanium2.md:1909
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Comment 1 Jeroen Demeyer 2010-10-16 12:33:34 UTC
Created attachment 22060 [details]
testcase
Comment 2 Steve Ellcey 2010-10-26 23:38:56 UTC
I can reproduce this on the top of the 4.5 branch but not on ToT.  I am not sure if there was a specific fix for this problem or if it doesn't happen on ToT due to some unrelated change that makes the bug latent.
Comment 3 Steve Ellcey 2010-10-26 23:46:04 UTC
This may be related to PR 43603.