Re: [PATCH] testsuite/98002 - fix gcc.dg/strncmp-2.c

2020-11-26 Thread Jakub Jelinek via Gcc-patches
On Thu, Nov 26, 2020 at 10:09:11AM +0100, Richard Biener wrote: > This makes sure not to free() memory we have mprotected to PROT_NONE > by calling mprotect again with PROT_READ|PROT_WRITE. This avoids > crashing the allocator when in debug mode. > > Tested on x86_64-unknown-linux-gnu. > > OK?

[PATCH] testsuite/98002 - fix gcc.dg/strncmp-2.c

2020-11-26 Thread Richard Biener
This makes sure not to free() memory we have mprotected to PROT_NONE by calling mprotect again with PROT_READ|PROT_WRITE. This avoids crashing the allocator when in debug mode. Tested on x86_64-unknown-linux-gnu. OK? 2020-11-16 Richard Biener PR testsuite/98002 *