aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-isel.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-11-26 10:07:06 +0100
committerRichard Biener <rguenther@suse.de>2020-11-26 10:07:06 +0100
commit5b3a8fad18324cd38c221bdb0ae2b690fc82ede0 (patch)
tree71fb1f24a37dd52af6396801eb6527a5565ccd2e /gcc/gimple-isel.cc
parentc0c7270cc4efd896fe99f8ad5409dbef089a407f (diff)
downloadgcc-5b3a8fad18324cd38c221bdb0ae2b690fc82ede0.zip
gcc-5b3a8fad18324cd38c221bdb0ae2b690fc82ede0.tar.gz
gcc-5b3a8fad18324cd38c221bdb0ae2b690fc82ede0.tar.bz2
testsuite/98002 - fix gcc.dg/strncmp-2.c
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. 2020-11-16 Richard Biener <rguenther@suse.de> PR testsuite/98002 * gcc.dg/strncmp-2.c: Call mprotect again before free.
Diffstat (limited to 'gcc/gimple-isel.cc')
0 files changed, 0 insertions, 0 deletions