cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external in new callgraph...
authorCharles Baylis <charles.baylis@linaro.org>
Wed, 2 Sep 2015 15:24:54 +0000 (15:24 +0000)
committerCharles Baylis <cbaylis@gcc.gnu.org>
Wed, 2 Sep 2015 15:24:54 +0000 (15:24 +0000)
gcc/Changelog

        * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
        in new callgraph edge.

From-SVN: r227407

gcc/ChangeLog
gcc/cgraphunit.c

index 8ae96fe9d29ab35e8f22d2bb7b7bf617b3f82af4..77fb2c11084673dae59419ec8ef11f28f1a43492 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 be16f5d0d0455db094dff15095e58b5b02ed4c88..278515da09684895a7969b3d6c2fabd2583f1f6f 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);