diff options
author | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-16 17:28:29 +0000 |
---|---|---|
committer | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-16 17:28:29 +0000 |
commit | 87f6899d4953e94ea7e596fbde989c2f067978b8 (patch) | |
tree | fb31771e8e90adc0d0bac7cd8e41b63517c914df /libffi/testsuite | |
parent | 957d66f3d5c6b658ff41bac6f597a66f12f7744a (diff) | |
download | gcc-87f6899d4953e94ea7e596fbde989c2f067978b8.tar.gz |
2009-06-16 Andreas Tobler <a.tobler@schweiz.org>
PR libffi/40444
* testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
allow_stack_execute for Darwin.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148542 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/testsuite')
-rw-r--r-- | libffi/testsuite/lib/libffi-dg.exp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libffi/testsuite/lib/libffi-dg.exp b/libffi/testsuite/lib/libffi-dg.exp index 5ec6c4dc76b..8db38c286a8 100644 --- a/libffi/testsuite/lib/libffi-dg.exp +++ b/libffi/testsuite/lib/libffi-dg.exp @@ -187,6 +187,13 @@ proc libffi_target_compile { source dest type options } { lappend options "additional_flags=-I${libffi_include} -I${srcdir}/../include -I${libffi_include}/.." lappend options "additional_flags=${libffi_link_flags}" + # Darwin needs a stack execution allowed flag. + + if { [istarget "*-*-darwin9*"] || [istarget "*-*-darwin1*"] + || [istarget "*-*-darwin2*"] } { + lappend options "additional_flags=-Wl,-allow_stack_execute" + } + # If you're building the compiler with --prefix set to a place # where it's not yet installed, then the linker won't be able to # find the libgcc used by libffi.dylib. We could pass the |