summaryrefslogtreecommitdiffstats
path: root/Modules/_ctypes/libffi
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-06-19 00:43:19 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-06-19 00:43:19 (GMT)
commit262e7f389ca5381fd00938f0c38050c8eab55273 (patch)
tree9f395751d1f3a182eeaa54bebf646e31cbfb34fb /Modules/_ctypes/libffi
parentdceec13dfb88c28b33e8cf4de875f710e909b3e8 (diff)
parent2f13f546e647214bbe70d88494c59fbe44d1a40d (diff)
downloadcpython-262e7f389ca5381fd00938f0c38050c8eab55273.zip
cpython-262e7f389ca5381fd00938f0c38050c8eab55273.tar.gz
cpython-262e7f389ca5381fd00938f0c38050c8eab55273.tar.bz2
fixed libffi on PPC without __NO_FPRS__
ISO C90 forbids mixed declarations and code
Diffstat (limited to 'Modules/_ctypes/libffi')
-rw-r--r--Modules/_ctypes/libffi/src/powerpc/ffi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/_ctypes/libffi/src/powerpc/ffi.c b/Modules/_ctypes/libffi/src/powerpc/ffi.c
index 54f2731..5381d3d 100644
--- a/Modules/_ctypes/libffi/src/powerpc/ffi.c
+++ b/Modules/_ctypes/libffi/src/powerpc/ffi.c
@@ -146,12 +146,14 @@ ffi_prep_args_SYSV (extended_cif *ecif, unsigned *const stack)
} p_argv;
size_t struct_copy_size;
unsigned gprvalue;
+#ifndef __NO_FPRS__
+ double double_tmp;
+#endif
stacktop.c = (char *) stack + bytes;
gpr_base.u = stacktop.u - ASM_NEEDS_REGISTERS - NUM_GPR_ARG_REGISTERS;
intarg_count = 0;
#ifndef __NO_FPRS__
- double double_tmp;
fpr_base.d = gpr_base.d - NUM_FPR_ARG_REGISTERS;
fparg_count = 0;
copy_space.c = ((flags & FLAG_FP_ARGUMENTS) ? fpr_base.c : gpr_base.c);