On 05/21/2013 09:03 AM, Jakub Jelinek wrote:
Hi!

int_fits_type_p ICEs if the second argument is pointer type (those don't
have TYPE_MIN_VALUE/TYPE_MAX_VALUE).  Fixed thusly, bootstrapped/regtested
on x86_64-linux and i686-linux, ok for trunk?

2013-05-21  Jakub Jelinek  <ja...@redhat.com>

        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.
Ok.  Sorry for the breakage.

jeff

Reply via email to