diff options
| author | Riccardo Binetti <rbino@gmx.com> | 2022-07-06 22:20:31 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-07-06 21:02:30 -0400 |
| commit | 0101a5f75e825c4eb099107f9fcec4941c077bea (patch) | |
| tree | fce5d1775a33d056901bfe9953ff7bc816a51668 /src/Sema.zig | |
| parent | f3069f51aa0e395ce9de60a2876c37042b2a1a35 (diff) | |
| download | zig-0101a5f75e825c4eb099107f9fcec4941c077bea.tar.gz zig-0101a5f75e825c4eb099107f9fcec4941c077bea.zip | |
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.
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index c72a73dd11..a412e288ba 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -7161,7 +7161,7 @@ fn funcCommon( else => @as([]const u8, "i386 and AArch64"), }, .APCS, .AAPCS, .AAPCSVFP => switch (arch) { - .arm, .armeb, .aarch64, .aarch64_be, .aarch64_32 => null, + .arm, .armeb, .aarch64, .aarch64_be, .aarch64_32, .thumb, .thumbeb => null, else => @as([]const u8, "ARM"), }, .SysV, .Win64 => switch (arch) { |
