http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54176
--- Comment #1 from Tommy Thorn <tommy-gccbugs at thorn dot ws> 2012-08-05 03:14:30 UTC --- Looks like the front end is looping (recursively): gdb --args /home/opt/lm32/bin/../lib/gcc/lm32-elf/4.7.1/cc1 -quiet -v -iprefix /home/opt/lm32/bin/../lib64/gcc/lm32-elf/4.7.1/ sieve.c -quiet -dumpbase sieve.c -auxbase sieve -std=c99 -version -o sieve.s ... (gdb) r GNU C (GCC) version 4.7.1 (lm32-elf) compiled by GNU C version 4.6.2, GMP version 5.0.2, MPFR version 3.0.1, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/home/opt/lm32/bin/../lib64/gcc/lm32-elf/4.7.1/../../../../lm32-elf/sys-include" ignoring nonexistent directory "/home/opt/lm32/bin/../lib64/gcc/lm32-elf/4.7.1/../../../../lm32-elf/include" ignoring duplicate directory "/opt/lm32/lib64/gcc/lm32-elf/4.7.1/include" ignoring duplicate directory "/opt/lm32/lib64/gcc/lm32-elf/4.7.1/include-fixed" ignoring nonexistent directory "/opt/lm32/lib64/gcc/lm32-elf/4.7.1/../../../../lm32-elf/sys-include" ignoring nonexistent directory "/opt/lm32/lib64/gcc/lm32-elf/4.7.1/../../../../lm32-elf/include" #include "..." search starts here: #include <...> search starts here: /home/opt/lm32/bin/../lib64/gcc/lm32-elf/4.7.1/include /home/opt/lm32/bin/../lib64/gcc/lm32-elf/4.7.1/include-fixed End of search list. GNU C (GCC) version 4.7.1 (lm32-elf) compiled by GNU C version 4.6.2, GMP version 5.0.2, MPFR version 3.0.1, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 78ab8beae59d165771ba0b05d4300149 Program received signal SIGSEGV, Segmentation fault. build_decl_stat (loc=0, code=VAR_DECL, name=0x0, type=0x7ffff6f6f5e8) at ../../gcc-4.7.1/gcc/tree.c:4069 4069 { (gdb) bt #0 build_decl_stat (loc=0, code=VAR_DECL, name=0x0, type=0x7ffff6f6f5e8) at ../../gcc-4.7.1/gcc/tree.c:4069 #1 0x00000000005a66ce in make_tree (type=0x7ffff6f6f5e8, x=<optimized out>) at ../../gcc-4.7.1/gcc/expmed.c:5069 #2 0x000000000088e32d in force_const_mem (mode=SImode, x=0x7ffff26f50e0) at ../../gcc-4.7.1/gcc/varasm.c:3580 #3 0x00000000005b3116 in emit_move_insn (x=<optimized out>, y=<optimized out>) at ../../gcc-4.7.1/gcc/expr.c:3448 #4 0x000000000059ee9d in force_reg (x=0x7ffff26f50e0, mode=SImode) at ../../gcc-4.7.1/gcc/explow.c:676 #5 force_reg (mode=SImode, x=0x7ffff26f50e0) at ../../gcc-4.7.1/gcc/explow.c:656 #6 0x000000000059f44c in memory_address_addr_space (mode=SImode, x=0x7ffff26f50e0, as=0 '\000') at ../../gcc-4.7.1/gcc/explow.c:505 #7 0x0000000000592955 in change_address_1 (memref=0x7ffff26f7078, mode=SImode, addr=0x7ffff26f50e0, validate=<optimized out>) at ../../gcc-4.7.1/gcc/emit-rtl.c:1998 #8 0x00000000005b3172 in emit_move_insn (x=0x7ffff26f50c0, y=0x7ffff26f7078) at ../../gcc-4.7.1/gcc/expr.c:3471 #9 0x000000000059ee9d in force_reg (x=0x7ffff26f50a0, mode=SImode) at ../../gcc-4.7.1/gcc/explow.c:676 #10 force_reg (mode=SImode, x=0x7ffff26f50a0) at ../../gcc-4.7.1/gcc/explow.c:656 #11 0x000000000059f44c in memory_address_addr_space (mode=SImode, x=0x7ffff26f50a0, as=0 '\000') at ../../gcc-4.7.1/gcc/explow.c:505 #12 0x0000000000592955 in change_address_1 (memref=0x7ffff26f7048, mode=SImode, addr=0x7ffff26f50a0, validate=<optimized out>) at ../../gcc-4.7.1/gcc/emit-rtl.c:1998 #13 0x00000000005b3172 in emit_move_insn (x=0x7ffff26f5080, y=0x7ffff26f7048) at ../../gcc-4.7.1/gcc/expr.c:3471 #14 0x000000000059ee9d in force_reg (x=0x7ffff26f5060, mode=SImode) at ../../gcc-4.7.1/gcc/explow.c:676 #15 force_reg (mode=SImode, x=0x7ffff26f5060) at ../../gcc-4.7.1/gcc/explow.c:656 #16 0x000000000059f44c in memory_address_addr_space (mode=SImode, x=0x7ffff26f5060, as=0 '\000') at ../../gcc-4.7.1/gcc/explow.c:505 #17 0x0000000000592955 in change_address_1 (memref=0x7ffff26f7018, mode=SImode, addr=0x7ffff26f5060, validate=<optimized out>) at ../../gcc-4.7.1/gcc/emit-rtl.c:1998 #18 0x00000000005b3172 in emit_move_insn (x=0x7ffff26f5040, y=0x7ffff26f7018) at ../../gcc-4.7.1/gcc/expr.c:3471 #19 0x000000000059ee9d in force_reg (x=0x7ffff26f5020, mode=SImode) at ../../gcc-4.7.1/gcc/explow.c:676 .... goes on indefinitely (> 8000 entries).