aboutsummaryrefslogtreecommitdiff
path: root/libffi/testsuite/lib
diff options
context:
space:
mode:
authorAndreas Tobler <a.tobler@schweiz.org>2009-06-16 17:28:29 +0000
committerAndreas Tobler <andreast@gcc.gnu.org>2009-06-16 19:28:29 +0200
commit7bbcc28642a8821ad5a5281ac914d49184a8af21 (patch)
treefb31771e8e90adc0d0bac7cd8e41b63517c914df /libffi/testsuite/lib
parent95228603e6ae188e6cd6dfa23326e5d4744dc736 (diff)
downloadgcc-7bbcc28642a8821ad5a5281ac914d49184a8af21.zip
gcc-7bbcc28642a8821ad5a5281ac914d49184a8af21.tar.gz
gcc-7bbcc28642a8821ad5a5281ac914d49184a8af21.tar.bz2
re PR libffi/40444 (libffi badly broken with -m64 by some revision between 148383 and 148472.)
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. From-SVN: r148542
Diffstat (limited to 'libffi/testsuite/lib')
-rw-r--r--libffi/testsuite/lib/libffi-dg.exp7
1 files changed, 7 insertions, 0 deletions
diff --git a/libffi/testsuite/lib/libffi-dg.exp b/libffi/testsuite/lib/libffi-dg.exp
index 5ec6c4d..8db38c2 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