summaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2013-04-10 09:22:04 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2013-04-10 09:22:04 +0000
commit479b4ace31f14e7625b8eaf60abd09f50ac49247 (patch)
tree72a7d68e142e1cc9ac621e45bb6e3ba5fc93b548 /gcc/ipa-inline.c
parent241f5399090ba2a6508e10f7c721964d5b8f922e (diff)
downloadgcc-479b4ace31f14e7625b8eaf60abd09f50ac49247.tar.gz
2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
* cif-code.def (OVERWRITABLE): Correct the comment for overwritable function. * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the inline fail caused by overwritable functions. * gcc.dg/tree-ssa/inline-11.c: New test git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197667 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r--gcc/ipa-inline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index 90b2a13fce9..171d6a2266c 100644
--- a/gcc/ipa-inline.c
+++ b/gcc/ipa-inline.c
@@ -266,7 +266,7 @@ can_inline_edge_p (struct cgraph_edge *e, bool report)
else if (avail <= AVAIL_OVERWRITABLE)
{
e->inline_failed = CIF_OVERWRITABLE;
- return false;
+ inlinable = false;
}
else if (e->call_stmt_cannot_inline_p)
{