Skip to content

_Py_get_machine_stack_pointer() does not compile with MinGW on Windows #158165

Closed

Description

@corona10

Bug report

The same bug affects _Py_get_machine_stack_pointer() in Include/internal/pycore_pystate.h: the intrinsic branches are guarded by _M_ARM64/_M_X64 only,
which mingw-w64 also defines, so MinGW toolchains hit MSVC-only intrinsics.

This was originally suggested by @kumaraditya303 in #157253 (comment)

Linked PRs

Activity

  1. self-assigned this
    on Sep 25, 2026
  2. added
    type-bug
    on Sep 25, 2026
  3. added 2 commits that reference this issue on Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

OS-windowstype-bug

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions