Skip to content

Commit 826e1c3

Browse files
authored
Merge pull request #24013 from alexrp/test-matrix
More target coverage in the module test matrix
2 parents 80170d0 + cbf9d3c commit 826e1c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+743
-5960
lines changed

lib/compiler/aro_translate_c.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ pub const PatternList = struct {
12061206
/// Assumes that `ms` represents a tokenized function-like macro.
12071207
fn buildArgsHash(allocator: mem.Allocator, ms: MacroSlicer, hash: *ArgsPositionMap) MacroProcessingError!void {
12081208
assert(ms.tokens.len > 2);
1209-
assert(ms.tokens[0].id == .identifier or ms.tokens[0].id == .extended_identifier);
1209+
assert(ms.tokens[0].id.isMacroIdentifier());
12101210
assert(ms.tokens[1].id == .l_paren);
12111211

12121212
var i: usize = 2;

lib/compiler_rt.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ comptime {
265265
_ = @import("compiler_rt/ssp.zig");
266266
}
267267

268-
if (!builtin.link_libc and builtin.abi == .msvc) {
268+
if (!builtin.link_libc and builtin.os.tag == .windows and (builtin.abi == .none or builtin.abi == .msvc)) {
269269
@export(&_fltused, .{ .name = "_fltused", .linkage = common.linkage, .visibility = common.visibility });
270270
}
271271
}

lib/compiler_rt/aulldiv.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const common = @import("common.zig");
88
pub const panic = common.panic;
99

1010
comptime {
11-
if (arch == .x86 and os == .windows and (abi == .msvc or abi == .itanium) and !builtin.link_libc) {
11+
if (arch == .x86 and common.want_windows_msvc_or_itanium_abi and !builtin.link_libc) {
1212
// Don't let LLVM apply the stdcall name mangling on those MSVC builtins
1313
@export(&_alldiv, .{ .name = "\x01__alldiv", .linkage = common.linkage, .visibility = common.visibility });
1414
@export(&_aulldiv, .{ .name = "\x01__aulldiv", .linkage = common.linkage, .visibility = common.visibility });

lib/compiler_rt/aullrem.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const common = @import("common.zig");
88
pub const panic = common.panic;
99

1010
comptime {
11-
if (arch == .x86 and os == .windows and (abi == .msvc or abi == .itanium) and !builtin.link_libc) {
11+
if (arch == .x86 and common.want_windows_msvc_or_itanium_abi and !builtin.link_libc) {
1212
// Don't let LLVM apply the stdcall name mangling on those MSVC builtins
1313
@export(&_allrem, .{ .name = "\x01__allrem", .linkage = common.linkage, .visibility = common.visibility });
1414
@export(&_aullrem, .{ .name = "\x01__aullrem", .linkage = common.linkage, .visibility = common.visibility });

lib/compiler_rt/common.zig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ pub const want_aeabi = switch (builtin.abi) {
5252
// Temporarily used for thumb-uefi until https://github.com/ziglang/zig/issues/21630 is addressed.
5353
pub const want_windows_arm_abi = builtin.cpu.arch.isArm() and (builtin.os.tag == .windows or builtin.os.tag == .uefi) and (builtin.abi.isGnu() or !builtin.link_libc);
5454

55+
pub const want_windows_msvc_or_itanium_abi = switch (builtin.abi) {
56+
.none, .msvc, .itanium => builtin.os.tag == .windows,
57+
else => false,
58+
};
59+
5560
pub const want_ppc_abi = builtin.cpu.arch.isPowerPC();
5661

5762
pub const want_float_exceptions = !builtin.cpu.arch.isWasm();

lib/libc/include/riscv32-netbsd-none/float.h

Lines changed: 0 additions & 58 deletions
This file was deleted.

lib/libc/include/riscv32-netbsd-none/machine/ansi.h

Lines changed: 0 additions & 3 deletions
This file was deleted.

lib/libc/include/riscv32-netbsd-none/machine/aout_machdep.h

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)