]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fixed libffi on PPC without __NO_FPRS__
authorChristian Heimes <christian@cheimes.de>
Wed, 19 Jun 2013 00:40:38 +0000 (02:40 +0200)
committerChristian Heimes <christian@cheimes.de>
Wed, 19 Jun 2013 00:40:38 +0000 (02:40 +0200)
ISO C90 forbids mixed declarations and code

Modules/_ctypes/libffi/src/powerpc/ffi.c

index 54f2731b6bcec5323de5d39530cc57cef195eee9..5381d3d10d229c6237fcfa65bb851d3d9243450c 100644 (file)
@@ -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);