Commit e0f10da270

Alex Rønne Petersen <alex@alexrp.com>
2025-10-14 09:47:29
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 dd78192
Changed files (1)
lib
lib/std/debug.zig
@@ -886,6 +886,8 @@ const StackIterator = union(enum) {
         .powerpcle,
         .powerpc64,
         .powerpc64le,
+        .sparc,
+        .sparc64,
         => .ideal,
         // https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms#Respect-the-purpose-of-specific-CPU-registers
         .aarch64 => if (builtin.target.os.tag.isDarwin()) .safe else .unsafe,