re PR tree-optimization/57331 (ICE: tree check: expected integer_type or enumeral_typ...
authorJakub Jelinek <jakub@redhat.com>
Tue, 21 May 2013 15:17:31 +0000 (17:17 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 21 May 2013 15:17:31 +0000 (17:17 +0200)
commita4ce12589d1442367da66cc16658fdeef2c0420f
treed47ff968d7466a7eaeb156f5bd570935376bfd20
parentf3e4f44cb2d0964726a3f07601dcc6bded23e37c
re PR tree-optimization/57331 (ICE: tree check: expected integer_type or enumeral_type or boolean_type or real_type or fixed_point_type, have pointer_type in int_fits_type_p, at tree.c:8437)

PR tree-optimization/57331
* tree-vrp.c (simplify_cond_using_ranges): Don't optimize
comparison of conversion from pointer type to integral type
with integer.

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

From-SVN: r199148
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr57331.c [new file with mode: 0644]
gcc/tree-vrp.c