summaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-14 09:50:48 +0000
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-14 09:50:48 +0000
commitd4dcd97399c07ca46776d882ac7d9449ad55ba10 (patch)
tree20d5054c00534ceba7ddbe5f133d20e85a7f3626 /libffi
parentc73ca4efd79c957717c56a6b506d56c5d9fd2fdc (diff)
downloadgcc-d4dcd97399c07ca46776d882ac7d9449ad55ba10.tar.gz
* src/ffitest.c (main): Only use ffi_closures if those are
supported. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61273 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi')
-rw-r--r--libffi/ChangeLog5
-rw-r--r--libffi/src/ffitest.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog
index 944206fe1cb..97705f1bfdd 100644
--- a/libffi/ChangeLog
+++ b/libffi/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-14 Andreas Jaeger <aj@suse.de>
+
+ * src/ffitest.c (main): Only use ffi_closures if those are
+ supported.
+
2003-01-13 Andreas Tobler <a.tobler@schweiz.ch>
* libffi/src/ffitest.c
diff --git a/libffi/src/ffitest.c b/libffi/src/ffitest.c
index 94643d9ec71..a05b746865d 100644
--- a/libffi/src/ffitest.c
+++ b/libffi/src/ffitest.c
@@ -426,10 +426,12 @@ int main(/*@unused@*/ int argc, /*@unused@*/ char *argv[])
ffi_arg rint;
long long rlonglong;
+# if FFI_CLOSURES
/* The closure must not be an automatic variable on
platforms (Solaris) that forbid stack execution by default. */
static ffi_closure cl;
-
+#endif
+
ffi_type * cl_arg_types[17];
ffi_type ts1_type;