OSDN Git Service

2011-03-21 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Mar 2011 13:50:26 +0000 (13:50 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Mar 2011 13:50:26 +0000 (13:50 +0000)
PR middle-end/47661
* gimple.c (is_gimple_condexpr): Use tree_could_throw_p.

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

gcc/ChangeLog
gcc/gimple.c

index 5562ba9..cd4bca4 100644 (file)
@@ -1,5 +1,10 @@
 2011-03-21  Richard Guenther  <rguenther@suse.de>
 
+       PR middle-end/47661
+       * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
+
+2011-03-21  Richard Guenther  <rguenther@suse.de>
+
        PR lto/48210
        * params.def (lto-partitions): Require at least 1 partition.
 
index e686e63..81607d9 100644 (file)
@@ -2581,7 +2581,7 @@ bool
 is_gimple_condexpr (tree t)
 {
   return (is_gimple_val (t) || (COMPARISON_CLASS_P (t)
-                               && !tree_could_trap_p (t)
+                               && !tree_could_throw_p (t)
                                && is_gimple_val (TREE_OPERAND (t, 0))
                                && is_gimple_val (TREE_OPERAND (t, 1))));
 }