re PR target/79971 (ICE in const_binop, at fold-const.c:1554 on ARM target with satur...
authorRichard Biener <rguenther@suse.de>
Thu, 9 Mar 2017 13:20:50 +0000 (13:20 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 9 Mar 2017 13:20:50 +0000 (13:20 +0000)
commit16967aff7a209389283280a17ef08f2fe206fed3
tree0fb1cda8b2c5fab8da11d73209f3aefa3d5399b4
parent26d7dc48b628d0fa16f2a1660b23602821c748f9
re PR target/79971 (ICE in const_binop, at fold-const.c:1554 on ARM target with saturated integers)

2017-03-09  Richard Biener  <rguenther@suse.de>

PR middle-end/79971
* gimple-expr.c (useless_type_conversion_p): Preserve
TYPE_SATURATING for fixed-point types.

* gcc.dg/fixed-point/pr79971.c: New testcase.

From-SVN: r246002
gcc/ChangeLog
gcc/gimple-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fixed-point/pr79971.c [new file with mode: 0644]