gcc (GCC) 4.1.2 crashed when I enabled optimization i.e. gcc -O2 mandel.c . This bug is reproducible on x64_64 platform too. Reproducible: Always Steps to Reproduce: Compilation of my source file with enabled optimizations. gcc -O2 mandel.c Actual Results: mandel.c: In function 'mandel': mandel.c:23: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /tmp/ccAjeqR9.out file, please attach this to your bugreport. Expected Results: Gcc should compile this file normally.
Reopen once you've attached the sample code to reproduce this, the preprocessed source and emerge --info output.
Created attachment 136778 [details] Original source file that produces the error.
Created attachment 136780 [details] Preprocessed source output from gcc.
Created attachment 136782 [details] emerge --info
Attached source, preprocessed source and emerge --info
Created attachment 137295 [details] mandel.i reduced test case
Fixed in gcc-4.3.