re PR target/12865 (`mprotect' call to make trampoline executable may fail)
authorWaldek Hebisch <hebisch@math.uni.wroc.pl>
Mon, 10 Nov 2003 08:11:47 +0000 (09:11 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 10 Nov 2003 08:11:47 +0000 (08:11 +0000)
commit1ec0c6076c33fa776614e7efb44f0d0cafa85d51
tree330f8625ffee6edd1608675f088c55cb673ef0d6
parent9883226bc5ab8572dd3960acbbbb8506ff20f24f
re PR target/12865 (`mprotect' call to make trampoline executable may fail)

PR target/12865
* config/sparc/sparc.c (sparc_initialize_trampoline): Call
__enable_execute_stack only after writing onto the stack.
(sparc64_initialize_trampoline): Likewise.

From-SVN: r73402
gcc/ChangeLog
gcc/config/sparc/sparc.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/trampoline-1.c [new file with mode: 0644]