re PR bootstrap/26998 (bootstrap failure building libdecnumber, ICE in compare_values...
authorRichard Guenther <rguenther@suse.de>
Fri, 9 Jun 2006 12:39:11 +0000 (12:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 9 Jun 2006 12:39:11 +0000 (12:39 +0000)
commit96b2034b6f238a906676c4d0cc2c6fda5678e8fd
tree8f2366195492eca232eb1a6d8a000c1d7b4d5757
parente336f7f2ecb868f9713d0aa74c85e197c5113629
re PR bootstrap/26998 (bootstrap failure building libdecnumber, ICE in compare_values, tree-vrp.c:432)

2006-06-09  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/26998
* tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
of signed types, only TYPE_MIN_VALUE is special, but for both,
minimum and maximum value.  Likewise VR_ANTI_RANGE is special
in this case, as is -fwrapv.

* gcc.dg/torture/pr26998.c: New testcase.
* gcc.dg/tree-ssa/vrp29.c: New testcase.

From-SVN: r114507
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr26998.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/vrp29.c [new file with mode: 0644]
gcc/tree-vrp.c