aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2015-12-03 05:13:33 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2015-12-03 04:13:33 +0000
commit89bbe9ba36dfcf71ab9e5d85c447f3511e7f8d97 (patch)
tree9674e64e768786b317980cd760a40e8197f495dc /gcc/cgraphunit.c
parenteaa728e3a23192ecce0a3b9c731f47e778cd9592 (diff)
downloadgcc-89bbe9ba36dfcf71ab9e5d85c447f3511e7f8d97.zip
gcc-89bbe9ba36dfcf71ab9e5d85c447f3511e7f8d97.tar.gz
gcc-89bbe9ba36dfcf71ab9e5d85c447f3511e7f8d97.tar.bz2
re PR c++/68184 (Exception from a virtual function does not get caught)
PR ipa/68184 * g++.dg/torture/pr68184.C: New testcase. * cgraphunit.c (cgraph_node::analyze): Set can_throw_external. From-SVN: r231217
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 4ce5f9b..4ab6414 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -575,6 +575,7 @@ cgraph_node::analyze (void)
cgraph_node *t = cgraph_node::get (thunk.alias);
create_edge (t, NULL, 0, CGRAPH_FREQ_BASE);
+ callees->can_throw_external = !TREE_NOTHROW (t->decl);
/* Target code in expand_thunk may need the thunk's target
to be analyzed, so recurse here. */
if (!t->analyzed)