re PR middle-end/35400 (-Wtype-limits -O2 causes ICE tree check: expected ssa_name...
authorRichard Guenther <rguenther@suse.de>
Sun, 6 Apr 2008 21:20:49 +0000 (21:20 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sun, 6 Apr 2008 21:20:49 +0000 (21:20 +0000)
commit3633df5a3dba55008be0049598e0377dfa3809ac
treee96c1e164c8e0a70789c96a57a9bd3fd508a3528
parent5dc77808914b3924b156c1960636d7c320cdd4c5
re PR middle-end/35400 (-Wtype-limits -O2 causes ICE tree check: expected ssa_name, have addr_expr in get_value_range, at tree-vrp.c:469)

2008-04-06  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/35400
* tree-vrp.c (vrp_evaluate_conditional): Only query value-range
information from SSA_NAMEs.

* gcc.dg/torture/pr35400.c: New testcase.
* g++.dg/torture/pr35400.C: Likewise.

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