Re: [PATCH] Don't necessarily emit object size checks for ARRAY_REFs

2014-11-11 Thread Jakub Jelinek
On Thu, Nov 06, 2014 at 11:19:08PM +0100, Marek Polacek wrote: > First part of this patch is about removing the useless check that > we talked about earlier today. > > The rest is about not emitting UBSAN_OBJECT_SIZE checks (those often > come with multiple statements to compute a pointer differen

[PATCH] Don't necessarily emit object size checks for ARRAY_REFs

2014-11-06 Thread Marek Polacek
First part of this patch is about removing the useless check that we talked about earlier today. The rest is about not emitting UBSAN_OBJECT_SIZE checks (those often come with multiple statements to compute a pointer difference) for ARRAY_REFs that are already instrumented by UBSAN_BOUNDS. I do t