http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56916
Bug #: 56916 Summary: ICE when building libgfortran for arm-none-eabi Classification: Unclassified Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: ktkac...@gcc.gnu.org CC: rguent...@suse.de Target: arm-none-eabi With r197671 gcc ICEs while building libgfortran $SOURCE/gcc/libgfortran/generated/matmul_i8.c: In function 'matmul_i8': $SOURCE/gcc/libgfortran/generated/matmul_i8.c:374:1: internal compiler error: Segmentation fault } ^ 0x8f1a85 crash_signal 0x8a1c88 rtx_cost(rtx_def*, rtx_code, int, bool) $SOURCE/gcc/gcc/rtlanal.c:3805 0xd4220d set_src_cost $SOURCE/gcc/gcc/rtl.h:1368 0xd4220d doloop_optimize $SOURCE/gcc/gcc/loop-doloop.c:662 0xd4220d doloop_optimize_loops() $SOURCE/gcc/gcc/loop-doloop.c:764 0x7e3b37 rtl_doloop $SOURCE/gcc/gcc/loop-init.c:543 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. Weirdly, when I execute the ICEing command on itself it ICEs, but when I add -save-temps it doesn't and the resulting .i file compiles without error $SOURCE/build/obj/gcc2/./gcc/xgcc -B$SOURCE/build/obj/gcc2/./gcc/ -B$SOURCE/build/install/arm-none-eabi/bin/ -B$SOURCE/build/install/arm-none-eabi/lib/ -isystem $SOURCE/build/install/arm-none-eabi/include -isystem $SOURCE/build/install/arm-none-eabi/sys-include -DHAVE_CONFIG_H -I. -I$SOURCE/gcc/libgfortran -iquote$SOURCE/gcc/libgfortran/io -I$SOURCE/gcc/libgfortran/../gcc -I$SOURCE/gcc/libgfortran/../gcc/config -I../.././gcc -I$SOURCE/gcc/libgfortran/../libgcc -I../libgcc -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -ffunction-sections -fdata-sections -ftree-vectorize -funroll-loops -O2 -g -MT matmul_i8.lo -MD -MP -MF .deps/matmul_i8.Tpo -c $SOURCE/gcc/libgfortran/generated/matmul_i8.c -o matmul_i8.o Cross compiler configuration: --with-fpu=neon-vfpv4 --with-float=hard --with-arch=armv7-a --with-language=c,c++,fortran