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.
This commit is contained in:
Alex Rønne Petersen 2025-10-14 09:47:29 +02:00
parent dd7819220a
commit e0f10da270
No known key found for this signature in database

View File

@ -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,