aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-08-25 15:59:08 +0000
committerRichard Guenther <rguenther@suse.de>2009-08-25 15:59:08 +0000
commit6ca8420fc2c223406284bae5dba6f821b538b5f8 (patch)
tree45d14d3c2990870f53240ae51e4ffe3223994a11
parentb40d7d6eb3a041458787da3be529432ca777728f (diff)
2009-08-25 Richard Guenther <rguenther@suse.de>
* tree-eh.c (inlinable_call_p): Assume calls might be inlined when building with -flto or -fwhopr. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151083 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog.lto5
-rw-r--r--gcc/tree-eh.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog.lto b/gcc/ChangeLog.lto
index 440d143bcfd..5008d718c61 100644
--- a/gcc/ChangeLog.lto
+++ b/gcc/ChangeLog.lto
@@ -1,3 +1,8 @@
+2009-08-25 Richard Guenther <rguenther@suse.de>
+
+ * tree-eh.c (inlinable_call_p): Assume calls might be inlined
+ when building with -flto or -fwhopr.
+
2009-08-24 Richard Guenther <rguenther@suse.de>
PR lto/41079
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c
index b8972063c9d..c9c37c58d72 100644
--- a/gcc/tree-eh.c
+++ b/gcc/tree-eh.c
@@ -1995,6 +1995,9 @@ inlinable_call_p (gimple stmt)
decl = gimple_call_fndecl (stmt);
if (!decl)
return true;
+ /* The function body might become available during link time. */
+ if (flag_lto || flag_whopr)
+ return true;
if (cgraph_function_flags_ready
&& cgraph_function_body_availability (cgraph_node (decl))
< AVAIL_OVERWRITABLE)