authorgravatar for rbino@gmx.comRiccardo Binetti <rbino@gmx.com> 2022-07-06 22:20:31+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-06 21:02:30-04:00
log0101a5f75e825c4eb099107f9fcec4941c077bea
treefce5d1775a33d056901bfe9953ff7bc816a51668
parentf3069f51aa0e395ce9de60a2876c37042b2a1a35

Sema: accept thumb and thumbeb with ARM calling conventions

Commit 3014a0d5f1dcbcfdcec3852ffd54f3c589fe3e83 added calling convention validation, but left out thumb and thumbeb from the archs that can use the ARM-specific calling conventions. This plus a8a7f15106abef7c647d4de572a04b77ce048dd6 made compilation fail for thumb targets.

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

src/Sema.zig+1-1
......@@ -7161,7 +7161,7 @@ fn funcCommon(
71617161 else => @as([]const u8, "i386 and AArch64"),
71627162 },
71637163 .APCS, .AAPCS, .AAPCSVFP => switch (arch) {
7164 .arm, .armeb, .aarch64, .aarch64_be, .aarch64_32 => null,
7164 .arm, .armeb, .aarch64, .aarch64_be, .aarch64_32, .thumb, .thumbeb => null,
71657165 else => @as([]const u8, "ARM"),
71667166 },
71677167 .SysV, .Win64 => switch (arch) {