gcc/Changelog
authorcbaylis <cbaylis@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Sep 2015 15:24:54 +0000 (15:24 +0000)
committercbaylis <cbaylis@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Sep 2015 15:24:54 +0000 (15:24 +0000)
        * 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

gcc/ChangeLog
gcc/cgraphunit.c

index 8ae96fe..77fb2c1 100644 (file)
@@ -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
index be16f5d..278515d 100644 (file)
@@ -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);