[Bug tree-optimization/38844] [4.3/4.4 Regression] deadlock with __attribute__((always_inline)) at -O1 and above

hjl dot tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jan 15 22:38:00 GMT 2009



------- Comment #6 from hjl dot tools at gmail dot com  2009-01-15 22:38 -------
This patch:

--- ./ipa-inline.c.foo  2009-01-02 11:06:18.000000000 -0800
+++ ./ipa-inline.c      2009-01-15 14:35:28.000000000 -0800
@@ -1412,7 +1412,8 @@ cgraph_decide_inlining_incrementally (st
            }
          continue;
        }
-      inlined |= try_inline (e, mode, depth);
+      if (e->inline_failed)
+       inlined |= try_inline (e, mode, depth);
     }

   /* Now do the automatic inlining.  */

works for me. But I don't know if it is correct.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38844



More information about the Gcc-bugs mailing list