diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-12-08 14:47:00 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-12-09 10:47:18 +0100 |
| commit | b94bb6f96f475efcdb24c64fe36a4ec22bf18cdf (patch) | |
| tree | 5f4dbcd0e64510204de85de0479db4b988f183bf /lib/std/builtin.zig | |
| parent | 7cd2c1ce8770ccd3bb5a9d9c79baf4d0013ab0c8 (diff) | |
| download | zig-b94bb6f96f475efcdb24c64fe36a4ec22bf18cdf.tar.gz zig-b94bb6f96f475efcdb24c64fe36a4ec22bf18cdf.zip | |
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.
Diffstat (limited to 'lib/std/builtin.zig')
| -rw-r--r-- | lib/std/builtin.zig | 9 |
1 files changed, 5 insertions, 4 deletions
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. |
