authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-14 09:47:29+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-15 13:59:17+02:00
loge0f10da2703fa4a1390c9daf91c0997270920c4a
tree363016c4a04fca3f01241445d7114b65a2035a03
parentdd7819220af9f4eead99bc8fbd969c98323b8258
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.debug: FP-based unwinding is ideal on SPARC

The way SPARC works due to its ABI built around register windows means that we can always do fast FP-based unwinding.

1 files changed, 2 insertions(+), 0 deletions(-)

lib/std/debug.zig+2
......@@ -886,6 +886,8 @@ const StackIterator = union(enum) {
886886 .powerpcle,
887887 .powerpc64,
888888 .powerpc64le,
889 .sparc,
890 .sparc64,
889891 => .ideal,
890892 // https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms#Respect-the-purpose-of-specific-CPU-registers
891893 .aarch64 => if (builtin.target.os.tag.isDarwin()) .safe else .unsafe,