aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-11-26 14:39:25 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-11-26 14:39:25 +0000
commit41c8e948dd25f710e7d5f49cd37170d9b3af942d (patch)
tree5545f8c3830394eceabea43ea3005d5d47cc7826 /gcc/cgraph.c
parent8395b41e9e5476e0e18f377d2f7f649a14a0c69c (diff)
downloadgcc-41c8e948dd25f710e7d5f49cd37170d9b3af942d.zip
gcc-41c8e948dd25f710e7d5f49cd37170d9b3af942d.tar.gz
gcc-41c8e948dd25f710e7d5f49cd37170d9b3af942d.tar.bz2
re PR tree-optimization/46560 (libstdc++ execute FAILs with -flto)
2010-11-26 Richard Guenther <rguenther@suse.de> PR lto/46560 * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent flags manually. From-SVN: r167178
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 36bb87a..a53e168 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -2121,6 +2121,9 @@ cgraph_clone_edge (struct cgraph_edge *e, struct cgraph_node *n,
new_edge->inline_failed = e->inline_failed;
new_edge->indirect_inlining_edge = e->indirect_inlining_edge;
new_edge->lto_stmt_uid = stmt_uid;
+ /* Clone flags that depend on call_stmt availability manually. */
+ new_edge->can_throw_external = e->can_throw_external;
+ new_edge->call_stmt_cannot_inline_p = e->call_stmt_cannot_inline_p;
if (update_original)
{
e->count -= new_edge->count;