@zigc/lib 0.17.0-dev.269 → 0.17.0-dev.292
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiler/aro/aro/CodeGen.zig +2 -2
- package/compiler/resinator/errors.zig +7 -7
- package/compiler_rt/addf3.zig +1 -1
- package/compiler_rt/comparef.zig +3 -3
- package/compiler_rt/count0bits.zig +1 -1
- package/compiler_rt/divdf3.zig +2 -2
- package/compiler_rt/divsf3.zig +1 -1
- package/compiler_rt/divtf3.zig +1 -1
- package/compiler_rt/divxf3.zig +1 -1
- package/compiler_rt/extendf.zig +5 -5
- package/compiler_rt/fabs.zig +1 -1
- package/compiler_rt/float_from_int.zig +3 -4
- package/compiler_rt/fmax.zig +1 -1
- package/compiler_rt/fmin.zig +1 -1
- package/compiler_rt/fmod.zig +2 -2
- package/compiler_rt/mulf3.zig +2 -2
- package/compiler_rt/truncf.zig +3 -3
- package/compiler_rt.zig +4 -4
- package/package.json +1 -1
- package/std/Build/Watch/FsEvents.zig +1 -1
- package/std/Build/abi.zig +1 -1
- package/std/Io/Dir.zig +2 -2
- package/std/Io/Dispatch.zig +2 -2
- package/std/Io/Threaded.zig +5 -5
- package/std/Io/Uring.zig +2 -2
- package/std/Io/Writer.zig +2 -2
- package/std/Random.zig +6 -6
- package/std/Target.zig +1 -1
- package/std/bit_set.zig +3 -3
- package/std/c.zig +7 -6
- package/std/compress/zstd/Decompress.zig +5 -5
- package/std/crypto/aes_ccm.zig +2 -2
- package/std/crypto/cmac.zig +1 -1
- package/std/crypto/codecs/asn1/der/Encoder.zig +1 -1
- package/std/crypto/ff.zig +2 -3
- package/std/crypto/keccak_p.zig +1 -1
- package/std/crypto/ml_dsa.zig +6 -6
- package/std/crypto/ml_kem.zig +6 -6
- package/std/crypto/modes.zig +1 -1
- package/std/crypto/pcurves/common.zig +4 -5
- package/std/crypto/timing_safe.zig +5 -5
- package/std/debug.zig +4 -1
- package/std/enums.zig +5 -5
- package/std/fmt/parse_float.zig +1 -1
- package/std/fmt.zig +1 -6
- package/std/hash/wyhash.zig +1 -1
- package/std/hash_map.zig +20 -1
- package/std/heap/debug_allocator.zig +1 -1
- package/std/{builtin.zig → lang.zig} +1 -1
- package/std/leb128.zig +2 -2
- package/std/math/big/int.zig +2 -2
- package/std/math/big.zig +4 -4
- package/std/math/copysign.zig +1 -1
- package/std/math/frexp.zig +4 -4
- package/std/math/ilogb.zig +1 -1
- package/std/math/isfinite.zig +1 -1
- package/std/math/isinf.zig +1 -1
- package/std/math/isnan.zig +1 -2
- package/std/math/isnormal.zig +2 -2
- package/std/math/iszero.zig +2 -2
- package/std/math/ldexp.zig +2 -2
- package/std/math/nextafter.zig +2 -2
- package/std/math/pow.zig +1 -1
- package/std/math.zig +8 -8
- package/std/mem/Allocator.zig +0 -6
- package/std/mem.zig +21 -21
- package/std/meta/trailer_flags.zig +1 -1
- package/std/meta.zig +3 -35
- package/std/os/emscripten.zig +4 -4
- package/std/os/linux/bpf.zig +6 -0
- package/std/os/linux/ioctl.zig +2 -2
- package/std/os/linux.zig +14 -12
- package/std/os/plan9.zig +1 -1
- package/std/os/uefi/tables/runtime_services.zig +1 -1
- package/std/posix.zig +1 -1
- package/std/process/Environ.zig +1 -1
- package/std/process.zig +2 -2
- package/std/std.zig +4 -1
- package/std/testing.zig +1 -1
- package/std/zig/Ast.zig +2 -2
- package/std/zig/AstGen.zig +37 -37
- package/std/zig/LibCInstallation.zig +3 -3
- package/std/zig/Zir.zig +15 -15
- package/std/zig/llvm/Builder.zig +16 -6
- package/std/zig/llvm/bitcode_writer.zig +3 -3
- package/std/zig/llvm/ir.zig +8 -8
- package/std/zig/target.zig +1 -3
- package/std/zig.zig +2 -2
- /package/std/{builtin → lang}/assembly.zig +0 -0
package/std/zig/AstGen.zig
CHANGED
|
@@ -1398,12 +1398,12 @@ fn fnProtoExprInner(
|
|
|
1398
1398
|
try comptimeExpr(
|
|
1399
1399
|
&block_scope,
|
|
1400
1400
|
scope,
|
|
1401
|
-
.{ .rl = .{ .coerced_ty = try block_scope.
|
|
1401
|
+
.{ .rl = .{ .coerced_ty = try block_scope.addStdLangValue(callconv_expr, .calling_convention) } },
|
|
1402
1402
|
callconv_expr,
|
|
1403
1403
|
.@"callconv",
|
|
1404
1404
|
)
|
|
1405
1405
|
else if (implicit_ccc)
|
|
1406
|
-
try block_scope.
|
|
1406
|
+
try block_scope.addStdLangValue(node, .calling_convention_c)
|
|
1407
1407
|
else
|
|
1408
1408
|
.none;
|
|
1409
1409
|
|
|
@@ -3782,7 +3782,7 @@ fn ptrType(
|
|
|
3782
3782
|
gz.astgen.source_line = source_line;
|
|
3783
3783
|
gz.astgen.source_column = source_column;
|
|
3784
3784
|
|
|
3785
|
-
const addrspace_ty = try gz.
|
|
3785
|
+
const addrspace_ty = try gz.addStdLangValue(addrspace_node, .address_space);
|
|
3786
3786
|
addrspace_ref = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = addrspace_ty } }, addrspace_node, .@"addrspace");
|
|
3787
3787
|
trailing_count += 1;
|
|
3788
3788
|
}
|
|
@@ -4077,7 +4077,7 @@ fn fnDecl(
|
|
|
4077
4077
|
|
|
4078
4078
|
if (fn_proto.ast.addrspace_expr.unwrap()) |addrspace_expr| {
|
|
4079
4079
|
astgen.restoreSourceCursor(saved_cursor);
|
|
4080
|
-
const addrspace_ty = try addrspace_gz.
|
|
4080
|
+
const addrspace_ty = try addrspace_gz.addStdLangValue(addrspace_expr, .address_space);
|
|
4081
4081
|
const inst = try expr(&addrspace_gz, &addrspace_gz.base, .{ .rl = .{ .coerced_ty = addrspace_ty } }, addrspace_expr);
|
|
4082
4082
|
_ = try addrspace_gz.addBreakWithSrcNode(.break_inline, decl_inst, inst, decl_node);
|
|
4083
4083
|
}
|
|
@@ -4285,7 +4285,7 @@ fn fnDeclInner(
|
|
|
4285
4285
|
const inst = try expr(
|
|
4286
4286
|
&cc_gz,
|
|
4287
4287
|
scope,
|
|
4288
|
-
.{ .rl = .{ .coerced_ty = try cc_gz.
|
|
4288
|
+
.{ .rl = .{ .coerced_ty = try cc_gz.addStdLangValue(callconv_expr, .calling_convention) } },
|
|
4289
4289
|
callconv_expr,
|
|
4290
4290
|
);
|
|
4291
4291
|
if (cc_gz.instructionsSlice().len == 0) {
|
|
@@ -4295,7 +4295,7 @@ fn fnDeclInner(
|
|
|
4295
4295
|
_ = try cc_gz.addBreak(.break_inline, @enumFromInt(0), inst);
|
|
4296
4296
|
break :blk inst;
|
|
4297
4297
|
} else if (has_inline_keyword) {
|
|
4298
|
-
const inst = try cc_gz.
|
|
4298
|
+
const inst = try cc_gz.addStdLangValue(decl_node, .calling_convention_inline);
|
|
4299
4299
|
_ = try cc_gz.addBreak(.break_inline, @enumFromInt(0), inst);
|
|
4300
4300
|
break :blk inst;
|
|
4301
4301
|
} else {
|
|
@@ -4493,7 +4493,7 @@ fn globalVarDecl(
|
|
|
4493
4493
|
defer addrspace_gz.unstack();
|
|
4494
4494
|
|
|
4495
4495
|
if (var_decl.ast.addrspace_node.unwrap()) |addrspace_node| {
|
|
4496
|
-
const addrspace_ty = try addrspace_gz.
|
|
4496
|
+
const addrspace_ty = try addrspace_gz.addStdLangValue(addrspace_node, .address_space);
|
|
4497
4497
|
const addrspace_inst = try expr(&addrspace_gz, &addrspace_gz.base, .{ .rl = .{ .coerced_ty = addrspace_ty } }, addrspace_node);
|
|
4498
4498
|
_ = try addrspace_gz.addBreakWithSrcNode(.break_inline, decl_inst, addrspace_inst, node);
|
|
4499
4499
|
}
|
|
@@ -4815,7 +4815,7 @@ fn structDeclInner(
|
|
|
4815
4815
|
scope: *Scope,
|
|
4816
4816
|
node: Ast.Node.Index,
|
|
4817
4817
|
container_decl: Ast.full.ContainerDecl,
|
|
4818
|
-
layout: std.
|
|
4818
|
+
layout: std.lang.Type.ContainerLayout,
|
|
4819
4819
|
maybe_backing_int_node: Ast.Node.OptionalIndex,
|
|
4820
4820
|
name_strat: Zir.Inst.NameStrategy,
|
|
4821
4821
|
) InnerError!Zir.Inst.Ref {
|
|
@@ -5020,7 +5020,7 @@ fn tupleDecl(
|
|
|
5020
5020
|
scope: *Scope,
|
|
5021
5021
|
node: Ast.Node.Index,
|
|
5022
5022
|
container_decl: Ast.full.ContainerDecl,
|
|
5023
|
-
layout: std.
|
|
5023
|
+
layout: std.lang.Type.ContainerLayout,
|
|
5024
5024
|
backing_int_node: Ast.Node.OptionalIndex,
|
|
5025
5025
|
) InnerError!Zir.Inst.Ref {
|
|
5026
5026
|
const astgen = gz.astgen;
|
|
@@ -5117,7 +5117,7 @@ fn unionDeclInner(
|
|
|
5117
5117
|
scope: *Scope,
|
|
5118
5118
|
node: Ast.Node.Index,
|
|
5119
5119
|
members: []const Ast.Node.Index,
|
|
5120
|
-
layout: std.
|
|
5120
|
+
layout: std.lang.Type.ContainerLayout,
|
|
5121
5121
|
opt_arg_node: Ast.Node.OptionalIndex,
|
|
5122
5122
|
auto_enum_tok: ?Ast.TokenIndex,
|
|
5123
5123
|
name_strat: Zir.Inst.NameStrategy,
|
|
@@ -5324,7 +5324,7 @@ fn containerDecl(
|
|
|
5324
5324
|
|
|
5325
5325
|
switch (tree.tokenTag(container_decl.ast.main_token)) {
|
|
5326
5326
|
.keyword_struct => {
|
|
5327
|
-
const layout: std.
|
|
5327
|
+
const layout: std.lang.Type.ContainerLayout = if (container_decl.layout_token) |t| switch (tree.tokenTag(t)) {
|
|
5328
5328
|
.keyword_packed => .@"packed",
|
|
5329
5329
|
.keyword_extern => .@"extern",
|
|
5330
5330
|
else => unreachable,
|
|
@@ -5334,7 +5334,7 @@ fn containerDecl(
|
|
|
5334
5334
|
return rvalue(gz, ri, result, node);
|
|
5335
5335
|
},
|
|
5336
5336
|
.keyword_union => {
|
|
5337
|
-
const layout: std.
|
|
5337
|
+
const layout: std.lang.Type.ContainerLayout = if (container_decl.layout_token) |t| switch (tree.tokenTag(t)) {
|
|
5338
5338
|
.keyword_packed => .@"packed",
|
|
5339
5339
|
.keyword_extern => .@"extern",
|
|
5340
5340
|
else => unreachable,
|
|
@@ -8060,7 +8060,7 @@ fn identifier(
|
|
|
8060
8060
|
|
|
8061
8061
|
int_type: {
|
|
8062
8062
|
if (ident_name_raw.len < 2) break :int_type;
|
|
8063
|
-
const signedness: std.
|
|
8063
|
+
const signedness: std.lang.Signedness = switch (ident_name_raw[0]) {
|
|
8064
8064
|
'u' => .unsigned,
|
|
8065
8065
|
'i' => .signed,
|
|
8066
8066
|
else => break :int_type,
|
|
@@ -8650,7 +8650,7 @@ fn asmExpr(
|
|
|
8650
8650
|
|
|
8651
8651
|
const clobbers: Zir.Inst.Ref = if (full.ast.clobbers.unwrap()) |clobbers_node|
|
|
8652
8652
|
try comptimeExpr(gz, scope, .{ .rl = .{
|
|
8653
|
-
.coerced_ty = try gz.
|
|
8653
|
+
.coerced_ty = try gz.addStdLangValue(clobbers_node, .clobbers),
|
|
8654
8654
|
} }, clobbers_node, .clobber)
|
|
8655
8655
|
else
|
|
8656
8656
|
.none;
|
|
@@ -8992,7 +8992,7 @@ fn builtinCall(
|
|
|
8992
8992
|
if (!allow_branch_hint) {
|
|
8993
8993
|
return astgen.failNode(node, "'@branchHint' must appear as the first statement in a function or conditional branch", .{});
|
|
8994
8994
|
}
|
|
8995
|
-
const hint_ty = try gz.
|
|
8995
|
+
const hint_ty = try gz.addStdLangValue(node, .branch_hint);
|
|
8996
8996
|
const hint_val = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = hint_ty } }, params[0], .operand_branchHint);
|
|
8997
8997
|
_ = try gz.addExtendedPayload(.branch_hint, Zir.Inst.UnNode{
|
|
8998
8998
|
.node = gz.nodeIndexToRelative(node),
|
|
@@ -9090,7 +9090,7 @@ fn builtinCall(
|
|
|
9090
9090
|
|
|
9091
9091
|
.@"export" => {
|
|
9092
9092
|
const exported = try expr(gz, scope, .{ .rl = .none }, params[0]);
|
|
9093
|
-
const export_options_ty = try gz.
|
|
9093
|
+
const export_options_ty = try gz.addStdLangValue(node, .export_options);
|
|
9094
9094
|
const options = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = export_options_ty } }, params[1], .export_options);
|
|
9095
9095
|
_ = try gz.addPlNode(.@"export", node, Zir.Inst.Export{
|
|
9096
9096
|
.exported = exported,
|
|
@@ -9100,7 +9100,7 @@ fn builtinCall(
|
|
|
9100
9100
|
},
|
|
9101
9101
|
.@"extern" => {
|
|
9102
9102
|
const type_inst = try typeExpr(gz, scope, params[0]);
|
|
9103
|
-
const extern_options_ty = try gz.
|
|
9103
|
+
const extern_options_ty = try gz.addStdLangValue(node, .extern_options);
|
|
9104
9104
|
const options = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = extern_options_ty } }, params[1], .extern_options);
|
|
9105
9105
|
const result = try gz.addExtendedPayload(.builtin_extern, Zir.Inst.BinNode{
|
|
9106
9106
|
.node = gz.nodeIndexToRelative(node),
|
|
@@ -9110,7 +9110,7 @@ fn builtinCall(
|
|
|
9110
9110
|
return rvalue(gz, ri, result, node);
|
|
9111
9111
|
},
|
|
9112
9112
|
.set_float_mode => {
|
|
9113
|
-
const float_mode_ty = try gz.
|
|
9113
|
+
const float_mode_ty = try gz.addStdLangValue(node, .float_mode);
|
|
9114
9114
|
const order = try expr(gz, scope, .{ .rl = .{ .coerced_ty = float_mode_ty } }, params[0]);
|
|
9115
9115
|
_ = try gz.addExtendedPayload(.set_float_mode, Zir.Inst.UnNode{
|
|
9116
9116
|
.node = gz.nodeIndexToRelative(node),
|
|
@@ -9196,7 +9196,7 @@ fn builtinCall(
|
|
|
9196
9196
|
|
|
9197
9197
|
.EnumLiteral => return rvalue(gz, ri, .enum_literal_type, node),
|
|
9198
9198
|
.Int => {
|
|
9199
|
-
const signedness_ty = try gz.
|
|
9199
|
+
const signedness_ty = try gz.addStdLangValue(node, .signedness);
|
|
9200
9200
|
const result = try gz.addPlNode(.reify_int, node, Zir.Inst.Bin{
|
|
9201
9201
|
.lhs = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = signedness_ty } }, params[0], .int_signedness),
|
|
9202
9202
|
.rhs = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = .u16_type } }, params[1], .int_bit_width),
|
|
@@ -9211,8 +9211,8 @@ fn builtinCall(
|
|
|
9211
9211
|
return rvalue(gz, ri, result, node);
|
|
9212
9212
|
},
|
|
9213
9213
|
.Pointer => {
|
|
9214
|
-
const ptr_size_ty = try gz.
|
|
9215
|
-
const ptr_attrs_ty = try gz.
|
|
9214
|
+
const ptr_size_ty = try gz.addStdLangValue(node, .pointer_size);
|
|
9215
|
+
const ptr_attrs_ty = try gz.addStdLangValue(node, .pointer_attributes);
|
|
9216
9216
|
const size = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = ptr_size_ty } }, params[0], .pointer_size);
|
|
9217
9217
|
const attrs = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = ptr_attrs_ty } }, params[1], .pointer_attrs);
|
|
9218
9218
|
const elem_ty = try typeExpr(gz, scope, params[2]);
|
|
@@ -9231,7 +9231,7 @@ fn builtinCall(
|
|
|
9231
9231
|
return rvalue(gz, ri, result, node);
|
|
9232
9232
|
},
|
|
9233
9233
|
.Fn => {
|
|
9234
|
-
const fn_attrs_ty = try gz.
|
|
9234
|
+
const fn_attrs_ty = try gz.addStdLangValue(node, .fn_attributes);
|
|
9235
9235
|
const param_types = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = .slice_const_type_type } }, params[0], .fn_param_types);
|
|
9236
9236
|
const param_attrs_ty = try gz.addExtendedPayloadSmall(
|
|
9237
9237
|
.reify_slice_arg_ty,
|
|
@@ -9251,7 +9251,7 @@ fn builtinCall(
|
|
|
9251
9251
|
return rvalue(gz, ri, result, node);
|
|
9252
9252
|
},
|
|
9253
9253
|
.Struct => {
|
|
9254
|
-
const container_layout_ty = try gz.
|
|
9254
|
+
const container_layout_ty = try gz.addStdLangValue(node, .container_layout);
|
|
9255
9255
|
const layout = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = container_layout_ty } }, params[0], .struct_layout);
|
|
9256
9256
|
const backing_ty = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = .optional_type_type } }, params[1], .type);
|
|
9257
9257
|
const field_names = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = .slice_const_slice_const_u8_type } }, params[2], .struct_field_names);
|
|
@@ -9279,7 +9279,7 @@ fn builtinCall(
|
|
|
9279
9279
|
return rvalue(gz, ri, result, node);
|
|
9280
9280
|
},
|
|
9281
9281
|
.Union => {
|
|
9282
|
-
const container_layout_ty = try gz.
|
|
9282
|
+
const container_layout_ty = try gz.addStdLangValue(node, .container_layout);
|
|
9283
9283
|
const layout = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = container_layout_ty } }, params[0], .union_layout);
|
|
9284
9284
|
const arg_ty = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = .optional_type_type } }, params[1], .type);
|
|
9285
9285
|
const field_names = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = .slice_const_slice_const_u8_type } }, params[2], .union_field_names);
|
|
@@ -9307,7 +9307,7 @@ fn builtinCall(
|
|
|
9307
9307
|
return rvalue(gz, ri, result, node);
|
|
9308
9308
|
},
|
|
9309
9309
|
.Enum => {
|
|
9310
|
-
const enum_mode_ty = try gz.
|
|
9310
|
+
const enum_mode_ty = try gz.addStdLangValue(node, .enum_mode);
|
|
9311
9311
|
const tag_ty = try typeExpr(gz, scope, params[0]);
|
|
9312
9312
|
const mode = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = enum_mode_ty } }, params[1], .type);
|
|
9313
9313
|
const field_names = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = .slice_const_slice_const_u8_type } }, params[2], .enum_field_names);
|
|
@@ -9425,7 +9425,7 @@ fn builtinCall(
|
|
|
9425
9425
|
return rvalue(gz, ri, result, node);
|
|
9426
9426
|
},
|
|
9427
9427
|
.reduce => {
|
|
9428
|
-
const reduce_op_ty = try gz.
|
|
9428
|
+
const reduce_op_ty = try gz.addStdLangValue(node, .reduce_op);
|
|
9429
9429
|
const op = try expr(gz, scope, .{ .rl = .{ .coerced_ty = reduce_op_ty } }, params[0]);
|
|
9430
9430
|
const scalar = try expr(gz, scope, .{ .rl = .none }, params[1]);
|
|
9431
9431
|
const result = try gz.addPlNode(.reduce, node, Zir.Inst.Bin{
|
|
@@ -9441,7 +9441,7 @@ fn builtinCall(
|
|
|
9441
9441
|
.shl_with_overflow => return overflowArithmetic(gz, scope, ri, node, params, .shl_with_overflow),
|
|
9442
9442
|
|
|
9443
9443
|
.atomic_load => {
|
|
9444
|
-
const atomic_order_type = try gz.
|
|
9444
|
+
const atomic_order_type = try gz.addStdLangValue(node, .atomic_order);
|
|
9445
9445
|
const result = try gz.addPlNode(.atomic_load, node, Zir.Inst.AtomicLoad{
|
|
9446
9446
|
// zig fmt: off
|
|
9447
9447
|
.elem_type = try typeExpr(gz, scope, params[0]),
|
|
@@ -9452,8 +9452,8 @@ fn builtinCall(
|
|
|
9452
9452
|
return rvalue(gz, ri, result, node);
|
|
9453
9453
|
},
|
|
9454
9454
|
.atomic_rmw => {
|
|
9455
|
-
const atomic_order_type = try gz.
|
|
9456
|
-
const atomic_rmw_op_type = try gz.
|
|
9455
|
+
const atomic_order_type = try gz.addStdLangValue(node, .atomic_order);
|
|
9456
|
+
const atomic_rmw_op_type = try gz.addStdLangValue(node, .atomic_rmw_op);
|
|
9457
9457
|
const int_type = try typeExpr(gz, scope, params[0]);
|
|
9458
9458
|
const result = try gz.addPlNode(.atomic_rmw, node, Zir.Inst.AtomicRmw{
|
|
9459
9459
|
// zig fmt: off
|
|
@@ -9466,7 +9466,7 @@ fn builtinCall(
|
|
|
9466
9466
|
return rvalue(gz, ri, result, node);
|
|
9467
9467
|
},
|
|
9468
9468
|
.atomic_store => {
|
|
9469
|
-
const atomic_order_type = try gz.
|
|
9469
|
+
const atomic_order_type = try gz.addStdLangValue(node, .atomic_order);
|
|
9470
9470
|
const int_type = try typeExpr(gz, scope, params[0]);
|
|
9471
9471
|
_ = try gz.addPlNode(.atomic_store, node, Zir.Inst.AtomicStore{
|
|
9472
9472
|
// zig fmt: off
|
|
@@ -9490,7 +9490,7 @@ fn builtinCall(
|
|
|
9490
9490
|
return rvalue(gz, ri, result, node);
|
|
9491
9491
|
},
|
|
9492
9492
|
.call => {
|
|
9493
|
-
const call_modifier_ty = try gz.
|
|
9493
|
+
const call_modifier_ty = try gz.addStdLangValue(node, .call_modifier);
|
|
9494
9494
|
const modifier = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = call_modifier_ty } }, params[0], .call_modifier);
|
|
9495
9495
|
const callee = try expr(gz, scope, .{ .rl = .none }, params[1]);
|
|
9496
9496
|
const args = try expr(gz, scope, .{ .rl = .none }, params[2]);
|
|
@@ -9567,7 +9567,7 @@ fn builtinCall(
|
|
|
9567
9567
|
return rvalue(gz, ri, result, node);
|
|
9568
9568
|
},
|
|
9569
9569
|
.prefetch => {
|
|
9570
|
-
const prefetch_options_ty = try gz.
|
|
9570
|
+
const prefetch_options_ty = try gz.addStdLangValue(node, .prefetch_options);
|
|
9571
9571
|
const ptr = try expr(gz, scope, .{ .rl = .none }, params[0]);
|
|
9572
9572
|
const options = try comptimeExpr(gz, scope, .{ .rl = .{ .coerced_ty = prefetch_options_ty } }, params[1], .prefetch_options);
|
|
9573
9573
|
_ = try gz.addExtendedPayload(.prefetch, Zir.Inst.BinNode{
|
|
@@ -9800,7 +9800,7 @@ fn cmpxchg(
|
|
|
9800
9800
|
small: u16,
|
|
9801
9801
|
) InnerError!Zir.Inst.Ref {
|
|
9802
9802
|
const int_type = try typeExpr(gz, scope, params[0]);
|
|
9803
|
-
const atomic_order_type = try gz.
|
|
9803
|
+
const atomic_order_type = try gz.addStdLangValue(node, .atomic_order);
|
|
9804
9804
|
const result = try gz.addExtendedPayloadSmall(.cmpxchg, small, Zir.Inst.Cmpxchg{
|
|
9805
9805
|
// zig fmt: off
|
|
9806
9806
|
.node = gz.nodeIndexToRelative(node),
|
|
@@ -9925,7 +9925,7 @@ fn callExpr(
|
|
|
9925
9925
|
const astgen = gz.astgen;
|
|
9926
9926
|
|
|
9927
9927
|
const callee = try calleeExpr(gz, scope, ri.rl, override_decl_literal_type, call.ast.fn_expr);
|
|
9928
|
-
const modifier: std.
|
|
9928
|
+
const modifier: std.lang.CallModifier = blk: {
|
|
9929
9929
|
if (gz.nosuspend_node != .none) {
|
|
9930
9930
|
break :blk .no_suspend;
|
|
9931
9931
|
}
|
|
@@ -11801,8 +11801,8 @@ const GenZir = struct {
|
|
|
11801
11801
|
return new_index;
|
|
11802
11802
|
}
|
|
11803
11803
|
|
|
11804
|
-
fn
|
|
11805
|
-
return addExtendedNodeSmall(gz, .
|
|
11804
|
+
fn addStdLangValue(gz: *GenZir, src_node: Ast.Node.Index, val: Zir.Inst.StdLangValue) !Zir.Inst.Ref {
|
|
11805
|
+
return addExtendedNodeSmall(gz, .std_lang_value, src_node, @intFromEnum(val));
|
|
11806
11806
|
}
|
|
11807
11807
|
|
|
11808
11808
|
fn addExtendedPayload(gz: *GenZir, opcode: Zir.Inst.Extended, extra: anytype) !Zir.Inst.Ref {
|
|
@@ -12350,7 +12350,7 @@ const GenZir = struct {
|
|
|
12350
12350
|
fn setStruct(gz: *GenZir, inst: Zir.Inst.Index, args: struct {
|
|
12351
12351
|
src_node: Ast.Node.Index,
|
|
12352
12352
|
name_strat: Zir.Inst.NameStrategy,
|
|
12353
|
-
layout: std.
|
|
12353
|
+
layout: std.lang.Type.ContainerLayout,
|
|
12354
12354
|
backing_int_type_body_len: ?u32,
|
|
12355
12355
|
decls_len: u32,
|
|
12356
12356
|
fields_len: u32,
|
|
@@ -70,7 +70,7 @@ pub fn parse(allocator: Allocator, io: Io, libc_file: []const u8, target: *const
|
|
|
70
70
|
if (value.len == 0) {
|
|
71
71
|
@field(self, field.name) = null;
|
|
72
72
|
} else {
|
|
73
|
-
found_keys[i].allocated = try allocator.
|
|
73
|
+
found_keys[i].allocated = try allocator.dupeSentinel(u8, value, 0);
|
|
74
74
|
@field(self, field.name) = found_keys[i].allocated;
|
|
75
75
|
}
|
|
76
76
|
break;
|
|
@@ -708,8 +708,8 @@ pub const CrtBasenames = struct {
|
|
|
708
708
|
pub const GetArgs = struct {
|
|
709
709
|
target: *const std.Target,
|
|
710
710
|
link_libc: bool,
|
|
711
|
-
output_mode: std.
|
|
712
|
-
link_mode: std.
|
|
711
|
+
output_mode: std.lang.OutputMode,
|
|
712
|
+
link_mode: std.lang.LinkMode,
|
|
713
713
|
pie: bool,
|
|
714
714
|
};
|
|
715
715
|
|
package/std/zig/Zir.zig
CHANGED
|
@@ -2119,10 +2119,10 @@ pub const Inst = struct {
|
|
|
2119
2119
|
/// Guaranteed to not have the `ptr_cast` flag.
|
|
2120
2120
|
/// Uses the `pl_node` union field with payload `FieldParentPtr`.
|
|
2121
2121
|
field_parent_ptr,
|
|
2122
|
-
/// Get a type or value from `std.
|
|
2122
|
+
/// Get a type or value from `std.lang`.
|
|
2123
2123
|
/// `operand` is `src_node: Ast.Node.Offset`.
|
|
2124
|
-
/// `small` is an `Inst.
|
|
2125
|
-
|
|
2124
|
+
/// `small` is an `Inst.StdLangValue`.
|
|
2125
|
+
std_lang_value,
|
|
2126
2126
|
/// Provide a `@branchHint` for the current block.
|
|
2127
2127
|
/// `operand` is payload index to `UnNode`.
|
|
2128
2128
|
/// `small` is unused.
|
|
@@ -2418,7 +2418,7 @@ pub const Inst = struct {
|
|
|
2418
2418
|
has_bit_range: bool,
|
|
2419
2419
|
_: u1 = 0,
|
|
2420
2420
|
},
|
|
2421
|
-
size: std.
|
|
2421
|
+
size: std.lang.Type.Pointer.Size,
|
|
2422
2422
|
/// Index into extra. See `PtrType`.
|
|
2423
2423
|
payload_index: u32,
|
|
2424
2424
|
},
|
|
@@ -2426,7 +2426,7 @@ pub const Inst = struct {
|
|
|
2426
2426
|
/// Offset from Decl AST node index.
|
|
2427
2427
|
/// `Tag` determines which kind of AST node this points to.
|
|
2428
2428
|
src_node: Ast.Node.Offset,
|
|
2429
|
-
signedness: std.
|
|
2429
|
+
signedness: std.lang.Signedness,
|
|
2430
2430
|
bit_count: u16,
|
|
2431
2431
|
},
|
|
2432
2432
|
@"unreachable": struct {
|
|
@@ -3051,7 +3051,7 @@ pub const Inst = struct {
|
|
|
3051
3051
|
callee: Ref,
|
|
3052
3052
|
|
|
3053
3053
|
pub const Flags = packed struct {
|
|
3054
|
-
/// std.
|
|
3054
|
+
/// std.lang.CallModifier in packed form
|
|
3055
3055
|
pub const PackedModifier = u3;
|
|
3056
3056
|
pub const PackedArgsLen = u27;
|
|
3057
3057
|
|
|
@@ -3063,7 +3063,7 @@ pub const Inst = struct {
|
|
|
3063
3063
|
comptime {
|
|
3064
3064
|
if (@sizeOf(Flags) != 4 or @bitSizeOf(Flags) != 32)
|
|
3065
3065
|
@compileError("Layout of Call.Flags needs to be updated!");
|
|
3066
|
-
if (@bitSizeOf(std.
|
|
3066
|
+
if (@bitSizeOf(std.lang.CallModifier) != @bitSizeOf(PackedModifier))
|
|
3067
3067
|
@compileError("Call.Flags.PackedModifier needs to be updated!");
|
|
3068
3068
|
}
|
|
3069
3069
|
};
|
|
@@ -3186,7 +3186,7 @@ pub const Inst = struct {
|
|
|
3186
3186
|
|
|
3187
3187
|
pub const ReifySliceArgInfo = enum(u16) {
|
|
3188
3188
|
/// Input element type is `type`.
|
|
3189
|
-
/// Output element type is `std.
|
|
3189
|
+
/// Output element type is `std.lang.Type.Fn.Param.Attributes`.
|
|
3190
3190
|
type_to_fn_param_attrs,
|
|
3191
3191
|
/// Input element type is `[]const u8`.
|
|
3192
3192
|
/// Output element type is `type`.
|
|
@@ -3194,10 +3194,10 @@ pub const Inst = struct {
|
|
|
3194
3194
|
/// Identical to `string_to_struct_field_type` aside from emitting slightly different error messages.
|
|
3195
3195
|
string_to_union_field_type,
|
|
3196
3196
|
/// Input element type is `[]const u8`.
|
|
3197
|
-
/// Output element type is `std.
|
|
3197
|
+
/// Output element type is `std.lang.Type.StructField.Attributes`.
|
|
3198
3198
|
string_to_struct_field_attrs,
|
|
3199
3199
|
/// Input element type is `[]const u8`.
|
|
3200
|
-
/// Output element type is `std.
|
|
3200
|
+
/// Output element type is `std.lang.Type.UnionField.Attributes`.
|
|
3201
3201
|
string_to_union_field_attrs,
|
|
3202
3202
|
};
|
|
3203
3203
|
|
|
@@ -3468,7 +3468,7 @@ pub const Inst = struct {
|
|
|
3468
3468
|
has_decls_len: bool,
|
|
3469
3469
|
has_fields_len: bool,
|
|
3470
3470
|
name_strategy: NameStrategy,
|
|
3471
|
-
layout: std.
|
|
3471
|
+
layout: std.lang.Type.ContainerLayout,
|
|
3472
3472
|
/// Always `false` if `layout != .@"packed"`.
|
|
3473
3473
|
has_backing_int_type: bool,
|
|
3474
3474
|
any_field_aligns: bool,
|
|
@@ -3564,7 +3564,7 @@ pub const Inst = struct {
|
|
|
3564
3564
|
}
|
|
3565
3565
|
};
|
|
3566
3566
|
|
|
3567
|
-
pub const
|
|
3567
|
+
pub const StdLangValue = enum(u16) {
|
|
3568
3568
|
// Types
|
|
3569
3569
|
atomic_order,
|
|
3570
3570
|
atomic_rmw_op,
|
|
@@ -3688,7 +3688,7 @@ pub const Inst = struct {
|
|
|
3688
3688
|
};
|
|
3689
3689
|
}
|
|
3690
3690
|
|
|
3691
|
-
pub fn layout(k: Kind) std.
|
|
3691
|
+
pub fn layout(k: Kind) std.lang.Type.ContainerLayout {
|
|
3692
3692
|
return switch (k) {
|
|
3693
3693
|
.auto, .tagged_explicit, .tagged_enum, .tagged_enum_explicit => .auto,
|
|
3694
3694
|
.@"extern" => .@"extern",
|
|
@@ -4368,7 +4368,7 @@ fn findTrackableInner(
|
|
|
4368
4368
|
.restore_err_ret_index,
|
|
4369
4369
|
.closure_get,
|
|
4370
4370
|
.field_parent_ptr,
|
|
4371
|
-
.
|
|
4371
|
+
.std_lang_value,
|
|
4372
4372
|
.branch_hint,
|
|
4373
4373
|
.inplace_arith_result_ty,
|
|
4374
4374
|
.tuple_decl,
|
|
@@ -5286,7 +5286,7 @@ pub const UnwrappedStructDecl = struct {
|
|
|
5286
5286
|
|
|
5287
5287
|
decls: []const Inst.Index,
|
|
5288
5288
|
|
|
5289
|
-
layout: std.
|
|
5289
|
+
layout: std.lang.Type.ContainerLayout,
|
|
5290
5290
|
backing_int_type_body: ?[]const Inst.Index,
|
|
5291
5291
|
|
|
5292
5292
|
field_names: []const NullTerminatedString,
|
package/std/zig/llvm/Builder.zig
CHANGED
|
@@ -1830,7 +1830,7 @@ pub const Visibility = enum(u2) {
|
|
|
1830
1830
|
hidden = 1,
|
|
1831
1831
|
protected = 2,
|
|
1832
1832
|
|
|
1833
|
-
pub fn fromSymbolVisibility(sv: std.
|
|
1833
|
+
pub fn fromSymbolVisibility(sv: std.lang.SymbolVisibility) Visibility {
|
|
1834
1834
|
return switch (sv) {
|
|
1835
1835
|
.default => .default,
|
|
1836
1836
|
.hidden => .hidden,
|
|
@@ -7657,9 +7657,9 @@ pub const Constant = enum(u32) {
|
|
|
7657
7657
|
.float => {
|
|
7658
7658
|
const Float = struct {
|
|
7659
7659
|
fn Repr(comptime T: type) type {
|
|
7660
|
-
return packed struct(
|
|
7661
|
-
mantissa:
|
|
7662
|
-
exponent:
|
|
7660
|
+
return packed struct(@Int(.unsigned, @bitSizeOf(T))) {
|
|
7661
|
+
mantissa: @Int(.unsigned, std.math.floatMantissaBits(T)),
|
|
7662
|
+
exponent: @Int(.unsigned, std.math.floatExponentBits(T)),
|
|
7663
7663
|
sign: u1,
|
|
7664
7664
|
};
|
|
7665
7665
|
}
|
|
@@ -9718,8 +9718,7 @@ pub fn print(self: *Builder, w: *Writer) (Writer.Error || Allocator.Error)!void
|
|
|
9718
9718
|
metadata_formatter.need_comma = true;
|
|
9719
9719
|
defer metadata_formatter.need_comma = undefined;
|
|
9720
9720
|
try w.print(
|
|
9721
|
-
\\{f} ={f}{f}{f}{f}{f}{f}{f}{f} {s} {f}{f}
|
|
9722
|
-
\\
|
|
9721
|
+
\\{f} ={f}{f}{f}{f}{f}{f}{f}{f} {s} {f}{f}
|
|
9723
9722
|
, .{
|
|
9724
9723
|
variable.global.fmt(self),
|
|
9725
9724
|
Linkage.fmtOptional(
|
|
@@ -9735,6 +9734,14 @@ pub fn print(self: *Builder, w: *Writer) (Writer.Error || Allocator.Error)!void
|
|
|
9735
9734
|
@tagName(variable.mutability),
|
|
9736
9735
|
global.type.fmt(self, .percent),
|
|
9737
9736
|
variable.init.fmt(self, .{ .space = true }),
|
|
9737
|
+
});
|
|
9738
|
+
if (variable.section != .none) {
|
|
9739
|
+
try w.print(", section {f}", .{variable.section.fmtQ(self)});
|
|
9740
|
+
}
|
|
9741
|
+
try w.print(
|
|
9742
|
+
\\{f}{f}
|
|
9743
|
+
\\
|
|
9744
|
+
, .{
|
|
9738
9745
|
variable.alignment.fmt(", "),
|
|
9739
9746
|
try metadata_formatter.fmt("!dbg ", global.dbg, null),
|
|
9740
9747
|
});
|
|
@@ -9828,6 +9835,9 @@ pub fn print(self: *Builder, w: *Writer) (Writer.Error || Allocator.Error)!void
|
|
|
9828
9835
|
{
|
|
9829
9836
|
metadata_formatter.need_comma = false;
|
|
9830
9837
|
defer metadata_formatter.need_comma = undefined;
|
|
9838
|
+
if (function.section != .none) {
|
|
9839
|
+
try w.print(" section {f}", .{function.section.fmtQ(self)});
|
|
9840
|
+
}
|
|
9831
9841
|
try w.print("{f}{f}", .{
|
|
9832
9842
|
function.alignment.fmt(" "),
|
|
9833
9843
|
try metadata_formatter.fmt(" !dbg ", global.dbg, null),
|
|
@@ -404,7 +404,7 @@ fn charTo6Bit(c: u8) u8 {
|
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
fn BufType(comptime T: type, comptime min_len: usize) type {
|
|
407
|
-
return
|
|
407
|
+
return @Int(.unsigned, @max(min_len, @bitSizeOf(switch (@typeInfo(T)) {
|
|
408
408
|
.comptime_int => u32,
|
|
409
409
|
.int => |info| if (info.signedness == .unsigned)
|
|
410
410
|
T
|
|
@@ -414,7 +414,7 @@ fn BufType(comptime T: type, comptime min_len: usize) type {
|
|
|
414
414
|
.bool => u1,
|
|
415
415
|
.@"struct" => |info| switch (info.layout) {
|
|
416
416
|
.auto, .@"extern" => @compileError("Unsupported type: " ++ @typeName(T)),
|
|
417
|
-
.@"packed" =>
|
|
417
|
+
.@"packed" => @Int(.unsigned, @bitSizeOf(T)),
|
|
418
418
|
},
|
|
419
419
|
else => @compileError("Unsupported type: " ++ @typeName(T)),
|
|
420
420
|
})));
|
|
@@ -425,7 +425,7 @@ fn bufValue(value: anytype, comptime min_len: usize) BufType(@TypeOf(value), min
|
|
|
425
425
|
.comptime_int, .int => @intCast(value),
|
|
426
426
|
.@"enum" => @intFromEnum(value),
|
|
427
427
|
.bool => @intFromBool(value),
|
|
428
|
-
.@"struct" => @intCast(@as(
|
|
428
|
+
.@"struct" => @intCast(@as(@Int(.unsigned, @bitSizeOf(@TypeOf(value))), @bitCast(value))),
|
|
429
429
|
else => unreachable,
|
|
430
430
|
};
|
|
431
431
|
}
|
package/std/zig/llvm/ir.zig
CHANGED
|
@@ -235,7 +235,7 @@ pub const ModuleBlock = struct {
|
|
|
235
235
|
is_const: AddrSpaceAndIsConst,
|
|
236
236
|
initid: u32,
|
|
237
237
|
linkage: Builder.Linkage,
|
|
238
|
-
alignment:
|
|
238
|
+
alignment: @Int(.unsigned, @bitSizeOf(Builder.Alignment)),
|
|
239
239
|
section: usize,
|
|
240
240
|
visibility: Builder.Visibility,
|
|
241
241
|
thread_local: Builder.ThreadLocal,
|
|
@@ -275,7 +275,7 @@ pub const ModuleBlock = struct {
|
|
|
275
275
|
is_proto: bool,
|
|
276
276
|
linkage: Builder.Linkage,
|
|
277
277
|
paramattr: usize,
|
|
278
|
-
alignment:
|
|
278
|
+
alignment: @Int(.unsigned, @bitSizeOf(Builder.Alignment)),
|
|
279
279
|
section: usize,
|
|
280
280
|
visibility: Builder.Visibility,
|
|
281
281
|
unnamed_addr: Builder.UnnamedAddr,
|
|
@@ -1214,7 +1214,7 @@ pub const ModuleBlock = struct {
|
|
|
1214
1214
|
};
|
|
1215
1215
|
ptr: u32,
|
|
1216
1216
|
ty: Builder.Type,
|
|
1217
|
-
alignment:
|
|
1217
|
+
alignment: @Int(.unsigned, @bitSizeOf(Builder.Alignment)),
|
|
1218
1218
|
is_volatile: bool,
|
|
1219
1219
|
};
|
|
1220
1220
|
|
|
@@ -1230,7 +1230,7 @@ pub const ModuleBlock = struct {
|
|
|
1230
1230
|
};
|
|
1231
1231
|
ptr: u32,
|
|
1232
1232
|
ty: Builder.Type,
|
|
1233
|
-
alignment:
|
|
1233
|
+
alignment: @Int(.unsigned, @bitSizeOf(Builder.Alignment)),
|
|
1234
1234
|
is_volatile: bool,
|
|
1235
1235
|
success_ordering: Builder.AtomicOrdering,
|
|
1236
1236
|
sync_scope: Builder.SyncScope,
|
|
@@ -1246,7 +1246,7 @@ pub const ModuleBlock = struct {
|
|
|
1246
1246
|
};
|
|
1247
1247
|
ptr: u32,
|
|
1248
1248
|
val: u32,
|
|
1249
|
-
alignment:
|
|
1249
|
+
alignment: @Int(.unsigned, @bitSizeOf(Builder.Alignment)),
|
|
1250
1250
|
is_volatile: bool,
|
|
1251
1251
|
};
|
|
1252
1252
|
|
|
@@ -1262,7 +1262,7 @@ pub const ModuleBlock = struct {
|
|
|
1262
1262
|
};
|
|
1263
1263
|
ptr: u32,
|
|
1264
1264
|
val: u32,
|
|
1265
|
-
alignment:
|
|
1265
|
+
alignment: @Int(.unsigned, @bitSizeOf(Builder.Alignment)),
|
|
1266
1266
|
is_volatile: bool,
|
|
1267
1267
|
success_ordering: Builder.AtomicOrdering,
|
|
1268
1268
|
sync_scope: Builder.SyncScope,
|
|
@@ -1317,7 +1317,7 @@ pub const ModuleBlock = struct {
|
|
|
1317
1317
|
is_volatile: bool,
|
|
1318
1318
|
success_ordering: Builder.AtomicOrdering,
|
|
1319
1319
|
sync_scope: Builder.SyncScope,
|
|
1320
|
-
alignment:
|
|
1320
|
+
alignment: @Int(.unsigned, @bitSizeOf(Builder.Alignment)),
|
|
1321
1321
|
};
|
|
1322
1322
|
|
|
1323
1323
|
pub const CmpXchg = struct {
|
|
@@ -1341,7 +1341,7 @@ pub const ModuleBlock = struct {
|
|
|
1341
1341
|
sync_scope: Builder.SyncScope,
|
|
1342
1342
|
failure_ordering: Builder.AtomicOrdering,
|
|
1343
1343
|
is_weak: bool,
|
|
1344
|
-
alignment:
|
|
1344
|
+
alignment: @Int(.unsigned, @bitSizeOf(Builder.Alignment)),
|
|
1345
1345
|
};
|
|
1346
1346
|
|
|
1347
1347
|
pub const Fence = struct {
|
package/std/zig/target.zig
CHANGED
|
@@ -76,8 +76,6 @@ pub const available_libcs = [_]ArchOsAbi{
|
|
|
76
76
|
.{ .arch = .mips64el, .os = .linux, .abi = .muslabi64, .os_ver = .{ .major = 2, .minor = 3, .patch = 48 } },
|
|
77
77
|
.{ .arch = .mips64el, .os = .linux, .abi = .muslabin32, .os_ver = .{ .major = 2, .minor = 6, .patch = 0 } },
|
|
78
78
|
.{ .arch = .mips64el, .os = .openbsd, .abi = .none, .os_ver = .{ .major = 4, .minor = 7, .patch = 0 } },
|
|
79
|
-
.{ .arch = .powerpc, .os = .linux, .abi = .gnueabi, .os_ver = .{ .major = 1, .minor = 3, .patch = 45 }, .glibc_triple = "powerpc-linux-gnu-soft" },
|
|
80
|
-
.{ .arch = .powerpc, .os = .linux, .abi = .gnueabihf, .os_ver = .{ .major = 1, .minor = 3, .patch = 45 }, .glibc_triple = "powerpc-linux-gnu" },
|
|
81
79
|
.{ .arch = .powerpc, .os = .linux, .abi = .musleabi, .os_ver = .{ .major = 1, .minor = 3, .patch = 45 } },
|
|
82
80
|
.{ .arch = .powerpc, .os = .linux, .abi = .musleabihf, .os_ver = .{ .major = 1, .minor = 3, .patch = 45 } },
|
|
83
81
|
.{ .arch = .powerpc, .os = .netbsd, .abi = .eabi, .os_ver = .{ .major = 6, .minor = 0, .patch = 0 } },
|
|
@@ -244,7 +242,7 @@ pub fn glibcArchNameHeaders(arch: std.Target.Cpu.Arch) [:0]const u8 {
|
|
|
244
242
|
.arm, .armeb => "arm",
|
|
245
243
|
.loongarch64 => "loongarch",
|
|
246
244
|
.mips, .mipsel, .mips64, .mips64el => "mips",
|
|
247
|
-
.
|
|
245
|
+
.powerpc64le => "powerpc",
|
|
248
246
|
.riscv32, .riscv64 => "riscv",
|
|
249
247
|
.sparc, .sparc64 => "sparc",
|
|
250
248
|
.x86, .x86_64 => "x86",
|
package/std/zig.zig
CHANGED
|
@@ -876,7 +876,7 @@ pub const SimpleComptimeReason = enum(u32) {
|
|
|
876
876
|
casted_to_comptime_enum,
|
|
877
877
|
casted_to_comptime_int,
|
|
878
878
|
casted_to_comptime_float,
|
|
879
|
-
|
|
879
|
+
std_lang_decl,
|
|
880
880
|
|
|
881
881
|
pub fn message(r: SimpleComptimeReason) []const u8 {
|
|
882
882
|
return switch (r) {
|
|
@@ -959,7 +959,7 @@ pub const SimpleComptimeReason = enum(u32) {
|
|
|
959
959
|
.casted_to_comptime_enum => "value casted to enum with 'comptime_int' tag type must be comptime-known",
|
|
960
960
|
.casted_to_comptime_int => "value casted to 'comptime_int' must be comptime-known",
|
|
961
961
|
.casted_to_comptime_float => "value casted to 'comptime_float' must be comptime-known",
|
|
962
|
-
.
|
|
962
|
+
.std_lang_decl => "'std.lang' declaration values must be comptime-known",
|
|
963
963
|
// zig fmt: on
|
|
964
964
|
};
|
|
965
965
|
}
|
|
File without changes
|