https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111
Bug ID: 62111 Summary: ICE when building Linux kernel for sh64 Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: dhowells at redhat dot com Created attachment 33303 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33303&action=edit Reduced preprocessed source When trying to build the kernel with an sh64 cross-compiler, I get the following error: sh64-linux-gnu-gcc -Wp,-MD,arch/sh/kernel/.setup.o.d -nostdinc -isystem /usr/lib/gcc/sh64-linux-elf/4.9.1/include -I../arch/sh/include -Iarch/sh/include/generated -I../include -Iinclude -I../arch/sh/include/uapi -Iarch/sh/include/generated/uapi -I../include/uapi -Iinclude/generated/uapi -include ../include/linux/kconfig.h -I../arch/sh/kernel -Iarch/sh/kernel -D__KERNEL__ -m5-64media-nofpu -ml -Wa,-isa=shmedia -ffreestanding -I../arch/sh/include/cpu-sh5 -Iarch/sh/include/cpu-sh5 -I../arch/sh/include/cpu-common -Iarch/sh/include/cpu-common -I../arch/sh/include/mach-common -Iarch/sh/include/mach-common -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -pipe -m5-64media-nofpu -ml -Wa,-isa=shmedia -ffreestanding -I../arch/sh/include/cpu-sh5 -Iarch/sh/include/cpu-sh5 -I../arch/sh/include/cpu-common -Iarch/sh/include/cpu-common -I../arch/sh/include/mach-common -Iarch/sh/include/mach-common -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -Werror -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(setup)" -D"KBUILD_MODNAME=KBUILD_STR(setup)" -c -o arch/sh/kernel/setup.o ../arch/sh/kernel/setup.c ../arch/sh/kernel/setup.c: In function 'setup_arch': ../arch/sh/kernel/setup.c:312:1: internal compiler error: in sh_print_operand, at config/sh/sh.c:1359 } ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://bugzilla.redhat.com/bugzilla/> for instructions. {standard input}: Assembler messages: {standard input}:365: Warning: partial line at end of file ignored Preprocessed source stored into /tmp/ccQ2JuUO.out file, please attach this to your bugreport. A reduced version of the preprocessed source is attached