Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2f13f54

Browse files
committed
fixed libffi on PPC without __NO_FPRS__
ISO C90 forbids mixed declarations and code
1 parent d9a52f2 commit 2f13f54

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • Modules/_ctypes/libffi/src/powerpc

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,14 @@ ffi_prep_args_SYSV (extended_cif *ecif, unsigned *const stack)
146146
} p_argv;
147147
size_t struct_copy_size;
148148
unsigned gprvalue;
149+
#ifndef __NO_FPRS__
150+
double double_tmp;
151+
#endif
149152

150153
stacktop.c = (char *) stack + bytes;
151154
gpr_base.u = stacktop.u - ASM_NEEDS_REGISTERS - NUM_GPR_ARG_REGISTERS;
152155
intarg_count = 0;
153156
#ifndef __NO_FPRS__
154-
double double_tmp;
155157
fpr_base.d = gpr_base.d - NUM_FPR_ARG_REGISTERS;
156158
fparg_count = 0;
157159
copy_space.c = ((flags & FLAG_FP_ARGUMENTS) ? fpr_base.c : gpr_base.c);

0 commit comments

Comments
 (0)