aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-loop-interchange.cc
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@marvell.com>2021-06-27 13:14:48 -0700
committerAndrew Pinski <apinski@marvell.com>2021-06-27 16:14:29 -0700
commit37ad257c06d88fdb810be336d212c1ab54b99dad (patch)
tree6258d2870778902595f9fca7b943dbb082181443 /gcc/gimple-loop-interchange.cc
parent3966726333b2a4cf54333549c8331d833364266e (diff)
downloadgcc-37ad257c06d88fdb810be336d212c1ab54b99dad.zip
gcc-37ad257c06d88fdb810be336d212c1ab54b99dad.tar.gz
gcc-37ad257c06d88fdb810be336d212c1ab54b99dad.tar.bz2
Fix PR 101230: ICE in fold_cond_expr_with_comparison
This fixes PR 101230 where I had messed up and forgot that invert_tree_comparison can return ERROR_MARK if the comparsion is not invertable (floating point types). Committed as obvious after a bootstrap/test on x86_64-linux-gnu-gnu gcc/ChangeLog: PR middle-end/101230 * fold-const.c (fold_ternary_loc): Check the return value of invert_tree_comparison. gcc/testsuite/ChangeLog: * gcc.dg/torture/pr101230-1.c: New test.
Diffstat (limited to 'gcc/gimple-loop-interchange.cc')
0 files changed, 0 insertions, 0 deletions