summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorDiego Russo <diego.russo@arm.com>2023-12-06 15:57:42 (GMT)
committerGitHub <noreply@github.com>2023-12-06 15:57:42 (GMT)
commitb49c963e85f5a82822983c20be93790d71cbc408 (patch)
treec88e778cea8b2a4b4f8dd4501bc679703220ee76 /Misc
parent010819a29552eca7020e497e86c7a0bc28bba46a (diff)
downloadcpython-b49c963e85f5a82822983c20be93790d71cbc408.zip
cpython-b49c963e85f5a82822983c20be93790d71cbc408.tar.gz
cpython-b49c963e85f5a82822983c20be93790d71cbc408.tar.bz2
[3.11] gh-110190: Fix ctypes structs with array on Arm (#112604) (#112766)
Set MAX_STRUCT_SIZE to 32 in stgdict.c when on Arm platforms. This because on Arm platforms structs with at most 4 elements of any floating point type values can be passed through registers. If the type is double the maximum size of the struct is 32 bytes. On x86-64 Linux, it's maximum 16 bytes hence we need to differentiate. (cherry picked from commit bc68f4a4abcfbea60bb1db1ccadb07613561931c)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2023-12-01-18-05-09.gh-issue-110190.5bf-c9.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-12-01-18-05-09.gh-issue-110190.5bf-c9.rst b/Misc/NEWS.d/next/Library/2023-12-01-18-05-09.gh-issue-110190.5bf-c9.rst
new file mode 100644
index 0000000..730b9d4
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-12-01-18-05-09.gh-issue-110190.5bf-c9.rst
@@ -0,0 +1 @@
+Fix ctypes structs with array on Arm platform by setting ``MAX_STRUCT_SIZE`` to 32 in stgdict. Patch by Diego Russo.