Skip to content

[3.14] gh-142342: Fix m68k assembler operand constraints for %fpcr access (gh-142343) - #142458

Merged
colesbury merged 1 commit into
python:3.14from
miss-islington:backport-02c085d-3.14
Dec 9, 2025
Merged

[3.14] gh-142342: Fix m68k assembler operand constraints for %fpcr access (gh-142343)#142458
colesbury merged 1 commit into
python:3.14from
miss-islington:backport-02c085d-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

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 02c085d)

Co-authored-by: John Paul Adrian Glaubitz glaubitz@physik.fu-berlin.de
Co-authored-by: Michael Karcher github@mkarcher.dialup.fu-berlin.de

…ccess (pythongh-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.
(cherry picked from commit 02c085d)

Co-authored-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Co-authored-by: Michael Karcher <github@mkarcher.dialup.fu-berlin.de>
@colesbury
colesbury enabled auto-merge (squash) December 9, 2025 13:49
@colesbury
colesbury merged commit 43f696d into python:3.14 Dec 9, 2025
49 checks passed
@miss-islington
miss-islington deleted the backport-02c085d-3.14 branch January 2, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants