I get an ICE when compiling net/core/dev.o from the linux kernel 2.6.11.6, this does not happen if I remove the "-Os" option or when compiling for ARM (not thumb)
The dev.i file is 510K, how do I upload it ? output : Reading specs from /cygdrive/c/gccarm/lib/gcc/arm-elf/3.4.0/specs Configured with: /cygdrive/c/Projects/PreProjects/uclinux/2_6/tools/gcc-3.4.0/configure --host=i386-pc-cygwin32 --target=arm-elf --prefix=/cygdrive/c/gccarm --enable-languages=c --enable-multilib --enable-target-optspace --with-gnu-ld --disable-nls --with-float=soft --disable-__cxa_atexit --disable-c99 --disable-clocale --disable-c-mbchar --disable-long-long --enable-threads=posix --enable-cxx-flags=-D_ISOC99_SOURCE -D_BSD_SOURCE Thread model: posix gcc version 3.4.0 /cygdrive/c/gccarm/libexec/gcc/arm-elf/3.4.0/cc1.exe -E -quiet -nostdinc -v -Iinclude -D__ARM_ARCH_4T__ -D__USES_INITFINI__ -D__KERNEL__ -D__linux__ -D__LINUX_ARM_ARCH__=4 -Uarm -DKBUILD_BASENAME=dev -DKBUILD_MODNAME=dev -isystem /cygdrive/c/gccarm/lib/gcc/arm-elf/3.4.0/include -MD net/core/.dev.o.d net/core/dev.c -mapcs -mno-sched-prolog -mbig-endian -mapcs-32 -march=armv4t -mtune=arm7tdmi -malignment-traps -msoft-float -mthumb -mthumb-interwork -Wall -Wstrict-prototypes -Wno-trigraphs -Wdeclaration-after-statement -fno-strict-aliasing -fno-common -ffreestanding -fno-omit-frame-pointer -fno-builtin -fno-omit-frame-pointer -Os -o dev.i #include "..." search starts here: #include <...> search starts here: include /cygdrive/c/gccarm/lib/gcc/arm-elf/3.4.0/include End of search list. /cygdrive/c/gccarm/libexec/gcc/arm-elf/3.4.0/cc1.exe -fpreprocessed dev.i -quiet -dumpbase dev.c -mapcs -mno-sched-prolog -mbig-endian -mapcs-32 -march=armv4t -mtune=arm7tdmi -malignment-traps -msoft-float -mthumb -mthumb-interwork -auxbase-strip net/core/dev.o -Os -Wall -Wstrict-prototypes -Wno-trigraphs -Wdeclaration-after-statement -version -fno-strict-aliasing -fno-common -ffreestanding -fno-omit-frame-pointer -fno-builtin -fno-omit-frame-pointer -o dev.s GNU C version 3.4.0 (arm-elf) compiled by GNU C version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125). GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64430 net/core/dev.c: In function `dev_ifsioc': net/core/dev.c:2344: warning: comparison of distinct pointer types lacks a cast net/core/dev.c:2365: warning: comparison of distinct pointer types lacks a cast net/core/dev.c: In function `dev_alloc_name': net/core/dev.c:719: internal compiler error: in fixup_var_refs_1, at function.c:1867 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. Command line : arm-elf-gcc -Wp,-MD,net/core/.dev.o.d -nostdinc -isystem /cygdrive/c/gccarm/lib/gcc/arm-elf/3.4.0/include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -fno-omit-frame-pointer -fno-builtin -D__linux__ -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mbig-endian -mapcs-32 -D__LINUX_ARM_ARCH__=4 -march=armv4t -mtune=arm7tdmi -malignment-traps -msoft-float -Uarm -mthumb -mthumb-interwork -Wdeclaration-after-statement -DKBUILD_BASENAME=dev -DKBUILD_MODNAME=dev -c -o net/core/dev.o net/core/dev.c -Os -v -save-temp -- Summary: internal compiler error: in fixup_var_refs_1 Product: gcc Version: 3.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: orenskl at lipman dot co dot il GCC build triplet: i386-pc-cygwin32 GCC host triplet: i386-pc-cygwin32 GCC target triplet: arm-elf-gcc http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26616