aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-03-21 13:50:26 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-03-21 13:50:26 +0000
commitf9613c9a91946240237660e37e1079d3b6467160 (patch)
tree2d16c39238856901ca231ed6745a5d5a3f019cc1 /gcc/gimple.c
parent9bfbc1ebb51cbfdd8f5743ef786154ae7440d673 (diff)
downloadgcc-f9613c9a91946240237660e37e1079d3b6467160.zip
gcc-f9613c9a91946240237660e37e1079d3b6467160.tar.gz
gcc-f9613c9a91946240237660e37e1079d3b6467160.tar.bz2
re PR middle-end/47661 (predict is confused by FP comparisons when math can trap)
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
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r--gcc/gimple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c
index e686e63..81607d9 100644
--- a/gcc/gimple.c
+++ b/gcc/gimple.c
@@ -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))));
}