re PR middle-end/50189 (Wrong code error in -O2 [-fstrict-enums] compile, target...
authorPaul Koning <pkoning@gcc.gnu.org>
Wed, 12 Oct 2011 15:16:14 +0000 (11:16 -0400)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 12 Oct 2011 15:16:14 +0000 (15:16 +0000)
commitebbcd0c6ea5d565ffa743079449e9ad6169fcf4e
tree3ffba0dcaa6b493eae88e206b1ecc248b9a7f350
parent7e19152238f44ead7b8fc2dea1c73ba845fb2d9b
re PR middle-end/50189 (Wrong code error in -O2 [-fstrict-enums] compile, target independent)

2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>

PR tree-optimization/50189
* tree-vrp.c (extract_range_from_assert): Use the type of
the variable, not the limit.

* g++.dg/torture/pr50189.C: New testcase.

From-SVN: r179857
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr50189.C [new file with mode: 0644]
gcc/tree-vrp.c