zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit ea987faa85ea57db89167a220853e0c0936c7d43 (tree)
parent e26b64a87dd4170a46aec317e958ee617bc26e8d
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Thu, 17 Oct 2024 02:03:02 +0200

std.Target: Use explicit baseline CPU models for bpf, m68k, msp430, and xcore.

This makes no difference presently, but if LLVM ever starts modeling features
for these, we would not get them by default for our baseline if we use the
generic model.

Diffstat:
Mlib/std/Target.zig | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/std/Target.zig b/lib/std/Target.zig @@ -1856,12 +1856,15 @@ pub const Cpu = struct { else => generic(arch), }, .avr => &avr.cpu.avr2, + .bpfel, .bpfeb => &bpf.cpu.v1, .csky => &csky.cpu.ck810, // gcc/clang do not have a generic csky model. .hexagon => &hexagon.cpu.hexagonv60, // gcc/clang do not have a generic hexagon model. .lanai => &lanai.cpu.v11, // clang does not have a generic lanai model. .loongarch64 => &loongarch.cpu.loongarch64, + .m68k => &m68k.cpu.M68000, .mips, .mipsel => &mips.cpu.mips32r2, .mips64, .mips64el => &mips.cpu.mips64r2, + .msp430 => &msp430.cpu.msp430, .nvptx, .nvptx64 => &nvptx.cpu.sm_52, .powerpc64le => &powerpc.cpu.ppc64le, .riscv32 => &riscv.cpu.baseline_rv32, @@ -1869,6 +1872,7 @@ pub const Cpu = struct { .s390x => &s390x.cpu.arch8, // gcc/clang do not have a generic s390x model. .sparc => &sparc.cpu.v9, // glibc does not work with 'plain' v8. .x86 => &x86.cpu.pentium4, + .xcore => &xcore.cpu.xs1b_generic, else => generic(arch), };