]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-142342: Fix m68k assembler operand constraints for `%fpcr` access (gh-14234...
authorSam Gross <colesbury@gmail.com>
Tue, 9 Dec 2025 14:13:35 +0000 (09:13 -0500)
committerGitHub <noreply@github.com>
Tue, 9 Dec 2025 14:13:35 +0000 (14:13 +0000)
commit85f48038aac108e0a2434ae88819a6c94e1ea3af
treee22106eefa60facf0079babab017021b205d9387
parentb57d69588c2ce729332a2905903582301d307306
[3.13] gh-142342: Fix m68k assembler operand constraints for `%fpcr` access (gh-142343) (#142459)

On m68k, an fmove instruction accessing %fpcr may only move from
or to a data register or a memory operand. The constraint "g" also
permits the use of address registers, which is invalid. The correct
constraint is "dm". Beginning with GCC 15, the register allocator
picks an address register in the code which causes SIGILL during
runtime.
(cherry picked from commit 02c085d48b59c00fb7f4454fb13933e1c2c0b01a)

Co-authored-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Co-authored-by: Michael Karcher <github@mkarcher.dialup.fu-berlin.de>
Include/internal/pycore_pymath.h
Misc/NEWS.d/next/Core and Builtins/2025-12-08-13-04-37.gh-issue-142343.BTAyML.rst [new file with mode: 0644]
configure
configure.ac