mirror of
https://github.com/python/cpython.git
synced 2026-04-15 08:11:10 +00:00
GH-126910: reserve FP on AArch64 when generating JIT stencils (GH-146520)
This commit is contained in:
parent
f89fafed25
commit
6763d26b2b
2 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
@ -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)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue