diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c5288a9926c..06988c83c8c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-05-06 Jan Hubicka + + PR tree-optimization/43791 + * ipa-inline.c (update_caller_keys): Remove bogus + disregard_inline_limits check. + 2010-05-06 Michael Matz PR tree-optimization/43984 diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index e18a0cd0ddd..5f9fe102ba1 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -664,7 +664,7 @@ update_caller_keys (fibheap_t heap, struct cgraph_node *node, struct cgraph_edge *edge; cgraph_inline_failed_t failed_reason; - if (!node->local.inlinable || node->local.disregard_inline_limits + if (!node->local.inlinable || node->global.inlined_to) return; if (bitmap_bit_p (updated_nodes, node->uid)) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a51f4db560e..680c4554e4e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-05-06 Jan Hubicka + + PR tree-optimization/43791 + * gcc.c-torture/compile/pr43791.c: New file. + 2010-05-06 Michael Matz PR tree-optimization/43984 diff --git a/gcc/testsuite/gcc.c-torture/compile/pr43791.c b/gcc/testsuite/gcc.c-torture/compile/pr43791.c new file mode 100644 index 00000000000..38cb3c8e00a --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr43791.c @@ -0,0 +1,21 @@ +int owner(); +int clear(); + +static void fixup() { + clear(); +} + +inline __attribute__ ((always_inline)) +void slowtrylock(void) { + if (owner()) + fixup(); +} + +void fasttrylock(void (*slowfn)()) { + slowfn(); +} + +void trylock(void) { + fasttrylock(slowtrylock); +} +