http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46034
--- Comment #8 from Zdenek Sojka <zsojka at seznam dot cz> 2010-10-27 22:59:53 UTC --- Created attachment 22186 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22186 reduced testcase Needs only "-O -fexpensive-optimizations" to reproduce Relevant valgrind output: $ gcc -O -fexpensive-optimizations testcase2.c ==10818== ==10818== Stack overflow in thread 1: can't grow stack to 0x7fe801fd8 ==10818== Can't extend stack to 0x7fe801450 during signal delivery for thread 1: ==10818== no stack segment ==10818== ==10818== Process terminating with default action of signal 11 (SIGSEGV) ==10818== Access not within mapped region at address 0x7FE801450 ==10818== at 0xF1C9BB: if_then_else_cond (combine.c:8504) ==10818== If you believe this happened as a result of a stack ==10818== overflow in your program's main thread (unlikely but ==10818== possible), you can try to increase the size of the ==10818== main thread stack using the --main-stacksize= flag. ==10818== The main thread stack size used in this run was 8388608. ==10818== Stack overflow in thread 1: can't grow stack to 0x7fe801f50 gcc: internal compiler error: Segmentation fault (program cc1) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r165985 - crash r163636 - crash r161659 - OK