diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-13 20:19:10 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-13 20:19:10 +0000 |
commit | 2abdadc9c3798ea5b2284e8316d4ec97bfc26389 (patch) | |
tree | 27e2c047e94d36cd5a06ec1046776727f1ba5592 /libffi/src/powerpc | |
parent | 4d49054fb522dd08ee87f63c38baa286e6bbb7d0 (diff) | |
download | gcc-2abdadc9c3798ea5b2284e8316d4ec97bfc26389.tar.gz |
2002-05-13 Andreas Tobler <a.tobler@schweiz.ch>
* src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
beginning of function (for older apple cc).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53430 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/src/powerpc')
-rw-r--r-- | libffi/src/powerpc/ffi_darwin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libffi/src/powerpc/ffi_darwin.c b/libffi/src/powerpc/ffi_darwin.c index d80f6bfc6f0..d9182ab741d 100644 --- a/libffi/src/powerpc/ffi_darwin.c +++ b/libffi/src/powerpc/ffi_darwin.c @@ -6,7 +6,7 @@ Darwin ABI support (c) 2001 John Hornkvist AIX ABI support (c) 2002 Free Software Foundation, Inc. - $Id: ffi_darwin.c,v 1.3 2002/02/21 19:14:28 dje Exp $ + $Id: ffi_darwin.c,v 1.4 2002/03/07 18:24:42 dje Exp $ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the @@ -455,6 +455,7 @@ ffi_prep_closure (ffi_closure* closure, { unsigned int *tramp; struct ffi_aix_trampoline_struct *tramp_aix; + aix_fd *fd; switch (cif->abi) { @@ -486,7 +487,7 @@ ffi_prep_closure (ffi_closure* closure, case FFI_AIX: tramp_aix = (struct ffi_aix_trampoline_struct *) (closure->tramp); - aix_fd *fd = (aix_fd *)(void *)ffi_closure_ASM; + fd = (aix_fd *)(void *)ffi_closure_ASM; FFI_ASSERT (cif->abi == FFI_AIX); |