From ce8bdcefc527fdf027c4d65454357d6cf9b73905 Mon Sep 17 00:00:00 2001 From: Charles Baylis Date: Wed, 2 Sep 2015 15:24:54 +0000 Subject: [PATCH] cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external in new callgraph edge. gcc/Changelog * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external in new callgraph edge. From-SVN: r227407 --- gcc/ChangeLog | 5 +++++ gcc/cgraphunit.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8ae96fe9d29..77fb2c11084 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-09-02 Charles Baylis + + * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external + in new callgraph edge. + 2015-09-02 Christophe Lyon PR target/59810 diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index be16f5d0d04..278515da096 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -2543,6 +2543,7 @@ cgraph_node::create_wrapper (cgraph_node *target) memset (&thunk, 0, sizeof (cgraph_thunk_info)); thunk.thunk_p = true; create_edge (target, NULL, count, CGRAPH_FREQ_BASE); + callees->can_throw_external = !TREE_NOTHROW (target->decl); tree arguments = DECL_ARGUMENTS (decl); -- 2.30.2