Re: [PATCH] Use do_ubsan_in_current_function more

2015-03-09 Thread Marek Polacek
On Mon, Mar 09, 2015 at 12:48:56PM +0100, Jakub Jelinek wrote: > > --- gcc/cp/cp-ubsan.c > > +++ gcc/cp/cp-ubsan.c > > @@ -63,9 +63,7 @@ cp_ubsan_instrument_vptr_p (tree type) > >if (!flag_rtti || flag_sanitize_undefined_trap_on_error) > > return false; > > > > - if (current_function_de

Re: [PATCH] Use do_ubsan_in_current_function more

2015-03-09 Thread Jakub Jelinek
On Mon, Mar 09, 2015 at 12:35:54PM +0100, Marek Polacek wrote: > I noticed that we can use the do_ubsan_in_current_function wrapper more, which > allows us to simplify the code a bit further. > > Ran ubsan testsuite on x86_64-linux, ok for trunk? > > 2015-03-09 Marek Polacek > > * c-con