]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2010-11-26 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Nov 2010 14:39:25 +0000 (14:39 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Nov 2010 14:39:25 +0000 (14:39 +0000)
PR lto/46560
* cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
flags manually.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167178 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cgraph.c

index 26694ac4d3e7fcc033bc8d12f604379cff030f6b..e64e927d3742b1a31008009b662b7dcc3bfef1a9 100644 (file)
@@ -1,3 +1,9 @@
+2010-11-26  Richard Guenther  <rguenther@suse.de>
+
+       PR lto/46560
+       * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
+       flags manually.
+
 2010-11-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
 
        * config/s390/s390.c (print_operand_address): Replace assert with
index 36bb87ad928810cdc31528c8c589225edb92b811..a53e1684d253e6fb16913d10ba57c251b6ab5244 100644 (file)
@@ -2121,6 +2121,9 @@ cgraph_clone_edge (struct cgraph_edge *e, struct cgraph_node *n,
   new_edge->inline_failed = e->inline_failed;
   new_edge->indirect_inlining_edge = e->indirect_inlining_edge;
   new_edge->lto_stmt_uid = stmt_uid;
+  /* Clone flags that depend on call_stmt availability manually.  */
+  new_edge->can_throw_external = e->can_throw_external;
+  new_edge->call_stmt_cannot_inline_p = e->call_stmt_cannot_inline_p;
   if (update_original)
     {
       e->count -= new_edge->count;