diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 521407af5ac..7909ad9ecd6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-01-13 Richard Guenther + + * gcc.dg/struct-ret-3.c: Adjust testcase to make stack + readable and writable again before exiting. + 2008-01-13 Richard Guenther PR middle-end/34601 diff --git a/gcc/testsuite/gcc.dg/struct-ret-3.c b/gcc/testsuite/gcc.dg/struct-ret-3.c index edb259ccec0..4a603cbe681 100644 --- a/gcc/testsuite/gcc.dg/struct-ret-3.c +++ b/gcc/testsuite/gcc.dg/struct-ret-3.c @@ -90,5 +90,9 @@ int main(void) u->dp.pDictRidderInfo = &u->di; Initialize(&u->o, 0); + mprotect(u->c1, 4096, PROT_READ|PROT_WRITE); + mprotect(u->c2, 4096, PROT_READ|PROT_WRITE); + mprotect(u->c3, 4096, PROT_READ|PROT_WRITE); + return 0; }