http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59595
Bug ID: 59595 Summary: Segmentation fault: build/genpreds -c ../../gcc/gcc/config/arm/arm.md > tmp-constrs.h Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Host: armv5tejl-unknown-linux-gnueabi Target: armv5tejl-unknown-linux-gnueabi Build: armv5tejl-unknown-linux-gnueabi In stage2, the following segementation fault occurs: build/genpreds -c ../../gcc/gcc/config/arm/arm.md > tmp-constrs.h /bin/sh: line 1: 25814 Segmentation fault build/genpreds -c ../../gcc/gcc/config/arm/arm.md > tmp-constrs.h make[3]: *** [s-constrs-h] Error 139 make[3]: Leaving directory `/home/dave/gnu/gcc/objdir/gcc' Here is backtrace: (gdb) set args -c ../../gcc/gcc/config/arm/arm.md > tmp-constrs.h (gdb) r Starting program: /home/dave/gnu/gcc/objdir/gcc/build/genpreds -c ../../gcc/gcc/config/arm/arm.md > tmp-constrs.h Program received signal SIGSEGV, Segmentation fault. needs_variable (exp=exp@entry=0x0, var=var@entry=0x19dc4 "ival") at ../../gcc/gcc/genpreds.c:169 169 switch (GET_CODE (exp)) (gdb) p exp $1 = (rtx) 0x0 (gdb) bt #0 needs_variable (exp=exp@entry=0x0, var=var@entry=0x19dc4 "ival") at ../../gcc/gcc/genpreds.c:169 #1 0x00009050 in write_tm_constrs_h () at ../../gcc/gcc/genpreds.c:1051 #2 main (argc=<optimized out>, argv=<optimized out>) at ../../gcc/gcc/genpreds.c:1400 Last successful build was r203629.