summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcbaylis <cbaylis@138bc75d-0d04-0410-961f-82ee72b054a4>2015-09-02 15:24:54 +0000
committercbaylis <cbaylis@138bc75d-0d04-0410-961f-82ee72b054a4>2015-09-02 15:24:54 +0000
commit519627d346694305aa677dfeca6ad391714f1f1e (patch)
tree2ea34a4f9c21074d2598669b2c230c38516f8b25
parent429cbefb0c58cec01636c90507e3b5b8211ae4ab (diff)
downloadgcc-519627d346694305aa677dfeca6ad391714f1f1e.tar.gz
gcc/Changelog
* cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external in new callgraph edge. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227407 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cgraphunit.c1
2 files changed, 6 insertions, 0 deletions
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 <charles.baylis@linaro.org>
+
+ * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
+ in new callgraph edge.
+
2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
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);