On Tue, Jul 15, 2014 at 01:01:10PM +0200, Marek Polacek wrote:
> We were missing a check that the TYPE_MAX_VALUE is not NULL.
> If it is, we ICE later when gimplifying the UBSAN_BOUNDS call arguments.
> 
> Bootstrapped/regtested on x86_64-linux, ok for trunk?

Ok, thanks.
> 
> 2014-07-15  Marek Polacek  <pola...@redhat.com>
> 
>       * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
>       TYPE_MAX_VALUE is NULL.
> 
>       * gcc.dg/ubsan/bounds-1.c: New test.

        Jakub

Reply via email to