On mipsel-linux: j.i: ------------------ typedef unsigned int UQItype __attribute__ ((mode (QI))); typedef unsigned int USItype __attribute__ ((mode (SI)));
extern const UQItype __popcount_tab[256]; extern int __popcountsi2 (USItype); int __popcountsi2 (USItype x) { int i, ret = 0; for (i = 0; i < (4 * 8); i += 8) ret += __popcount_tab[(x >> i) & 0xff]; return ret; } ------------------ $ /home/ddaney/gccsvn/trunk-build/./gcc/xgcc -B/home/ddaney/gccsvn/trunk-build/./gcc/ -B/home/ddaney/gccsvn/trunk-install/mipsel-linux/bin/ -B/home/ddaney/gccsvn/trunk-install/mipsel-linux/lib/ -isystem /home/ddaney/gccsvn/trunk-install/mipsel-linux/include -isystem /home/ddaney/gccsvn/trunk-install/mipsel-linux/sys-include -g -O2 -minterlink-mips16 -O2 -g -O2 -minterlink-mips16 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../.././gcc -I../../../trunk/libgcc -I../../../trunk/libgcc/. -I../../../trunk/libgcc/../gcc -I../../../trunk/libgcc/../include -DHAVE_CC_TLS -o _popcountsi2.o -MT _popcountsi2.o -MD -MP -MF _popcountsi2.dep -DL_popcountsi2 -c j.i -fvisibility=hidden -DHIDE_EXPORTS -v Results in: Reading specs from /home/ddaney/gccsvn/trunk-build/./gcc/specs Target: mipsel-linux Configured with: ../trunk/configure --prefix=/home/ddaney/gccsvn/trunk-install --target=mipsel-linux --build=mipsel-linux --host=mipsel-linux --with-gmp=/home/ddaney/mp --with-mpfr=/home/ddaney/mp --with-arch=sb1 --disable-java-awt --without-x --enable-__cxa_atexit --enable-languages=all Thread model: posix gcc version 4.4.0 20080903 (experimental) [trunk revision 139940] (GCC) COLLECT_GCC_OPTIONS='-B/home/ddaney/gccsvn/trunk-build/./gcc/' '-B/home/ddaney/gccsvn/trunk-install/mipsel-linux/bin/' '-B/home/ddaney/gccsvn/trunk-install/mipsel-linux/lib/' '-isystem' '/home/ddaney/gccsvn/trunk-install/mipsel-linux/include' '-isystem' '/home/ddaney/gccsvn/trunk-install/mipsel-linux/sys-include' '-g' '-O2' '-O2' '-g' '-O2' '-minterlink-mips16' '-DIN_GCC' '-W' '-Wall' '-Wwrite-strings' '-Wstrict-prototypes' '-Wmissing-prototypes' '-Wcast-qual' '-Wold-style-definition' '-isystem' './include' '-fPIC' '-g' '-DHAVE_GTHR_DEFAULT' '-DIN_LIBGCC2' '-D__GCC_FLOAT_NOT_NEEDED' '-I.' '-I.' '-I../.././gcc' '-I../../../trunk/libgcc' '-I../../../trunk/libgcc/.' '-I../../../trunk/libgcc/../gcc' '-I../../../trunk/libgcc/../include' '-DHAVE_CC_TLS' '-o' '_popcountsi2.o' '-MT' '_popcountsi2.o' '-MD' '-MP' '-MF' '_popcountsi2.dep' '-DL_popcountsi2' '-c' '-fvisibility=hidden' '-DHIDE_EXPORTS' '-v' '-march=sb1' '-mllsc' /home/ddaney/gccsvn/trunk-build/./gcc/cc1 -fpreprocessed j.i -quiet -dumpbase j.i -minterlink-mips16 -march=sb1 -mllsc -auxbase-strip _popcountsi2.o -g -g -g -O2 -O2 -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -version -fPIC -fvisibility=hidden -o /tmp/cc0RAQ3s.s GNU C (GCC) version 4.4.0 20080903 (experimental) [trunk revision 139940] (mipsel-linux) compiled by GNU C version 4.4.0 20080223 (experimental) [trunk revision 132568], GMP version 4.2.1, MPFR version 2.3.0. GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 18865570e64c6f21ee7ff913cce9298a j.i: In function '__popcountsi2': j.i:16: internal compiler error: in max_issue, at haifa-sched.c:2074 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -- Summary: ICE in haifa-sched.c when compiling __popcountsi2 from libgcc Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: daney at gcc dot gnu dot org GCC build triplet: mipsel-linux GCC host triplet: mipsel-linux GCC target triplet: mipsel-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37360