From 41c8e948dd25f710e7d5f49cd37170d9b3af942d Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 26 Nov 2010 14:39:25 +0000 Subject: [PATCH] re PR tree-optimization/46560 (libstdc++ execute FAILs with -flto) 2010-11-26 Richard Guenther PR lto/46560 * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent flags manually. From-SVN: r167178 --- gcc/ChangeLog | 6 ++++++ gcc/cgraph.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 26694ac4d3e..e64e927d374 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-11-26 Richard Guenther + + PR lto/46560 + * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent + flags manually. + 2010-11-26 Andreas Krebbel * config/s390/s390.c (print_operand_address): Replace assert with diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 36bb87ad928..a53e1684d25 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;