@@ -1498,6 +1498,7 @@ cgraph_decide_inlining (void)
&& node->callers->caller != node
&& node->callers->caller->global.inlined_to != node
&& !node->callers->call_stmt_cannot_inline_p
+ && tree_can_inline_p (node->callers)
&& !DECL_EXTERNAL (node->decl))
{
cgraph_inline_failed_t reason;
@@ -0,0 +1,19 @@
+/* PR tree-optimization/48063 */
+/* { dg-do compile } */
+/* { dg-options "-fno-early-inlining" } */
+
+extern void abort (void);
+static void bar ();
+
+void
+foo ()
+{
+ bar (1);
+}
+
+static void
+bar (double i)
+{
+ if (i)
+ abort ();
+}