Bug 41747 - arc-elf: ICE in extract_insn, at recog.c:2091
Summary: arc-elf: ICE in extract_insn, at recog.c:2091
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2009-10-19 00:53 UTC by Joel Sherrill
Modified: 2011-03-22 20:21 UTC (History)
1 user (show)

See Also:
Host:
Target: arc-elf
Build:
Known to work:
Known to fail: 3.4.6, 4.1.2, 4.2.4, 4.3.4, 4.4.1
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Sherrill 2009-10-19 00:53:23 UTC
GNU C (GCC) version 4.5.0 20091016 (experimental) [trunk revision 152901]

$ /users/joel/test-gcc/b-arc-gcc/./gcc/xgcc -B/users/joel/test-gcc/b-arc-gcc/./gcc/ -nostdinc -B/users/joel/test-gcc/b-arc-gcc/arc-elf/newlib/ -isystem /users/joel/test-gcc/b-arc-gcc/arc-elf/newlib/targ-include -isystem /users/joel/test-gcc/gcc-svn/newlib/libc/include -B/users/joel/test-gcc/install-svn/arc-elf/bin/ -B/users/joel/test-gcc/install-svn/arc-elf/lib/ -isystem /users/joel/test-gcc/install-svn/arc-elf/include -isystem /users/joel/test-gcc/install-svn/arc-elf/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  -I. -I. -I../.././gcc -I../../../gcc-svn/libgcc -I../../../gcc-svn/libgcc/. -I../../../gcc-svn/libgcc/../gcc -I../../../gcc-svn/libgcc/../include  -DHAVE_CC_TLS -o _ffsdi2.o -MT _ffsdi2.o -MD -MP -MF _ffsdi2.dep -DL_ffsdi2 -c ../../../gcc-svn/libgcc/../gcc/libgcc2.c -v
Reading specs from /users/joel/test-gcc/b-arc-gcc/./gcc/specs
COLLECT_GCC=/users/joel/test-gcc/b-arc-gcc/./gcc/xgcc
COLLECT_LTO_WRAPPER=/users/joel/test-gcc/b-arc-gcc/./gcc/lto-wrapper
Target: arc-elf
Configured with: ../gcc-svn/configure --target=arc-elf --prefix=/users/joel/test-gcc/install-svn/ --with-newlib --enable-languages=c
Thread model: single
gcc version 4.5.0 20091016 (experimental) [trunk revision 152901] (GCC) 
COLLECT_GCC_OPTIONS='-B/users/joel/test-gcc/b-arc-gcc/./gcc/' '-nostdinc' '-B/users/joel/test-gcc/b-arc-gcc/arc-elf/newlib/' '-isystem' '/users/joel/test-gcc/b-arc-gcc/arc-elf/newlib/targ-include' '-isystem' '/users/joel/test-gcc/gcc-svn/newlib/libc/include' '-B/users/joel/test-gcc/install-svn/arc-elf/bin/' '-B/users/joel/test-gcc/install-svn/arc-elf/lib/' '-isystem' '/users/joel/test-gcc/install-svn/arc-elf/include' '-isystem' '/users/joel/test-gcc/install-svn/arc-elf/sys-include' '-g' '-O2' '-O2' '-g' '-O2' '-DIN_GCC' '-DCROSS_DIRECTORY_STRUCTURE' '-W' '-Wall' '-Wwrite-strings' '-Wcast-qual' '-Wstrict-prototypes' '-Wmissing-prototypes' '-Wold-style-definition' '-isystem' './include' '-g' '-DIN_LIBGCC2' '-D__GCC_FLOAT_NOT_NEEDED' '-Dinhibit_libc' '-I.' '-I.' '-I../.././gcc' '-I../../../gcc-svn/libgcc' '-I../../../gcc-svn/libgcc/.' '-I../../../gcc-svn/libgcc/../gcc' '-I../../../gcc-svn/libgcc/../include' '-DHAVE_CC_TLS' '-o' '_ffsdi2.o' '-MT' '_ffsdi2.o' '-MD' '-MP' '-MF' '_ffsdi2.dep' '-DL_ffsdi2' '-c' '-v'
 /users/joel/test-gcc/b-arc-gcc/./gcc/cc1 -quiet -nostdinc -v -I. -I. -I../.././gcc -I../../../gcc-svn/libgcc -I../../../gcc-svn/libgcc/. -I../../../gcc-svn/libgcc/../gcc -I../../../gcc-svn/libgcc/../include -iprefix /users/joel/test-gcc/b-arc-gcc/gcc/../lib/gcc/arc-elf/4.5.0/ -isystem /users/joel/test-gcc/b-arc-gcc/./gcc/include -isystem /users/joel/test-gcc/b-arc-gcc/./gcc/include-fixed -MD _ffsdi2.d -MF _ffsdi2.dep -MP -MT _ffsdi2.o -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -DHAVE_CC_TLS -DL_ffsdi2 -isystem /users/joel/test-gcc/b-arc-gcc/arc-elf/newlib/targ-include -isystem /users/joel/test-gcc/gcc-svn/newlib/libc/include -isystem /users/joel/test-gcc/install-svn/arc-elf/include -isystem /users/joel/test-gcc/install-svn/arc-elf/sys-include -isystem ./include ../../../gcc-svn/libgcc/../gcc/libgcc2.c -quiet -dumpbase libgcc2.c -auxbase-strip _ffsdi2.o -g -g -g -O2 -O2 -O2 -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -version -o /tmp/ccZ3LRRp.s
GNU C (GCC) version 4.5.0 20091016 (experimental) [trunk revision 152901] (arc-elf)
	compiled by GNU C version 4.4.1 20090725 (Red Hat 4.4.1-2), GMP version 4.2.4, MPFR version 2.4.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory "/users/joel/test-gcc/b-arc-gcc/arc-elf/newlib/targ-include"
ignoring nonexistent directory "/users/joel/test-gcc/install-svn/arc-elf/include"
ignoring nonexistent directory "/users/joel/test-gcc/install-svn/arc-elf/sys-include"
ignoring nonexistent directory "./include"
ignoring duplicate directory "."
ignoring duplicate directory "../../../gcc-svn/libgcc/."
#include "..." search starts here:
#include <...> search starts here:
 .
 ../.././gcc
 ../../../gcc-svn/libgcc
 ../../../gcc-svn/libgcc/../gcc
 ../../../gcc-svn/libgcc/../include
 /users/joel/test-gcc/b-arc-gcc/./gcc/include
 /users/joel/test-gcc/b-arc-gcc/./gcc/include-fixed
 /users/joel/test-gcc/gcc-svn/newlib/libc/include
End of search list.
GNU C (GCC) version 4.5.0 20091016 (experimental) [trunk revision 152901] (arc-elf)
	compiled by GNU C version 4.4.1 20090725 (Red Hat 4.4.1-2), GMP version 4.2.4, MPFR version 2.4.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 44316a04b67955d8cfc9abfe8e173788
../../../gcc-svn/libgcc/../gcc/libgcc2.c: In function ‘__ffsdi2’:
../../../gcc-svn/libgcc/../gcc/libgcc2.c:547:1: error: unrecognizable insn:
(insn 10 48 11 11 ../../../gcc-svn/libgcc/../gcc/libgcc2.c:545 (set (reg:SI 107 [ prephitmp.20 ])
        (const_int -16 [0xfffffffffffffff0])) -1 (nil))
../../../gcc-svn/libgcc/../gcc/libgcc2.c:547:1: internal compiler error: in extract_insn, at recog.c:2091
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
[joel@rtbf64a libgcc]$
Comment 1 Joel Sherrill 2009-10-19 01:00:40 UTC
4.4.1 also fails but at recog.c:2048
Comment 2 Joel Sherrill 2009-10-19 01:10:16 UTC
4.3.4 fails at recog.c:2001
Comment 3 Richard Biener 2009-10-19 10:55:08 UTC
Target seems broken.
Comment 4 Joel Sherrill 2009-10-19 21:39:43 UTC
../../gcc-4.1.2/gcc/libgcc2.c:1702: internal compiler error: in extract_insn, at recog.c:2084

../../gcc-4.2.4/gcc/libgcc2.c:747: internal compiler error: in extract_insn, at recog.c:2077

Comment 5 Joel Sherrill 2009-10-19 21:46:31 UTC
../../gcc-3.4.6/gcc/libgcc2.c:1475: internal compiler error: in extract_insn, at recog.c:2083
Comment 6 Joseph S. Myers 2011-03-22 20:21:56 UTC
ARC support has been removed for GCC 4.7.