* tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Nov 2013 09:12:43 +0000 (09:12 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Nov 2013 09:12:43 +0000 (09:12 +0000)
could throw.

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

gcc/ChangeLog
gcc/tree-ssa-tail-merge.c

index 9dab8af..03e590b 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
+       could throw.
+
 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
 
        PR target/53976
index 35b8bbe..2e1df69 100644 (file)
@@ -309,6 +309,7 @@ stmt_local_def (gimple stmt)
   def_operand_p def_p;
 
   if (gimple_has_side_effects (stmt)
+      || stmt_could_throw_p (stmt)
       || gimple_vdef (stmt) != NULL_TREE)
     return false;