From b94bb6f96f475efcdb24c64fe36a4ec22bf18cdf Mon Sep 17 00:00:00 2001 From: Alex Rønne Petersen Date: Sun, 8 Dec 2024 14:47:00 +0100 Subject: std.Target: Remove our broken support for the ancient and obsolete Arm OABI. NetBSD has long since migrated to the EABI and doesn't officially support the OABI anymore. The ABI selection logic in LLVM only actually picks OABI for NetBSD as a last resort if the EABI isn't selected. That fallback is likely to be removed in the future. So just remove this support in Zig entirely. While here, I also removed some leftover 32-bit Arm and 32-bit x86 code for Apple targets, which are long dead and unsupported by Zig. --- lib/std/builtin.zig | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/std/builtin.zig') diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index 52fe2c5e23..5ddde66a0a 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -220,7 +220,7 @@ pub const CallingConvention = union(enum(u8)) { }; /// Deprecated; use `.x86_thiscall`. pub const Thiscall: CallingConvention = .{ .x86_thiscall = .{} }; - /// Deprecated; use `.arm_apcs`. + /// Deprecated; do not use. pub const APCS: CallingConvention = .{ .arm_apcs = .{} }; /// Deprecated; use `.arm_aapcs`. pub const AAPCS: CallingConvention = .{ .arm_aapcs = .{} }; @@ -284,13 +284,14 @@ pub const CallingConvention = union(enum(u8)) { aarch64_vfabi_sve: CommonOptions, // Calling convetions for the `arm`, `armeb`, `thumb`, and `thumbeb` architectures. - /// ARM Procedure Call Standard (obsolete) - arm_apcs: CommonOptions, + /// Deprecated; do not use. + arm_apcs: CommonOptions, // Removal of `arm_apcs` is blocked by #21842. /// ARM Architecture Procedure Call Standard arm_aapcs: CommonOptions, /// ARM Architecture Procedure Call Standard Vector Floating-Point arm_aapcs_vfp: CommonOptions, - arm_aapcs16_vfp: CommonOptions, + /// Deprecated; do not use. + arm_aapcs16_vfp: CommonOptions, // Removal of `arm_aapcs16_vfp` is blocked by #21842. arm_interrupt: ArmInterruptOptions, // Calling conventions for the `mips64` and `mips64el` architectures. -- cgit v1.2.3