GCC 4.3 compiler revision 121206 goes into infinitive loop while compiling cpu2k6/perlbench source file regcomp.c at -O2 optimization level on x86_64-redhat-linux.
GDB attached to cc1 process, gives the hang point: 0x0000000000711bd8 in solve_graph (graph=0xd37150) at /home/testbot/bootstrap/009454/src/gcc/tree-ssa-structalias.c:1619 1619 if (!TEST_BIT (ti->visited, i) && find (i) == i) You can find the minimal reproducer attached. This regression is caused by "Rewrite of portions of points-to solver" patch http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01541.html revision 120931 http://gcc.gnu.org/viewcvs?view=rev&revision=120931 -- Summary: Trunk GCC hangs while compiling cpu2k6/perlbench at -O2 Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: grigory_zagorodnev at linux dot intel dot com GCC host triplet: x86_64-redhat-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30630