authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-10-15 20:48:30+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-10-19 19:21:32+01:00
logbde68fdebc468a9977f18a3f2ba8b2e69b58bac2
tree91ddd6e7413d8f48b0ccf630ef496d1c3f3aa700
parent1f11eed3d132b5bdad544bf21afa222a8117f257
signaturelock-open Commit is signed but in an unrecognized format.

std.Target: correct C callconv on hardfloat ARM


1 files changed, 7 insertions(+), 1 deletions(-)

lib/std/Target.zig+7-1
...@@ -3048,7 +3048,13 @@ pub fn cCallingConvention(target: Target) ?std.builtin.CallingConvention {...@@ -3048,7 +3048,13 @@ pub fn cCallingConvention(target: Target) ?std.builtin.CallingConvention {
3048 .windows => .{ .aarch64_aapcs_win = .{} },3048 .windows => .{ .aarch64_aapcs_win = .{} },
3049 else => .{ .aarch64_aapcs = .{} },3049 else => .{ .aarch64_aapcs = .{} },
3050 },3050 },
3051 .arm, .armeb, .thumb, .thumbeb => .{ .arm_aapcs = .{} },3051 .arm, .armeb, .thumb, .thumbeb => switch (target.os.tag) {
3052 .netbsd => .{ .arm_apcs = .{} },
3053 else => switch (target.abi.floatAbi()) {
3054 .soft => .{ .arm_aapcs = .{} },
3055 .hard => .{ .arm_aapcs_vfp = .{} },
3056 },
3057 },
3052 .mips64, .mips64el => switch (target.abi) {3058 .mips64, .mips64el => switch (target.abi) {
3053 .gnuabin32 => .{ .mips64_n32 = .{} },3059 .gnuabin32 => .{ .mips64_n32 = .{} },
3054 else => .{ .mips64_n64 = .{} },3060 else => .{ .mips64_n64 = .{} },