Re: [PATCH] ASAN: do not unpoison in OpenMP context

2021-04-12 Thread Jakub Jelinek via Gcc-patches
On Mon, Apr 12, 2021 at 01:21:29PM +0200, Martin Liška wrote: > gcc/ChangeLog: > > PR sanitizer/99877 > * gimplify.c (gimplify_expr): Right now, we unpoison all > variables before a goto . We should not do it if we are > in a omp context. > > gcc/testsuite/ChangeLog: > >

[PATCH] ASAN: do not unpoison in OpenMP context

2021-04-12 Thread Martin Liška
Hello. Right now, we do not allow ASAN poisoning/unpoisoning for auto variables if we are in a gimplify_omp_ctxp context. That's fine, but also need to omit emission of unpoison calls when there's a goto jump pointing from OMP context. Patch can bootstrap on x86_64-linux-gnu and survives regressi