Skip to content

Commit eba6d0f

Browse files
committed
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 parent cc3c0e2 commit eba6d0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/std/debug.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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,

0 commit comments

Comments
 (0)