Index: src/ffitest.c
===================================================================
RCS file: /cvs/gcc/gcc/libffi/src/ffitest.c,v
retrieving revision 1.9
diff -u -p -r1.9 ffitest.c
--- src/ffitest.c 6 Dec 2002 01:16:45 -0000 1.9
+++ src/ffitest.c 28 Dec 2002 16:44:23 -0000
@@ -1044,7 +1044,9 @@ int main(/*@unused@*/ int argc, /*@unuse
# if FFI_CLOSURES
/* A simple closure test */
{
- ffi_closure cl;
+ /* The closure must not be an automatic variable on
+ platforms (Solaris) that forbid stack execution by default. */
+ static ffi_closure cl;
ffi_type * cl_arg_types[3];
Hm, powerpc-unknown-linux-gnu doesn't like the static: