re PR tree-optimization/81227 (ICE in get_single_symbol, at tree-vrp.c:799)
authorRichard Biener <rguenther@suse.de>
Wed, 28 Jun 2017 14:24:00 +0000 (14:24 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 28 Jun 2017 14:24:00 +0000 (14:24 +0000)
commit56a6d474ab255eddf334bd77df014673d4035336
treebe42b439d86c5ccb2693751b78243de1dae4300e
parent00eee3fa2a884e3ab0bcbf6de3a94d4da2b34d4c
re PR tree-optimization/81227 (ICE in get_single_symbol, at tree-vrp.c:799)

2017-06-28  Richard Biener  <rguenther@suse.de>

PR middle-end/81227
* fold-const.c (negate_expr_p): Use TYPE_UNSIGNED, not
TYPE_OVERFLOW_WRAPS.
* match.pd (negate_expr_p): Likewise.
* tree-ssa-reassoc.c (optimize_range_tests_diff): Use
fold_build2, not fold_binary.

* gcc.dg/pr81227.c: New testcase.

From-SVN: r249742
gcc/ChangeLog
gcc/fold-const.c
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr81227.c [new file with mode: 0644]
gcc/tree-ssa-reassoc.c