| author | |
| committer | |
| log | 02e8339ca78e0f701b84da0bc31201a7fe95cec4 |
| tree | 79b36f2a77b08be3ae4b319e6877a055a57423a1 |
| parent | 9632ee3eb0c3eef525cdf95e86e04a8df090f26c |
8 files changed, 57 insertions(+), 37 deletions(-)
lib/compiler/aro/aro/Compilation.zig+2-1| ... | ... | @@ -1707,7 +1707,8 @@ pub fn initSearchPath(comp: *Compilation, includes: []const Include, verbose: bo |
| 1707 | 1707 | std.debug.print("#include <...> search starts here:\n", .{}); |
| 1708 | 1708 | } |
| 1709 | 1709 | std.debug.print(" {s}{s}\n", .{ |
| 1710 | include.path, if (include.kind.isFramework()) | |
| 1710 | include.path, | |
| 1711 | if (include.kind.isFramework()) | |
| 1711 | 1712 | " (framework directory)" |
| 1712 | 1713 | else |
| 1713 | 1714 | "", |
lib/compiler/translate-c/ast.zig+4-2| ... | ... | @@ -1213,7 +1213,8 @@ fn renderNode(c: *Context, node: Node) Allocator.Error!NodeIndex { |
| 1213 | 1213 | .tag = .slice, |
| 1214 | 1214 | .main_token = l_bracket, |
| 1215 | 1215 | .data = .{ .node_and_extra = .{ |
| 1216 | string, try c.addExtra(std.zig.Ast.Node.Slice{ | |
| 1216 | string, | |
| 1217 | try c.addExtra(std.zig.Ast.Node.Slice{ | |
| 1217 | 1218 | .start = start, |
| 1218 | 1219 | .end = end, |
| 1219 | 1220 | }), |
| ... | ... | @@ -2720,7 +2721,8 @@ fn renderCall(c: *Context, lhs: NodeIndex, args: []const Node) !NodeIndex { |
| 2720 | 2721 | .tag = .call, |
| 2721 | 2722 | .main_token = lparen, |
| 2722 | 2723 | .data = .{ .node_and_extra = .{ |
| 2723 | lhs, try c.addExtra(NodeSubRange{ | |
| 2724 | lhs, | |
| 2725 | try c.addExtra(NodeSubRange{ | |
| 2724 | 2726 | .start = span.start, |
| 2725 | 2727 | .end = span.end, |
| 2726 | 2728 | }), |
lib/std/crypto/aes.zig+1-2| ... | ... | @@ -8,8 +8,7 @@ const has_armaes = builtin.cpu.has(.aarch64, .aes); |
| 8 | 8 | // C backend doesn't currently support passing vectors to inline asm. |
| 9 | 9 | const impl = if (builtin.cpu.arch == .x86_64 and builtin.zig_backend != .stage2_c and has_aesni and has_avx) impl: { |
| 10 | 10 | break :impl @import("aes/aesni.zig"); |
| 11 | } else if (builtin.cpu.arch == .aarch64 and builtin.zig_backend != .stage2_c and has_armaes) | |
| 12 | impl: { | |
| 11 | } else if (builtin.cpu.arch == .aarch64 and builtin.zig_backend != .stage2_c and has_armaes) impl: { | |
| 13 | 12 | break :impl @import("aes/armcrypto.zig"); |
| 14 | 13 | } else impl: { |
| 15 | 14 | break :impl @import("aes/soft.zig"); |
lib/std/unicode.zig+20-16| ... | ... | @@ -1245,14 +1245,16 @@ test utf8ToUtf16Le { |
| 1245 | 1245 | const length = try utf8ToUtf16Le(utf16le[0..], "This string has been designed to test the vectorized implementat" ++ |
| 1246 | 1246 | "ion by beginning with one hundred twenty-seven ASCII characters¡"); |
| 1247 | 1247 | try testing.expectEqualSlices(u8, &.{ |
| 1248 | 'T', 0, 'h', 0, 'i', 0, 's', 0, ' ', 0, 's', 0, 't', 0, 'r', 0, 'i', 0, 'n', 0, 'g', 0, ' ', 0, 'h', 0, 'a', 0, 's', 0, ' ', 0, | |
| 1249 | 'b', 0, 'e', 0, 'e', 0, 'n', 0, ' ', 0, 'd', 0, 'e', 0, 's', 0, 'i', 0, 'g', 0, 'n', 0, 'e', 0, 'd', 0, ' ', 0, 't', 0, 'o', 0, | |
| 1250 | ' ', 0, 't', 0, 'e', 0, 's', 0, 't', 0, ' ', 0, 't', 0, 'h', 0, 'e', 0, ' ', 0, 'v', 0, 'e', 0, 'c', 0, 't', 0, 'o', 0, 'r', 0, | |
| 1251 | 'i', 0, 'z', 0, 'e', 0, 'd', 0, ' ', 0, 'i', 0, 'm', 0, 'p', 0, 'l', 0, 'e', 0, 'm', 0, 'e', 0, 'n', 0, 't', 0, 'a', 0, 't', 0, | |
| 1252 | 'i', 0, 'o', 0, 'n', 0, ' ', 0, 'b', 0, 'y', 0, ' ', 0, 'b', 0, 'e', 0, 'g', 0, 'i', 0, 'n', 0, 'n', 0, 'i', 0, 'n', 0, 'g', 0, | |
| 1253 | ' ', 0, 'w', 0, 'i', 0, 't', 0, 'h', 0, ' ', 0, 'o', 0, 'n', 0, 'e', 0, ' ', 0, 'h', 0, 'u', 0, 'n', 0, 'd', 0, 'r', 0, 'e', 0, | |
| 1254 | 'd', 0, ' ', 0, 't', 0, 'w', 0, 'e', 0, 'n', 0, 't', 0, 'y', 0, '-', 0, 's', 0, 'e', 0, 'v', 0, 'e', 0, 'n', 0, ' ', 0, 'A', 0, | |
| 1255 | 'S', 0, 'C', 0, 'I', 0, 'I', 0, ' ', 0, 'c', 0, 'h', 0, 'a', 0, 'r', 0, 'a', 0, 'c', 0, 't', 0, 'e', 0, 'r', 0, 's', 0, '¡', 0, | |
| 1248 | 'T', 0, 'h', 0, 'i', 0, 's', 0, ' ', 0, 's', 0, 't', 0, 'r', 0, 'i', 0, 'n', 0, 'g', 0, ' ', 0, 'h', 0, 'a', 0, 's', 0, ' ', 0, | |
| 1249 | 'b', 0, 'e', 0, 'e', 0, 'n', 0, ' ', 0, 'd', 0, 'e', 0, 's', 0, 'i', 0, 'g', 0, 'n', 0, 'e', 0, 'd', 0, ' ', 0, 't', 0, 'o', 0, | |
| 1250 | ' ', 0, 't', 0, 'e', 0, 's', 0, 't', 0, ' ', 0, 't', 0, 'h', 0, 'e', 0, ' ', 0, 'v', 0, 'e', 0, 'c', 0, 't', 0, 'o', 0, 'r', 0, | |
| 1251 | 'i', 0, 'z', 0, 'e', 0, 'd', 0, ' ', 0, 'i', 0, 'm', 0, 'p', 0, 'l', 0, 'e', 0, 'm', 0, 'e', 0, 'n', 0, 't', 0, 'a', 0, 't', 0, | |
| 1252 | 'i', 0, 'o', 0, 'n', 0, ' ', 0, 'b', 0, 'y', 0, ' ', 0, 'b', 0, 'e', 0, 'g', 0, 'i', 0, 'n', 0, 'n', 0, 'i', 0, 'n', 0, 'g', 0, | |
| 1253 | ' ', 0, 'w', 0, 'i', 0, 't', 0, 'h', 0, ' ', 0, 'o', 0, 'n', 0, 'e', 0, ' ', 0, 'h', 0, 'u', 0, 'n', 0, 'd', 0, 'r', 0, 'e', 0, | |
| 1254 | 'd', 0, ' ', 0, 't', 0, 'w', 0, 'e', 0, 'n', 0, 't', 0, 'y', 0, '-', 0, 's', 0, 'e', 0, 'v', 0, 'e', 0, 'n', 0, ' ', 0, 'A', 0, | |
| 1255 | 'S', 0, 'C', 0, 'I', 0, 'I', 0, ' ', 0, 'c', 0, 'h', 0, 'a', 0, 'r', 0, 'a', 0, 'c', 0, 't', 0, 'e', 0, 'r', 0, 's', 0, | |
| 1256 | '¡', | |
| 1257 | 0, | |
| 1256 | 1258 | }, mem.sliceAsBytes(utf16le[0..length])); |
| 1257 | 1259 | } |
| 1258 | 1260 | } |
| ... | ... | @@ -1317,14 +1319,16 @@ test utf8ToUtf16LeAllocZ { |
| 1317 | 1319 | "ion by beginning with one hundred twenty-seven ASCII characters¡"); |
| 1318 | 1320 | defer testing.allocator.free(utf16); |
| 1319 | 1321 | try testing.expectEqualSlices(u8, &.{ |
| 1320 | 'T', 0, 'h', 0, 'i', 0, 's', 0, ' ', 0, 's', 0, 't', 0, 'r', 0, 'i', 0, 'n', 0, 'g', 0, ' ', 0, 'h', 0, 'a', 0, 's', 0, ' ', 0, | |
| 1321 | 'b', 0, 'e', 0, 'e', 0, 'n', 0, ' ', 0, 'd', 0, 'e', 0, 's', 0, 'i', 0, 'g', 0, 'n', 0, 'e', 0, 'd', 0, ' ', 0, 't', 0, 'o', 0, | |
| 1322 | ' ', 0, 't', 0, 'e', 0, 's', 0, 't', 0, ' ', 0, 't', 0, 'h', 0, 'e', 0, ' ', 0, 'v', 0, 'e', 0, 'c', 0, 't', 0, 'o', 0, 'r', 0, | |
| 1323 | 'i', 0, 'z', 0, 'e', 0, 'd', 0, ' ', 0, 'i', 0, 'm', 0, 'p', 0, 'l', 0, 'e', 0, 'm', 0, 'e', 0, 'n', 0, 't', 0, 'a', 0, 't', 0, | |
| 1324 | 'i', 0, 'o', 0, 'n', 0, ' ', 0, 'b', 0, 'y', 0, ' ', 0, 'b', 0, 'e', 0, 'g', 0, 'i', 0, 'n', 0, 'n', 0, 'i', 0, 'n', 0, 'g', 0, | |
| 1325 | ' ', 0, 'w', 0, 'i', 0, 't', 0, 'h', 0, ' ', 0, 'o', 0, 'n', 0, 'e', 0, ' ', 0, 'h', 0, 'u', 0, 'n', 0, 'd', 0, 'r', 0, 'e', 0, | |
| 1326 | 'd', 0, ' ', 0, 't', 0, 'w', 0, 'e', 0, 'n', 0, 't', 0, 'y', 0, '-', 0, 's', 0, 'e', 0, 'v', 0, 'e', 0, 'n', 0, ' ', 0, 'A', 0, | |
| 1327 | 'S', 0, 'C', 0, 'I', 0, 'I', 0, ' ', 0, 'c', 0, 'h', 0, 'a', 0, 'r', 0, 'a', 0, 'c', 0, 't', 0, 'e', 0, 'r', 0, 's', 0, '¡', 0, | |
| 1322 | 'T', 0, 'h', 0, 'i', 0, 's', 0, ' ', 0, 's', 0, 't', 0, 'r', 0, 'i', 0, 'n', 0, 'g', 0, ' ', 0, 'h', 0, 'a', 0, 's', 0, ' ', 0, | |
| 1323 | 'b', 0, 'e', 0, 'e', 0, 'n', 0, ' ', 0, 'd', 0, 'e', 0, 's', 0, 'i', 0, 'g', 0, 'n', 0, 'e', 0, 'd', 0, ' ', 0, 't', 0, 'o', 0, | |
| 1324 | ' ', 0, 't', 0, 'e', 0, 's', 0, 't', 0, ' ', 0, 't', 0, 'h', 0, 'e', 0, ' ', 0, 'v', 0, 'e', 0, 'c', 0, 't', 0, 'o', 0, 'r', 0, | |
| 1325 | 'i', 0, 'z', 0, 'e', 0, 'd', 0, ' ', 0, 'i', 0, 'm', 0, 'p', 0, 'l', 0, 'e', 0, 'm', 0, 'e', 0, 'n', 0, 't', 0, 'a', 0, 't', 0, | |
| 1326 | 'i', 0, 'o', 0, 'n', 0, ' ', 0, 'b', 0, 'y', 0, ' ', 0, 'b', 0, 'e', 0, 'g', 0, 'i', 0, 'n', 0, 'n', 0, 'i', 0, 'n', 0, 'g', 0, | |
| 1327 | ' ', 0, 'w', 0, 'i', 0, 't', 0, 'h', 0, ' ', 0, 'o', 0, 'n', 0, 'e', 0, ' ', 0, 'h', 0, 'u', 0, 'n', 0, 'd', 0, 'r', 0, 'e', 0, | |
| 1328 | 'd', 0, ' ', 0, 't', 0, 'w', 0, 'e', 0, 'n', 0, 't', 0, 'y', 0, '-', 0, 's', 0, 'e', 0, 'v', 0, 'e', 0, 'n', 0, ' ', 0, 'A', 0, | |
| 1329 | 'S', 0, 'C', 0, 'I', 0, 'I', 0, ' ', 0, 'c', 0, 'h', 0, 'a', 0, 'r', 0, 'a', 0, 'c', 0, 't', 0, 'e', 0, 'r', 0, 's', 0, | |
| 1330 | '¡', | |
| 1331 | 0, | |
| 1328 | 1332 | }, mem.sliceAsBytes(utf16)); |
| 1329 | 1333 | } |
| 1330 | 1334 | } |
lib/std/zig/BuiltinFn.zig+10-5| ... | ... | @@ -384,28 +384,32 @@ pub const list = list: { |
| 384 | 384 | }, |
| 385 | 385 | }, |
| 386 | 386 | .{ |
| 387 | "@cVaArg", .{ | |
| 387 | "@cVaArg", | |
| 388 | .{ | |
| 388 | 389 | .tag = .c_va_arg, |
| 389 | 390 | .param_count = 2, |
| 390 | 391 | .illegal_outside_function = true, |
| 391 | 392 | }, |
| 392 | 393 | }, |
| 393 | 394 | .{ |
| 394 | "@cVaCopy", .{ | |
| 395 | "@cVaCopy", | |
| 396 | .{ | |
| 395 | 397 | .tag = .c_va_copy, |
| 396 | 398 | .param_count = 1, |
| 397 | 399 | .illegal_outside_function = true, |
| 398 | 400 | }, |
| 399 | 401 | }, |
| 400 | 402 | .{ |
| 401 | "@cVaEnd", .{ | |
| 403 | "@cVaEnd", | |
| 404 | .{ | |
| 402 | 405 | .tag = .c_va_end, |
| 403 | 406 | .param_count = 1, |
| 404 | 407 | .illegal_outside_function = true, |
| 405 | 408 | }, |
| 406 | 409 | }, |
| 407 | 410 | .{ |
| 408 | "@cVaStart", .{ | |
| 411 | "@cVaStart", | |
| 412 | .{ | |
| 409 | 413 | .tag = .c_va_start, |
| 410 | 414 | .param_count = 0, |
| 411 | 415 | .illegal_outside_function = true, |
| ... | ... | @@ -1042,7 +1046,8 @@ pub const list = list: { |
| 1042 | 1046 | }, |
| 1043 | 1047 | }, |
| 1044 | 1048 | .{ |
| 1045 | "@workItemId", .{ | |
| 1049 | "@workItemId", | |
| 1050 | .{ | |
| 1046 | 1051 | .tag = .work_item_id, |
| 1047 | 1052 | .param_count = 1, |
| 1048 | 1053 | .illegal_outside_function = true, |
lib/std/zig/Parse.zig+16-8| ... | ... | @@ -885,7 +885,8 @@ fn expectContainerField(p: *Parse) !Node.Index { |
| 885 | 885 | .tag = .container_field, |
| 886 | 886 | .main_token = main_token, |
| 887 | 887 | .data = .{ .node_and_extra = .{ |
| 888 | type_expr, try p.addExtra(Node.ContainerField{ | |
| 888 | type_expr, | |
| 889 | try p.addExtra(Node.ContainerField{ | |
| 889 | 890 | .align_expr = align_expr.?, |
| 890 | 891 | .value_expr = value_expr.?, |
| 891 | 892 | }), |
| ... | ... | @@ -1188,7 +1189,8 @@ fn expectIfStatement(p: *Parse) !Node.Index { |
| 1188 | 1189 | .tag = .@"if", |
| 1189 | 1190 | .main_token = if_token, |
| 1190 | 1191 | .data = .{ .node_and_extra = .{ |
| 1191 | condition, try p.addExtra(Node.If{ | |
| 1192 | condition, | |
| 1193 | try p.addExtra(Node.If{ | |
| 1192 | 1194 | .then_expr = then_expr, |
| 1193 | 1195 | .else_expr = else_expr, |
| 1194 | 1196 | }), |
| ... | ... | @@ -1369,7 +1371,8 @@ fn parseWhileStatement(p: *Parse) !?Node.Index { |
| 1369 | 1371 | .tag = .@"while", |
| 1370 | 1372 | .main_token = while_token, |
| 1371 | 1373 | .data = .{ .node_and_extra = .{ |
| 1372 | condition, try p.addExtra(Node.While{ | |
| 1374 | condition, | |
| 1375 | try p.addExtra(Node.While{ | |
| 1373 | 1376 | .cont_expr = .fromOptional(cont_expr), |
| 1374 | 1377 | .then_expr = then_expr, |
| 1375 | 1378 | .else_expr = else_expr, |
| ... | ... | @@ -1937,7 +1940,8 @@ fn parseTypeExpr(p: *Parse) Error!?Node.Index { |
| 1937 | 1940 | .tag = .array_type_sentinel, |
| 1938 | 1941 | .main_token = lbracket, |
| 1939 | 1942 | .data = .{ .node_and_extra = .{ |
| 1940 | len_expr.?, try p.addExtra(Node.ArrayTypeSentinel{ | |
| 1943 | len_expr.?, | |
| 1944 | try p.addExtra(Node.ArrayTypeSentinel{ | |
| 1941 | 1945 | .sentinel = sentinel.?, |
| 1942 | 1946 | .elem_type = elem_type, |
| 1943 | 1947 | }), |
| ... | ... | @@ -2732,7 +2736,8 @@ fn parseWhileTypeExpr(p: *Parse) !?Node.Index { |
| 2732 | 2736 | .tag = .while_cont, |
| 2733 | 2737 | .main_token = while_token, |
| 2734 | 2738 | .data = .{ .node_and_extra = .{ |
| 2735 | condition, try p.addExtra(Node.WhileCont{ | |
| 2739 | condition, | |
| 2740 | try p.addExtra(Node.WhileCont{ | |
| 2736 | 2741 | .cont_expr = cont_expr.?, |
| 2737 | 2742 | .then_expr = then_expr, |
| 2738 | 2743 | }), |
| ... | ... | @@ -2746,7 +2751,8 @@ fn parseWhileTypeExpr(p: *Parse) !?Node.Index { |
| 2746 | 2751 | .tag = .@"while", |
| 2747 | 2752 | .main_token = while_token, |
| 2748 | 2753 | .data = .{ .node_and_extra = .{ |
| 2749 | condition, try p.addExtra(Node.While{ | |
| 2754 | condition, | |
| 2755 | try p.addExtra(Node.While{ | |
| 2750 | 2756 | .cont_expr = .fromOptional(cont_expr), |
| 2751 | 2757 | .then_expr = then_expr, |
| 2752 | 2758 | .else_expr = else_expr, |
| ... | ... | @@ -3198,7 +3204,8 @@ fn parseSuffixOp(p: *Parse, lhs: Node.Index) !?Node.Index { |
| 3198 | 3204 | .tag = .slice_sentinel, |
| 3199 | 3205 | .main_token = lbracket, |
| 3200 | 3206 | .data = .{ .node_and_extra = .{ |
| 3201 | lhs, try p.addExtra(Node.SliceSentinel{ | |
| 3207 | lhs, | |
| 3208 | try p.addExtra(Node.SliceSentinel{ | |
| 3202 | 3209 | .start = index_expr, |
| 3203 | 3210 | .end = .fromOptional(opt_end_expr), |
| 3204 | 3211 | .sentinel = sentinel, |
| ... | ... | @@ -3221,7 +3228,8 @@ fn parseSuffixOp(p: *Parse, lhs: Node.Index) !?Node.Index { |
| 3221 | 3228 | .tag = .slice, |
| 3222 | 3229 | .main_token = lbracket, |
| 3223 | 3230 | .data = .{ .node_and_extra = .{ |
| 3224 | lhs, try p.addExtra(Node.Slice{ | |
| 3231 | lhs, | |
| 3232 | try p.addExtra(Node.Slice{ | |
| 3225 | 3233 | .start = index_expr, |
| 3226 | 3234 | .end = end_expr, |
| 3227 | 3235 | }), |
src/codegen/sparc64/abi.zig+2-2| ... | ... | @@ -38,10 +38,10 @@ const allocatable_regs = [_]Register{ |
| 38 | 38 | }; |
| 39 | 39 | |
| 40 | 40 | pub const c_abi_int_param_regs_caller_view = [_]Register{ .o0, .o1, .o2, .o3, .o4, .o5 }; |
| 41 | pub const c_abi_int_param_regs_callee_view = [_]Register{ .@"i0", .@"i1", .@"i2", .@"i3", .@"i4", .@"i5" }; | |
| 41 | pub const c_abi_int_param_regs_callee_view = [_]Register{ .i0, .i1, .i2, .i3, .i4, .i5 }; | |
| 42 | 42 | |
| 43 | 43 | pub const c_abi_int_return_regs_caller_view = [_]Register{ .o0, .o1, .o2, .o3 }; |
| 44 | pub const c_abi_int_return_regs_callee_view = [_]Register{ .@"i0", .@"i1", .@"i2", .@"i3" }; | |
| 44 | pub const c_abi_int_return_regs_callee_view = [_]Register{ .i0, .i1, .i2, .i3 }; | |
| 45 | 45 | |
| 46 | 46 | pub const RegisterManager = RegisterManagerFn(@import("CodeGen.zig"), Register, &allocatable_regs); |
| 47 | 47 |
src/link.zig+2-1| ... | ... | @@ -2097,7 +2097,8 @@ fn resolveLibInput( |
| 2097 | 2097 | const test_path: Path = .{ |
| 2098 | 2098 | .root_dir = lib_directory, |
| 2099 | 2099 | .sub_path = try std.fmt.allocPrint(arena, "{s}{s}{s}", .{ |
| 2100 | target.libPrefix(), lib_name, switch (link_mode) { | |
| 2100 | target.libPrefix(), lib_name, | |
| 2101 | switch (link_mode) { | |
| 2101 | 2102 | .static => target.staticLibSuffix(), |
| 2102 | 2103 | .dynamic => target.dynamicLibSuffix(), |
| 2103 | 2104 | }, |