2010-07-23 17:08:24 +02:00
|
|
|
Python ticket 6029
|
|
|
|
|
|
|
|
==== //tools/python/2.6.2/src/base/Modules/_ctypes/libffi/src/sparc/ffi.c#1 - /home/build/clifford/gpdb/tools/python/2.6.2/src/base/Modules/_ctypes/libffi/src/sparc/ffi.c ====
|
|
|
|
---
|
|
|
|
Modules/_ctypes/libffi/src/sparc/ffi.c | 5 +++++
|
|
|
|
1 file changed, 5 insertions(+)
|
|
|
|
|
2013-06-03 12:24:54 +02:00
|
|
|
--- a/Modules/_ctypes/libffi/src/sparc/ffi.c
|
|
|
|
+++ b/Modules/_ctypes/libffi/src/sparc/ffi.c
|
|
|
|
@@ -652,6 +652,11 @@
|
2010-07-23 17:08:24 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
+#if FFI_TYPE_LONGDOUBLE != FFI_TYPE_DOUBLE
|
|
|
|
+ /* SparcV9 long double is 16-byte aligned; skip arg if necessary */
|
|
|
|
+ if (arg_types[i]->type == FFI_TYPE_LONGDOUBLE && (argn & 1))
|
|
|
|
+ argn++;
|
|
|
|
+#endif
|
|
|
|
/* Right-justify. */
|
|
|
|
argn += ALIGN(arg_types[i]->size, FFI_SIZEOF_ARG) / FFI_SIZEOF_ARG;
|
|
|
|
|