| author | |
| committer | |
| log | 27775f1a9eecc6142834affb524eadd33b9e56b7 |
| tree | a435efb643f82390944f30c627ced253a143ba47 |
| parent | 4ba9a6f44c07ac4501766704f39c2d749b01d8da |
| signature |
It is impossible to even build projects like glibc when targeting a generic
SPARC v8 CPU; LEON3 is effectively considered the baseline for `sparc-linux-gnu`
now, particularly due to it supporting a CASA instruction similar to the one in
SPARC v9. However, it's slightly incompatible with SPARC v9 due to having a
different ASI tag, so resulting binaries would not be portable to regular SPARC
CPUs. So, as the least bad option, make v9 the baseline for sparc32.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/Target.zig+1-1| ... | ... | @@ -1502,7 +1502,7 @@ pub const Cpu = struct { |
| 1502 | 1502 | .x86 => &x86.cpu.pentium4, |
| 1503 | 1503 | .nvptx, .nvptx64 => &nvptx.cpu.sm_20, |
| 1504 | 1504 | .s390x => &s390x.cpu.arch8, |
| 1505 | .sparc => &sparc.cpu.v8, | |
| 1505 | .sparc => &sparc.cpu.v9, // glibc does not work with 'plain' v8. | |
| 1506 | 1506 | .loongarch64 => &loongarch.cpu.loongarch64, |
| 1507 | 1507 | |
| 1508 | 1508 | else => generic(arch), |