Can you capture a core and get a backtrace with gdb? And test with -O0 to see if the SEGV goes away? I have encountered a segfaulting null-pointer-reference optimizer bug in fold_stmt_1(), which I haven't filed yet (the testcase is almost 80K lines and probably not something I can post publicly as-is) but have worked around. (Patch at https://github.com/mkedwards/crosstool-ng/blob/master/patches/gcc/linaro-4.6-bzr/1008-handle-statement-removal.patch)
Can you capture a core and get a backtrace with gdb? And test with -O0 to see if the SEGV goes away? I have encountered a segfaulting null-pointer- reference optimizer bug in fold_stmt_1(), which I haven't filed yet (the testcase is almost 80K lines and probably not something I can post publicly as-is) but have worked around. (Patch at https:/ /github. com/mkedwards/ crosstool- ng/blob/ master/ patches/ gcc/linaro- 4.6-bzr/ 1008-handle- statement- removal. patch)