]> gcc.gnu.org Git - gcc.git/commitdiff
struct-ret-3.c: Adjust testcase to make stack readable and writable again before...
authorRichard Guenther <rguenther@suse.de>
Sun, 13 Jan 2008 19:50:04 +0000 (19:50 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sun, 13 Jan 2008 19:50:04 +0000 (19:50 +0000)
2008-01-13  Richard Guenther  <rguenther@suse.de>

        * gcc.dg/struct-ret-3.c: Adjust testcase to make stack
        readable and writable again before exiting.

From-SVN: r131509

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/struct-ret-3.c

index 521407af5acf5e7af2165868fc2535099f9fd86d..7909ad9ecd612113c433090e6cfd494e63dc6e0c 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-13  Richard Guenther  <rguenther@suse.de>
+
+       * gcc.dg/struct-ret-3.c: Adjust testcase to make stack
+       readable and writable again before exiting.
+
 2008-01-13  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/34601
index edb259ccec03e47e25a0118ca8f2c9629834548e..4a603cbe681f12fceb156becc9e5e4c6f60d1ee8 100644 (file)
@@ -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;
 }
This page took 0.140468 seconds and 5 git commands to generate.