https://github.com/python/cpython/commit/6763d26b2ba583292140ecca274585c22e61ba33
commit: 6763d26b2ba583292140ecca274585c22e61ba33
branch: main
author: Diego Russo <[email protected]>
committer: Fidget-Spinner <[email protected]>
date: 2026-03-28T01:51:51+08:00
summary:

GH-126910: reserve FP on AArch64 when generating JIT stencils (GH-146520)

files:
A 
Misc/NEWS.d/next/Core_and_Builtins/2026-03-27-17-14-18.gh-issue-126910.hooVFQ.rst
M Tools/jit/_targets.py

diff --git 
a/Misc/NEWS.d/next/Core_and_Builtins/2026-03-27-17-14-18.gh-issue-126910.hooVFQ.rst
 
b/Misc/NEWS.d/next/Core_and_Builtins/2026-03-27-17-14-18.gh-issue-126910.hooVFQ.rst
new file mode 100644
index 00000000000000..e3ddf39408804b
--- /dev/null
+++ 
b/Misc/NEWS.d/next/Core_and_Builtins/2026-03-27-17-14-18.gh-issue-126910.hooVFQ.rst
@@ -0,0 +1 @@
+Set frame pointers in ``aarch64-unknown-linux-gnu`` JIT code, allowing most 
native profilers and debuggers to unwind through them. Patch by Diego Russo
diff --git a/Tools/jit/_targets.py b/Tools/jit/_targets.py
index fa98dcb5a40851..ad2d5b3c780d54 100644
--- a/Tools/jit/_targets.py
+++ b/Tools/jit/_targets.py
@@ -593,7 +593,9 @@ def get_target(host: str) -> _COFF32 | _COFF64 | _ELF | 
_MachO:
         # -mno-outline-atomics: Keep intrinsics from being emitted.
         args = ["-fpic", "-mno-outline-atomics", "-fno-plt"]
         optimizer = _optimizers.OptimizerAArch64
-        target = _ELF(host, condition, args=args, optimizer=optimizer)
+        target = _ELF(
+            host, condition, args=args, optimizer=optimizer, 
frame_pointers=True
+        )
     elif re.fullmatch(r"i686-pc-windows-msvc", host):
         host = "i686-pc-windows-msvc"
         condition = "defined(_M_IX86)"

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to