Skip to content

Commit 6763d26

Browse files
authored
GH-126910: reserve FP on AArch64 when generating JIT stencils (GH-146520)
1 parent f89fafe commit 6763d26

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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

Tools/jit/_targets.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,9 @@ def get_target(host: str) -> _COFF32 | _COFF64 | _ELF | _MachO:
593593
# -mno-outline-atomics: Keep intrinsics from being emitted.
594594
args = ["-fpic", "-mno-outline-atomics", "-fno-plt"]
595595
optimizer = _optimizers.OptimizerAArch64
596-
target = _ELF(host, condition, args=args, optimizer=optimizer)
596+
target = _ELF(
597+
host, condition, args=args, optimizer=optimizer, frame_pointers=True
598+
)
597599
elif re.fullmatch(r"i686-pc-windows-msvc", host):
598600
host = "i686-pc-windows-msvc"
599601
condition = "defined(_M_IX86)"

0 commit comments

Comments
 (0)