The mainline and 4.1 fails to bootstrap on sh4-unknown-linux-gnu with stage1/xgcc -Bstage1/ -B/usr/gnu/sh4-unknown-linux-gnu/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I../../LOCAL/trunk/gcc -I../../LOCAL/trunk/gcc/. -I../../LOCAL/trunk/gcc/../include -I../../LOCAL/trunk/gcc/../libcpp/include ../../LOCAL/trunk/gcc/fold-const.c -o fold-const.o ../../LOCAL/trunk/gcc/fold-const.c: In function 'fold_binary': ../../LOCAL/trunk/gcc/fold-const.c:9884: internal compiler error: in refers_to_regno_for_reload_p, at reload.c:6281
Binary search shows that it starts to fail after the patch r107093 | rth | 2005-11-17 02:23:23 +0900 (Thu, 17 Nov 2005) | 13 lines is applied. -- Summary: Bootstrap failure with ICE in refers_to_regno_for_reload_p Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: ice-checking Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kkojima at gcc dot gnu dot org GCC build triplet: sh4-*-linux-gnu GCC host triplet: sh4-*-linux-gnu GCC target triplet: sh4-*-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24982