diff options
author | Andrew Pinski <apinski@marvell.com> | 2021-06-27 13:14:48 -0700 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2021-06-27 16:14:29 -0700 |
commit | 37ad257c06d88fdb810be336d212c1ab54b99dad (patch) | |
tree | 6258d2870778902595f9fca7b943dbb082181443 /gcc/gimple-loop-interchange.cc | |
parent | 3966726333b2a4cf54333549c8331d833364266e (diff) | |
download | gcc-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