]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-142342: Fix m68k assembler operand constraints for `%fpcr` access (gh-142343)
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Tue, 9 Dec 2025 13:46:40 +0000 (14:46 +0100)
committerGitHub <noreply@github.com>
Tue, 9 Dec 2025 13:46:40 +0000 (13:46 +0000)
commit02c085d48b59c00fb7f4454fb13933e1c2c0b01a
tree70fc47e808bc94cc28af4e78d004aa8960a3f01c
parent4279785b31e2094ee5a00adb5acaeb88cde67b0d
gh-142342: Fix m68k assembler operand constraints for `%fpcr` access (gh-142343)

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.

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