aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2011-03-11 11:04:30 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2011-03-11 11:04:30 +0100
commite89e03ab8ad601244c1206d8fe3b5874b8d59c91 (patch)
treec7fdf17d81506cf4c706569185532f21539f6f9b /gcc/ipa-inline.c
parentefbe978b7a12cc1e7ece68b6a4cee7ab3d434cc3 (diff)
downloadgcc-e89e03ab8ad601244c1206d8fe3b5874b8d59c91.zip
gcc-e89e03ab8ad601244c1206d8fe3b5874b8d59c91.tar.gz
gcc-e89e03ab8ad601244c1206d8fe3b5874b8d59c91.tar.bz2
re PR tree-optimization/48063 (ICE: verify_stmts failed: conversion of register to a different size with -fno-early-inlining)
PR tree-optimization/48063 * ipa-inline.c (cgraph_decide_inlining): Don't try to inline functions called once if !tree_can_inline_p (node->callers). * gcc.dg/torture/pr48063.c: New test. From-SVN: r170867
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r--gcc/ipa-inline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index e8676c8..7ae5f96 100644
--- a/gcc/ipa-inline.c
+++ b/gcc/ipa-inline.c
@@ -1,5 +1,5 @@
/* Inlining decision heuristics.
- Copyright (C) 2003, 2004, 2007, 2008, 2009, 2010
+ Copyright (C) 2003, 2004, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
Contributed by Jan Hubicka
@@ -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;