re PR middle-end/47661 (predict is confused by FP comparisons when math can trap)
authorRichard Guenther <rguenther@suse.de>
Mon, 21 Mar 2011 13:50:26 +0000 (13:50 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 21 Mar 2011 13:50:26 +0000 (13:50 +0000)
2011-03-21  Richard Guenther  <rguenther@suse.de>

PR middle-end/47661
* gimple.c (is_gimple_condexpr): Use tree_could_throw_p.

From-SVN: r171236

gcc/ChangeLog
gcc/gimple.c

index 5562ba9c13823cea776c91a87543e5b4770979ac..cd4bca4620056bdd5e764f9b512cf65d3c421040 100644 (file)
@@ -1,3 +1,8 @@
+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
index e686e63c32ae259df4c8b972004b6642857a1853..81607d98b24e74e03b112ac756e67a9452e8a4ee 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))));
 }