re PR middle-end/86122 (ICE in useless_type_conversion_p, at gimple-expr.c:87)
authorJakub Jelinek <jakub@redhat.com>
Thu, 14 Jun 2018 19:07:45 +0000 (21:07 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 14 Jun 2018 19:07:45 +0000 (21:07 +0200)
commit48fcd201c4490f7c2b99f3d76b7bf7070b22733e
treea31ffd58d8ac318589bb25de0447a63c417a5326
parentbc04d1ff62db94aea033829249c8b09f4b7abff1
re PR middle-end/86122 (ICE in useless_type_conversion_p, at gimple-expr.c:87)

PR middle-end/86122
* match.pd ((A +- CST1) +- CST2): Punt if last resort
unsigned_type_for returns NULL.

* gcc.c-torture/compile/pr86122.c: New test.

From-SVN: r261606
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr86122.c [new file with mode: 0644]