http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57268
Bug ID: 57268 Summary: c nested loops hang compiler Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: dhazeghi at yahoo dot com Created attachment 30106 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30106&action=edit testcase The attached testcase causes current gcc trunk to hang on x86_64-unknown-linux-gnu, when compiled at -O2 or higher optimization levels. It compiles successfully with gcc 4.8. I have not succeeded in reducing the testcase to a manageable size. $ gcc-trunk -v gcc-trunk (GCC) 4.9.0 20130513 (experimental) [trunk revision 198822] ... $ gcc-trunk -Os -w test.c $ gcc-4.8 -O2 -w test.c $ gcc-trunk -O2 -w test.c <hangs>