aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-unswitch.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-11-26 10:07:06 +0100
committerRichard Biener <rguenther@suse.de>2020-12-01 11:38:24 +0100
commit427fe143a43ba13497759e1482ce683deed9a00b (patch)
tree8a7c585044f9195acd075216199c1ced379c9cde /gcc/tree-ssa-loop-unswitch.c
parent46384dc73076d945c9222b3f0850a9aa3e694eda (diff)
downloadgcc-427fe143a43ba13497759e1482ce683deed9a00b.zip
gcc-427fe143a43ba13497759e1482ce683deed9a00b.tar.gz
gcc-427fe143a43ba13497759e1482ce683deed9a00b.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. (cherry picked from commit 5b3a8fad18324cd38c221bdb0ae2b690fc82ede0)
Diffstat (limited to 'gcc/tree-ssa-loop-unswitch.c')
0 files changed, 0 insertions, 0 deletions