OSDN Git Service

* Makefile.in (calls.o): Depend on except.h.
[pf3gnuchains/gcc-fork.git] / gcc / cp / optimize.c
index d461b0d..2c1c15d 100644 (file)
@@ -259,6 +259,9 @@ maybe_clone_body (tree fn)
       /* Clean up.  */
       splay_tree_delete (decl_map);
 
+      /* The clone can throw iff the original function can throw.  */
+      cp_function_chain->can_throw = !TREE_NOTHROW (fn);
+
       /* Now, expand this function into RTL, if appropriate.  */
       finish_function (0);
       BLOCK_ABSTRACT_ORIGIN (DECL_INITIAL (clone)) = DECL_INITIAL (fn);