| author | |
| committer | |
| log | 4a1383d987130978bc66ba7cd7172c398684978d |
| tree | 3c0006c5d44bbe699fe33eb9756d0aadb9fb77ef |
| parent | 07b49c61ff8e84751d8a51e9b4d3bd2ffb7797de |
20 files changed, 44 insertions(+), 45 deletions(-)
lib/compiler/reduce.zig+1-1| ... | @@ -292,7 +292,7 @@ fn termToInteresting(term: std.process.Child.Term) Interestingness { | ... | @@ -292,7 +292,7 @@ fn termToInteresting(term: std.process.Child.Term) Interestingness { |
| 292 | return .boring; | 292 | return .boring; |
| 293 | }, | 293 | }, |
| 294 | .stopped => |sig| { | 294 | .stopped => |sig| { |
| 295 | std.debug.print("interestingness check stopped with signal {d}\n", .{sig}); | 295 | std.debug.print("interestingness check stopped with signal {t}\n", .{sig}); |
| 296 | return .boring; | 296 | return .boring; |
| 297 | }, | 297 | }, |
| 298 | .unknown => { | 298 | .unknown => { |
lib/compiler/std-docs.zig+1-1| ... | @@ -425,7 +425,7 @@ fn buildWasmBinary( | ... | @@ -425,7 +425,7 @@ fn buildWasmBinary( |
| 425 | }, | 425 | }, |
| 426 | .stopped => |sig| { | 426 | .stopped => |sig| { |
| 427 | std.log.err( | 427 | std.log.err( |
| 428 | "the following command stopped unexpectedly with signal {d}:\n{s}", | 428 | "the following command stopped unexpectedly with signal {t}:\n{s}", |
| 429 | .{ sig, try std.Build.Step.allocPrintCmd(arena, .inherit, null, argv.items) }, | 429 | .{ sig, try std.Build.Step.allocPrintCmd(arena, .inherit, null, argv.items) }, |
| 430 | ); | 430 | ); |
| 431 | return error.WasmCompilationFailed; | 431 | return error.WasmCompilationFailed; |
lib/std/Build.zig+2-2| ... | @@ -1899,11 +1899,11 @@ pub fn runAllowFail( | ... | @@ -1899,11 +1899,11 @@ pub fn runAllowFail( |
| 1899 | } | 1899 | } |
| 1900 | return stdout; | 1900 | return stdout; |
| 1901 | }, | 1901 | }, |
| 1902 | .signal => |sig| { | 1902 | .signal, .stopped => |sig| { |
| 1903 | out_code.* = @as(u8, @truncate(@intFromEnum(sig))); | 1903 | out_code.* = @as(u8, @truncate(@intFromEnum(sig))); |
| 1904 | return error.ProcessTerminated; | 1904 | return error.ProcessTerminated; |
| 1905 | }, | 1905 | }, |
| 1906 | .stopped, .unknown => |code| { | 1906 | .unknown => |code| { |
| 1907 | out_code.* = @as(u8, @truncate(code)); | 1907 | out_code.* = @as(u8, @truncate(code)); |
| 1908 | return error.ProcessTerminated; | 1908 | return error.ProcessTerminated; |
| 1909 | }, | 1909 | }, |
lib/std/Build/Step.zig+1-1| ... | @@ -728,7 +728,7 @@ pub fn handleChildProcessTerm(s: *Step, term: std.process.Child.Term) error{ Mak | ... | @@ -728,7 +728,7 @@ pub fn handleChildProcessTerm(s: *Step, term: std.process.Child.Term) error{ Mak |
| 728 | return switch (term) { | 728 | return switch (term) { |
| 729 | .exited => |code| if (code != 0) s.fail("process exited with error code {d}", .{code}), | 729 | .exited => |code| if (code != 0) s.fail("process exited with error code {d}", .{code}), |
| 730 | .signal => |sig| s.fail("process terminated with signal {t}", .{sig}), | 730 | .signal => |sig| s.fail("process terminated with signal {t}", .{sig}), |
| 731 | .stopped => |sig| s.fail("process stopped with signal {d}", .{sig}), | 731 | .stopped => |sig| s.fail("process stopped with signal {t}", .{sig}), |
| 732 | .unknown => s.fail("process terminated unexpectedly", .{}), | 732 | .unknown => s.fail("process terminated unexpectedly", .{}), |
| 733 | }; | 733 | }; |
| 734 | } | 734 | } |
lib/std/Build/Step/Run.zig+3-3| ... | @@ -1173,7 +1173,7 @@ fn formatTerm(term: ?process.Child.Term, w: *std.Io.Writer) std.Io.Writer.Error! | ... | @@ -1173,7 +1173,7 @@ fn formatTerm(term: ?process.Child.Term, w: *std.Io.Writer) std.Io.Writer.Error! |
| 1173 | if (term) |t| switch (t) { | 1173 | if (term) |t| switch (t) { |
| 1174 | .exited => |code| try w.print("exited with code {d}", .{code}), | 1174 | .exited => |code| try w.print("exited with code {d}", .{code}), |
| 1175 | .signal => |sig| try w.print("terminated with signal {t}", .{sig}), | 1175 | .signal => |sig| try w.print("terminated with signal {t}", .{sig}), |
| 1176 | .stopped => |sig| try w.print("stopped with signal {d}", .{sig}), | 1176 | .stopped => |sig| try w.print("stopped with signal {t}", .{sig}), |
| 1177 | .unknown => |code| try w.print("terminated for unknown reason with code {d}", .{code}), | 1177 | .unknown => |code| try w.print("terminated for unknown reason with code {d}", .{code}), |
| 1178 | } else { | 1178 | } else { |
| 1179 | try w.writeAll("exited with any code"); | 1179 | try w.writeAll("exited with any code"); |
| ... | @@ -2804,8 +2804,8 @@ fn hashStdIo(hh: *std.Build.Cache.HashHelper, stdio: StdIo) void { | ... | @@ -2804,8 +2804,8 @@ fn hashStdIo(hh: *std.Build.Cache.HashHelper, stdio: StdIo) void { |
| 2804 | .expect_term => |term| { | 2804 | .expect_term => |term| { |
| 2805 | hh.add(@as(std.meta.Tag(process.Child.Term), term)); | 2805 | hh.add(@as(std.meta.Tag(process.Child.Term), term)); |
| 2806 | switch (term) { | 2806 | switch (term) { |
| 2807 | inline .exited, .signal => |x| hh.add(x), | 2807 | inline .exited, .signal, .stopped => |x| hh.add(x), |
| 2808 | .stopped, .unknown => |x| hh.add(x), | 2808 | .unknown => |x| hh.add(x), |
| 2809 | } | 2809 | } |
| 2810 | }, | 2810 | }, |
| 2811 | } | 2811 | } |
lib/std/Build/WebServer.zig+1-1| ... | @@ -683,7 +683,7 @@ fn buildClientWasm(ws: *WebServer, arena: Allocator, optimize: std.builtin.Optim | ... | @@ -683,7 +683,7 @@ fn buildClientWasm(ws: *WebServer, arena: Allocator, optimize: std.builtin.Optim |
| 683 | }, | 683 | }, |
| 684 | .stopped => |sig| { | 684 | .stopped => |sig| { |
| 685 | log.err( | 685 | log.err( |
| 686 | "the following command stopped unexpectedly with signal {d}:\n{s}", | 686 | "the following command stopped unexpectedly with signal {t}:\n{s}", |
| 687 | .{ sig, try Build.Step.allocPrintCmd(arena, .inherit, null, argv.items) }, | 687 | .{ sig, try Build.Step.allocPrintCmd(arena, .inherit, null, argv.items) }, |
| 688 | ); | 688 | ); |
| 689 | return error.WasmCompilationFailed; | 689 | return error.WasmCompilationFailed; |
lib/std/Io/Threaded.zig+1-1| ... | @@ -15273,7 +15273,7 @@ fn childWaitPosix(child: *process.Child) process.Child.WaitError!process.Child.T | ... | @@ -15273,7 +15273,7 @@ fn childWaitPosix(child: *process.Child) process.Child.WaitError!process.Child.T |
| 15273 | return switch (code) { | 15273 | return switch (code) { |
| 15274 | .EXITED => .{ .exited = @truncate(status) }, | 15274 | .EXITED => .{ .exited = @truncate(status) }, |
| 15275 | .KILLED, .DUMPED => .{ .signal = @enumFromInt(status) }, | 15275 | .KILLED, .DUMPED => .{ .signal = @enumFromInt(status) }, |
| 15276 | .TRAPPED, .STOPPED => .{ .stopped = status }, | 15276 | .TRAPPED, .STOPPED => .{ .stopped = @enumFromInt(status) }, |
| 15277 | _, .CONTINUED => .{ .unknown = status }, | 15277 | _, .CONTINUED => .{ .unknown = status }, |
| 15278 | }; | 15278 | }; |
| 15279 | }, | 15279 | }, |
lib/std/Io/Uring.zig+1-1| ... | @@ -4729,7 +4729,7 @@ fn childWait(userdata: ?*anyopaque, child: *process.Child) process.Child.WaitErr | ... | @@ -4729,7 +4729,7 @@ fn childWait(userdata: ?*anyopaque, child: *process.Child) process.Child.WaitErr |
| 4729 | return switch (code) { | 4729 | return switch (code) { |
| 4730 | .EXITED => .{ .exited = @truncate(status) }, | 4730 | .EXITED => .{ .exited = @truncate(status) }, |
| 4731 | .KILLED, .DUMPED => .{ .signal = @enumFromInt(status) }, | 4731 | .KILLED, .DUMPED => .{ .signal = @enumFromInt(status) }, |
| 4732 | .TRAPPED, .STOPPED => .{ .stopped = status }, | 4732 | .TRAPPED, .STOPPED => .{ .stopped = @enumFromInt(status) }, |
| 4733 | _, .CONTINUED => .{ .unknown = status }, | 4733 | _, .CONTINUED => .{ .unknown = status }, |
| 4734 | }; | 4734 | }; |
| 4735 | }, | 4735 | }, |
lib/std/c.zig+17-17| ... | @@ -3721,14 +3721,14 @@ pub const W = switch (native_os) { | ... | @@ -3721,14 +3721,14 @@ pub const W = switch (native_os) { |
| 3721 | pub fn TERMSIG(x: u32) SIG { | 3721 | pub fn TERMSIG(x: u32) SIG { |
| 3722 | return @enumFromInt(status(x)); | 3722 | return @enumFromInt(status(x)); |
| 3723 | } | 3723 | } |
| 3724 | pub fn STOPSIG(x: u32) u32 { | 3724 | pub fn STOPSIG(x: u32) SIG { |
| 3725 | return x >> 8; | 3725 | return @enumFromInt(x >> 8); |
| 3726 | } | 3726 | } |
| 3727 | pub fn IFEXITED(x: u32) bool { | 3727 | pub fn IFEXITED(x: u32) bool { |
| 3728 | return status(x) == 0; | 3728 | return status(x) == 0; |
| 3729 | } | 3729 | } |
| 3730 | pub fn IFSTOPPED(x: u32) bool { | 3730 | pub fn IFSTOPPED(x: u32) bool { |
| 3731 | return status(x) == stopped and STOPSIG(x) != 0x13; | 3731 | return status(x) == stopped and @as(u32, @intFromEnum(STOPSIG(x))) != 0x13; |
| 3732 | } | 3732 | } |
| 3733 | pub fn IFSIGNALED(x: u32) bool { | 3733 | pub fn IFSIGNALED(x: u32) bool { |
| 3734 | return status(x) != stopped and status(x) != 0; | 3734 | return status(x) != stopped and status(x) != 0; |
| ... | @@ -3754,8 +3754,8 @@ pub const W = switch (native_os) { | ... | @@ -3754,8 +3754,8 @@ pub const W = switch (native_os) { |
| 3754 | pub fn TERMSIG(s: u32) SIG { | 3754 | pub fn TERMSIG(s: u32) SIG { |
| 3755 | return @enumFromInt(s & 0x7f); | 3755 | return @enumFromInt(s & 0x7f); |
| 3756 | } | 3756 | } |
| 3757 | pub fn STOPSIG(s: u32) u32 { | 3757 | pub fn STOPSIG(s: u32) SIG { |
| 3758 | return EXITSTATUS(s); | 3758 | return @enumFromInt(EXITSTATUS(s)); |
| 3759 | } | 3759 | } |
| 3760 | pub fn IFEXITED(s: u32) bool { | 3760 | pub fn IFEXITED(s: u32) bool { |
| 3761 | return (s & 0x7f) == 0; | 3761 | return (s & 0x7f) == 0; |
| ... | @@ -3782,8 +3782,8 @@ pub const W = switch (native_os) { | ... | @@ -3782,8 +3782,8 @@ pub const W = switch (native_os) { |
| 3782 | pub fn TERMSIG(s: u32) SIG { | 3782 | pub fn TERMSIG(s: u32) SIG { |
| 3783 | return @enumFromInt(s & 0x7f); | 3783 | return @enumFromInt(s & 0x7f); |
| 3784 | } | 3784 | } |
| 3785 | pub fn STOPSIG(s: u32) u32 { | 3785 | pub fn STOPSIG(s: u32) SIG { |
| 3786 | return EXITSTATUS(s); | 3786 | return @enumFromInt(EXITSTATUS(s)); |
| 3787 | } | 3787 | } |
| 3788 | pub fn IFEXITED(s: u32) bool { | 3788 | pub fn IFEXITED(s: u32) bool { |
| 3789 | return (s & 0x7f) == 0; | 3789 | return (s & 0x7f) == 0; |
| ... | @@ -3816,8 +3816,8 @@ pub const W = switch (native_os) { | ... | @@ -3816,8 +3816,8 @@ pub const W = switch (native_os) { |
| 3816 | pub fn TERMSIG(s: u32) SIG { | 3816 | pub fn TERMSIG(s: u32) SIG { |
| 3817 | return @enumFromInt(s & 0x7f); | 3817 | return @enumFromInt(s & 0x7f); |
| 3818 | } | 3818 | } |
| 3819 | pub fn STOPSIG(s: u32) u32 { | 3819 | pub fn STOPSIG(s: u32) SIG { |
| 3820 | return EXITSTATUS(s); | 3820 | return @enumFromInt(EXITSTATUS(s)); |
| 3821 | } | 3821 | } |
| 3822 | pub fn IFEXITED(s: u32) bool { | 3822 | pub fn IFEXITED(s: u32) bool { |
| 3823 | return (s & 0x7f) == 0; | 3823 | return (s & 0x7f) == 0; |
| ... | @@ -3850,8 +3850,8 @@ pub const W = switch (native_os) { | ... | @@ -3850,8 +3850,8 @@ pub const W = switch (native_os) { |
| 3850 | pub fn TERMSIG(s: u32) SIG { | 3850 | pub fn TERMSIG(s: u32) SIG { |
| 3851 | return @enumFromInt(s & 0x7f); | 3851 | return @enumFromInt(s & 0x7f); |
| 3852 | } | 3852 | } |
| 3853 | pub fn STOPSIG(s: u32) u32 { | 3853 | pub fn STOPSIG(s: u32) SIG { |
| 3854 | return EXITSTATUS(s); | 3854 | return @enumFromInt(EXITSTATUS(s)); |
| 3855 | } | 3855 | } |
| 3856 | pub fn IFEXITED(s: u32) bool { | 3856 | pub fn IFEXITED(s: u32) bool { |
| 3857 | return (s & 0x7f) == 0; | 3857 | return (s & 0x7f) == 0; |
| ... | @@ -3879,8 +3879,8 @@ pub const W = switch (native_os) { | ... | @@ -3879,8 +3879,8 @@ pub const W = switch (native_os) { |
| 3879 | return @enumFromInt((s >> 8) & 0xff); | 3879 | return @enumFromInt((s >> 8) & 0xff); |
| 3880 | } | 3880 | } |
| 3881 | 3881 | ||
| 3882 | pub fn STOPSIG(s: u32) u32 { | 3882 | pub fn STOPSIG(s: u32) SIG { |
| 3883 | return (s >> 16) & 0xff; | 3883 | return @enumFromInt((s >> 16) & 0xff); |
| 3884 | } | 3884 | } |
| 3885 | 3885 | ||
| 3886 | pub fn IFEXITED(s: u32) bool { | 3886 | pub fn IFEXITED(s: u32) bool { |
| ... | @@ -3906,8 +3906,8 @@ pub const W = switch (native_os) { | ... | @@ -3906,8 +3906,8 @@ pub const W = switch (native_os) { |
| 3906 | pub fn TERMSIG(s: u32) SIG { | 3906 | pub fn TERMSIG(s: u32) SIG { |
| 3907 | return @enumFromInt(s & 0x7f); | 3907 | return @enumFromInt(s & 0x7f); |
| 3908 | } | 3908 | } |
| 3909 | pub fn STOPSIG(s: u32) u32 { | 3909 | pub fn STOPSIG(s: u32) SIG { |
| 3910 | return EXITSTATUS(s); | 3910 | return @enumFromInt(EXITSTATUS(s)); |
| 3911 | } | 3911 | } |
| 3912 | pub fn IFEXITED(s: u32) bool { | 3912 | pub fn IFEXITED(s: u32) bool { |
| 3913 | return (s & 0x7f) == 0; | 3913 | return (s & 0x7f) == 0; |
| ... | @@ -3938,8 +3938,8 @@ pub const W = switch (native_os) { | ... | @@ -3938,8 +3938,8 @@ pub const W = switch (native_os) { |
| 3938 | return @intCast((s & 0xff00) >> 8); | 3938 | return @intCast((s & 0xff00) >> 8); |
| 3939 | } | 3939 | } |
| 3940 | 3940 | ||
| 3941 | pub fn STOPSIG(s: u32) u32 { | 3941 | pub fn STOPSIG(s: u32) SIG { |
| 3942 | return EXITSTATUS(s); | 3942 | return @enumFromInt(EXITSTATUS(s)); |
| 3943 | } | 3943 | } |
| 3944 | 3944 | ||
| 3945 | pub fn TERMSIG(s: u32) SIG { | 3945 | pub fn TERMSIG(s: u32) SIG { |
lib/std/os/emscripten.zig+1-1| ... | @@ -228,7 +228,7 @@ pub const W = struct { | ... | @@ -228,7 +228,7 @@ pub const W = struct { |
| 228 | return @enumFromInt(s & 0x7f); | 228 | return @enumFromInt(s & 0x7f); |
| 229 | } | 229 | } |
| 230 | pub fn STOPSIG(s: u32) u32 { | 230 | pub fn STOPSIG(s: u32) u32 { |
| 231 | return EXITSTATUS(s); | 231 | return @enumFromInt(EXITSTATUS(s)); |
| 232 | } | 232 | } |
| 233 | pub fn IFEXITED(s: u32) bool { | 233 | pub fn IFEXITED(s: u32) bool { |
| 234 | return (s & 0x7f) == 0; | 234 | return (s & 0x7f) == 0; |
lib/std/os/linux.zig+2-2| ... | @@ -3883,8 +3883,8 @@ pub const W = struct { | ... | @@ -3883,8 +3883,8 @@ pub const W = struct { |
| 3883 | pub fn TERMSIG(s: u32) SIG { | 3883 | pub fn TERMSIG(s: u32) SIG { |
| 3884 | return @enumFromInt(s & 0x7f); | 3884 | return @enumFromInt(s & 0x7f); |
| 3885 | } | 3885 | } |
| 3886 | pub fn STOPSIG(s: u32) u32 { | 3886 | pub fn STOPSIG(s: u32) SIG { |
| 3887 | return EXITSTATUS(s); | 3887 | return @enumFromInt(EXITSTATUS(s)); |
| 3888 | } | 3888 | } |
| 3889 | pub fn IFEXITED(s: u32) bool { | 3889 | pub fn IFEXITED(s: u32) bool { |
| 3890 | return (s & 0x7f) == 0; | 3890 | return (s & 0x7f) == 0; |
lib/std/process/Child.zig+1-1| ... | @@ -94,7 +94,7 @@ pub const ResourceUsageStatistics = struct { | ... | @@ -94,7 +94,7 @@ pub const ResourceUsageStatistics = struct { |
| 94 | pub const Term = union(enum) { | 94 | pub const Term = union(enum) { |
| 95 | exited: u8, | 95 | exited: u8, |
| 96 | signal: std.posix.SIG, | 96 | signal: std.posix.SIG, |
| 97 | stopped: u32, | 97 | stopped: std.posix.SIG, |
| 98 | unknown: u32, | 98 | unknown: u32, |
| 99 | }; | 99 | }; |
| 100 | 100 |
lib/std/zig/system.zig+1-1| ... | @@ -1195,7 +1195,7 @@ fn detectAndroidApiLevel(io: Io) !u32 { | ... | @@ -1195,7 +1195,7 @@ fn detectAndroidApiLevel(io: Io) !u32 { |
| 1195 | return error.ApiLevelQueryFailed; | 1195 | return error.ApiLevelQueryFailed; |
| 1196 | }, | 1196 | }, |
| 1197 | .stopped => |sig| { | 1197 | .stopped => |sig| { |
| 1198 | std.log.err("getprop stopped abnormally with signal: {d}", .{sig}); | 1198 | std.log.err("getprop stopped abnormally with signal: {t}", .{sig}); |
| 1199 | return error.ApiLevelQueryFailed; | 1199 | return error.ApiLevelQueryFailed; |
| 1200 | }, | 1200 | }, |
| 1201 | .unknown => { | 1201 | .unknown => { |
src/Compilation.zig+2-2| ... | @@ -5872,7 +5872,7 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_obj_prog_node: std.Pr | ... | @@ -5872,7 +5872,7 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_obj_prog_node: std.Pr |
| 5872 | }, | 5872 | }, |
| 5873 | .stopped => |sig| { | 5873 | .stopped => |sig| { |
| 5874 | log.err("clang failed with stderr: {s}", .{stderr}); | 5874 | log.err("clang failed with stderr: {s}", .{stderr}); |
| 5875 | return comp.failCObj(c_object, "clang stopped with signal {d}", .{sig}); | 5875 | return comp.failCObj(c_object, "clang stopped with signal {t}", .{sig}); |
| 5876 | }, | 5876 | }, |
| 5877 | .unknown => { | 5877 | .unknown => { |
| 5878 | log.err("clang terminated with stderr: {s}", .{stderr}); | 5878 | log.err("clang terminated with stderr: {s}", .{stderr}); |
| ... | @@ -6302,7 +6302,7 @@ fn spawnZigRc( | ... | @@ -6302,7 +6302,7 @@ fn spawnZigRc( |
| 6302 | return comp.failWin32Resource(win32_resource, "zig rc terminated unexpectedly", .{}); | 6302 | return comp.failWin32Resource(win32_resource, "zig rc terminated unexpectedly", .{}); |
| 6303 | }, | 6303 | }, |
| 6304 | .stopped => |sig| { | 6304 | .stopped => |sig| { |
| 6305 | log.err("zig rc stopped {d} with stderr:\n{s}", .{ sig, stderr }); | 6305 | log.err("zig rc stopped {t} with stderr:\n{s}", .{ sig, stderr }); |
| 6306 | return comp.failWin32Resource(win32_resource, "zig rc terminated unexpectedly", .{}); | 6306 | return comp.failWin32Resource(win32_resource, "zig rc terminated unexpectedly", .{}); |
| 6307 | }, | 6307 | }, |
| 6308 | .unknown => { | 6308 | .unknown => { |
src/link/Lld.zig+1-1| ... | @@ -1733,7 +1733,7 @@ fn spawnLld(comp: *Compilation, arena: Allocator, argv: []const []const u8) !voi | ... | @@ -1733,7 +1733,7 @@ fn spawnLld(comp: *Compilation, arena: Allocator, argv: []const []const u8) !voi |
| 1733 | }, | 1733 | }, |
| 1734 | .stopped => |sig| { | 1734 | .stopped => |sig| { |
| 1735 | if (comp.clang_passthrough_mode) std.process.abort(); | 1735 | if (comp.clang_passthrough_mode) std.process.abort(); |
| 1736 | return diags.fail("{s} stopped with signal {d} and stderr:\n{s}", .{ argv[0], sig, stderr }); | 1736 | return diags.fail("{s} stopped with signal {t} and stderr:\n{s}", .{ argv[0], sig, stderr }); |
| 1737 | }, | 1737 | }, |
| 1738 | .unknown => |code| { | 1738 | .unknown => |code| { |
| 1739 | if (comp.clang_passthrough_mode) std.process.abort(); | 1739 | if (comp.clang_passthrough_mode) std.process.abort(); |
src/main.zig+3-3| ... | @@ -4582,7 +4582,7 @@ fn runOrTest( | ... | @@ -4582,7 +4582,7 @@ fn runOrTest( |
| 4582 | }, | 4582 | }, |
| 4583 | .stopped => |sig| { | 4583 | .stopped => |sig| { |
| 4584 | const cmd = try std.mem.join(arena, " ", argv.items); | 4584 | const cmd = try std.mem.join(arena, " ", argv.items); |
| 4585 | fatal("the following command stopped with signal {d}:\n{s}", .{ sig, cmd }); | 4585 | fatal("the following command stopped with signal {t}:\n{s}", .{ sig, cmd }); |
| 4586 | }, | 4586 | }, |
| 4587 | .unknown => { | 4587 | .unknown => { |
| 4588 | process.exit(1); | 4588 | process.exit(1); |
| ... | @@ -5637,7 +5637,7 @@ fn cmdBuild(gpa: Allocator, arena: Allocator, io: Io, args: []const []const u8, | ... | @@ -5637,7 +5637,7 @@ fn cmdBuild(gpa: Allocator, arena: Allocator, io: Io, args: []const []const u8, |
| 5637 | }, | 5637 | }, |
| 5638 | .stopped => |sig| { | 5638 | .stopped => |sig| { |
| 5639 | const cmd = try std.mem.join(arena, " ", child_argv.items); | 5639 | const cmd = try std.mem.join(arena, " ", child_argv.items); |
| 5640 | fatal("the following build command stopped with signal {d}:\n{s}", .{ sig, cmd }); | 5640 | fatal("the following build command stopped with signal {t}:\n{s}", .{ sig, cmd }); |
| 5641 | }, | 5641 | }, |
| 5642 | .unknown => { | 5642 | .unknown => { |
| 5643 | const cmd = try std.mem.join(arena, " ", child_argv.items); | 5643 | const cmd = try std.mem.join(arena, " ", child_argv.items); |
| ... | @@ -5943,7 +5943,7 @@ fn jitCmdInner( | ... | @@ -5943,7 +5943,7 @@ fn jitCmdInner( |
| 5943 | }, | 5943 | }, |
| 5944 | .stopped => |sig| { | 5944 | .stopped => |sig| { |
| 5945 | const cmd = try std.mem.join(arena, " ", child_argv.items); | 5945 | const cmd = try std.mem.join(arena, " ", child_argv.items); |
| 5946 | fatal("the following build command stopped with signal {d}:\n{s}", .{ sig, cmd }); | 5946 | fatal("the following build command stopped with signal {t}:\n{s}", .{ sig, cmd }); |
| 5947 | }, | 5947 | }, |
| 5948 | .unknown => { | 5948 | .unknown => { |
| 5949 | const cmd = try std.mem.join(arena, " ", child_argv.items); | 5949 | const cmd = try std.mem.join(arena, " ", child_argv.items); |
tools/doctest.zig+1-1| ... | @@ -1142,7 +1142,7 @@ fn run( | ... | @@ -1142,7 +1142,7 @@ fn run( |
| 1142 | return error.ChildCrashed; | 1142 | return error.ChildCrashed; |
| 1143 | }, | 1143 | }, |
| 1144 | .stopped => |sig| { | 1144 | .stopped => |sig| { |
| 1145 | std.debug.print("{s}\nThe following command stopped with signal {d}:\n", .{ result.stderr, sig }); | 1145 | std.debug.print("{s}\nThe following command stopped with signal {t}:\n", .{ result.stderr, sig }); |
| 1146 | dumpArgs(args); | 1146 | dumpArgs(args); |
| 1147 | return error.ChildCrashed; | 1147 | return error.ChildCrashed; |
| 1148 | }, | 1148 | }, |
tools/incr-check.zig+3-3| ... | @@ -569,7 +569,7 @@ const Eval = struct { | ... | @@ -569,7 +569,7 @@ const Eval = struct { |
| 569 | eval.fatal("generated executable '{s}' terminated with signal {t}", .{ binary_path, sig }); | 569 | eval.fatal("generated executable '{s}' terminated with signal {t}", .{ binary_path, sig }); |
| 570 | }, | 570 | }, |
| 571 | .stopped => |sig| { | 571 | .stopped => |sig| { |
| 572 | eval.fatal("generated executable '{s}' stopped with signal {d}", .{ binary_path, sig }); | 572 | eval.fatal("generated executable '{s}' stopped with signal {t}", .{ binary_path, sig }); |
| 573 | }, | 573 | }, |
| 574 | .unknown => { | 574 | .unknown => { |
| 575 | eval.fatal("generated executable '{s}' terminated unexpectedly", .{binary_path}); | 575 | eval.fatal("generated executable '{s}' terminated unexpectedly", .{binary_path}); |
| ... | @@ -639,7 +639,7 @@ const Eval = struct { | ... | @@ -639,7 +639,7 @@ const Eval = struct { |
| 639 | switch (result.term) { | 639 | switch (result.term) { |
| 640 | .exited => |code| eval.fatal("zig cc for '{s}' failed with code {d}", .{ c_path, code }), | 640 | .exited => |code| eval.fatal("zig cc for '{s}' failed with code {d}", .{ c_path, code }), |
| 641 | .signal => |sig| eval.fatal("zig cc for '{s}' terminated unexpectedly with signal {t}", .{ c_path, sig }), | 641 | .signal => |sig| eval.fatal("zig cc for '{s}' terminated unexpectedly with signal {t}", .{ c_path, sig }), |
| 642 | .stopped => |sig| eval.fatal("zig cc for '{s}' stopped unexpectedly with signal {d}", .{ c_path, sig }), | 642 | .stopped => |sig| eval.fatal("zig cc for '{s}' stopped unexpectedly with signal {t}", .{ c_path, sig }), |
| 643 | .unknown => eval.fatal("zig cc for '{s}' terminated unexpectedly", .{c_path}), | 643 | .unknown => eval.fatal("zig cc for '{s}' terminated unexpectedly", .{c_path}), |
| 644 | } | 644 | } |
| 645 | } | 645 | } |
| ... | @@ -919,7 +919,7 @@ fn waitChild(child: *std.process.Child, eval: *Eval) void { | ... | @@ -919,7 +919,7 @@ fn waitChild(child: *std.process.Child, eval: *Eval) void { |
| 919 | switch (term) { | 919 | switch (term) { |
| 920 | .exited => |code| if (code != 0) eval.fatal("compiler failed with code {d}", .{code}), | 920 | .exited => |code| if (code != 0) eval.fatal("compiler failed with code {d}", .{code}), |
| 921 | .signal => |sig| eval.fatal("compiler terminated with signal {t}", .{sig}), | 921 | .signal => |sig| eval.fatal("compiler terminated with signal {t}", .{sig}), |
| 922 | .stopped => |sig| eval.fatal("compiler stopped unexpectedly with signal {d}", .{sig}), | 922 | .stopped => |sig| eval.fatal("compiler stopped unexpectedly with signal {t}", .{sig}), |
| 923 | .unknown => eval.fatal("compiler terminated unexpectedly", .{}), | 923 | .unknown => eval.fatal("compiler terminated unexpectedly", .{}), |
| 924 | } | 924 | } |
| 925 | } | 925 | } |
tools/update_clang_options.zig-1| ... | @@ -699,7 +699,6 @@ pub fn main(init: std.process.Init) !void { | ... | @@ -699,7 +699,6 @@ pub fn main(init: std.process.Init) !void { |
| 699 | .unknown => { | 699 | .unknown => { |
| 700 | fatal("llvm-tblgen crashed\n", .{}); | 700 | fatal("llvm-tblgen crashed\n", .{}); |
| 701 | }, | 701 | }, |
| 702 | else => fatal("llvm-tblgen crashed", .{}), | ||
| 703 | }; | 702 | }; |
| 704 | 703 | ||
| 705 | const parsed = try json.parseFromSlice(json.Value, arena, json_text, .{}); | 704 | const parsed = try json.parseFromSlice(json.Value, arena, json_text, .{}); |
tools/update_cpu_features.zig+1-1| ... | @@ -2017,7 +2017,7 @@ fn processOneTarget(io: Io, job: Job) void { | ... | @@ -2017,7 +2017,7 @@ fn processOneTarget(io: Io, job: Job) void { |
| 2017 | std.process.exit(1); | 2017 | std.process.exit(1); |
| 2018 | }, | 2018 | }, |
| 2019 | .stopped => |sig| { | 2019 | .stopped => |sig| { |
| 2020 | std.debug.print("llvm-tblgen stopped with signal {d}\n", .{sig}); | 2020 | std.debug.print("llvm-tblgen stopped with signal {t}\n", .{sig}); |
| 2021 | std.process.exit(1); | 2021 | std.process.exit(1); |
| 2022 | }, | 2022 | }, |
| 2023 | .unknown => { | 2023 | .unknown => { |