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