| author | |
| committer | |
| log | 40ba4d4a89cc30ac5f5cbb560a2f8d75f0b3145e |
| tree | 7e54829c07e67957f02ae28b626149bd3a893f35 |
| parent | 0d83487dd098f9498d907f06535e645cc8bcf3de |
| parent | 8403612adc67d6398b3664b20eb453475688bd46 |
| signature |
WebAssembly: remove unconditional --allow-undefined flag189 files changed, 605 insertions(+), 609 deletions(-)
lib/compiler_rt/absvdi2.zig+1-1| ... | @@ -4,7 +4,7 @@ const absv = @import("./absv.zig").absv; | ... | @@ -4,7 +4,7 @@ const absv = @import("./absv.zig").absv; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__absvdi2, .{ .name = "__absvdi2", .linkage = common.linkage }); | 7 | @export(__absvdi2, .{ .name = "__absvdi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | pub fn __absvdi2(a: i64) callconv(.C) i64 { | 10 | pub fn __absvdi2(a: i64) callconv(.C) i64 { |
lib/compiler_rt/absvsi2.zig+1-1| ... | @@ -4,7 +4,7 @@ const absv = @import("./absv.zig").absv; | ... | @@ -4,7 +4,7 @@ const absv = @import("./absv.zig").absv; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__absvsi2, .{ .name = "__absvsi2", .linkage = common.linkage }); | 7 | @export(__absvsi2, .{ .name = "__absvsi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | pub fn __absvsi2(a: i32) callconv(.C) i32 { | 10 | pub fn __absvsi2(a: i32) callconv(.C) i32 { |
lib/compiler_rt/absvti2.zig+1-1| ... | @@ -4,7 +4,7 @@ const absv = @import("./absv.zig").absv; | ... | @@ -4,7 +4,7 @@ const absv = @import("./absv.zig").absv; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__absvti2, .{ .name = "__absvti2", .linkage = common.linkage }); | 7 | @export(__absvti2, .{ .name = "__absvti2", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | pub fn __absvti2(a: i128) callconv(.C) i128 { | 10 | pub fn __absvti2(a: i128) callconv(.C) i128 { |
lib/compiler_rt/adddf3.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_dadd, .{ .name = "__aeabi_dadd", .linkage = common.linkage }); | 8 | @export(__aeabi_dadd, .{ .name = "__aeabi_dadd", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__adddf3, .{ .name = "__adddf3", .linkage = common.linkage }); | 10 | @export(__adddf3, .{ .name = "__adddf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/addhf3.zig+1-1| ... | @@ -4,7 +4,7 @@ const addf3 = @import("./addf3.zig").addf3; | ... | @@ -4,7 +4,7 @@ const addf3 = @import("./addf3.zig").addf3; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__addhf3, .{ .name = "__addhf3", .linkage = common.linkage }); | 7 | @export(__addhf3, .{ .name = "__addhf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __addhf3(a: f16, b: f16) callconv(.C) f16 { | 10 | fn __addhf3(a: f16, b: f16) callconv(.C) f16 { |
lib/compiler_rt/addo.zig+4-4| ... | @@ -1,13 +1,13 @@ | ... | @@ -1,13 +1,13 @@ |
| 1 | const std = @import("std"); | 1 | const std = @import("std"); |
| 2 | const builtin = @import("builtin"); | 2 | const builtin = @import("builtin"); |
| 3 | const is_test = builtin.is_test; | 3 | const is_test = builtin.is_test; |
| 4 | const linkage: std.builtin.GlobalLinkage = if (builtin.is_test) .Internal else .Weak; | 4 | const common = @import("./common.zig"); |
| 5 | pub const panic = @import("common.zig").panic; | 5 | pub const panic = @import("common.zig").panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | @export(__addosi4, .{ .name = "__addosi4", .linkage = linkage }); | 8 | @export(__addosi4, .{ .name = "__addosi4", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | @export(__addodi4, .{ .name = "__addodi4", .linkage = linkage }); | 9 | @export(__addodi4, .{ .name = "__addodi4", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | @export(__addoti4, .{ .name = "__addoti4", .linkage = linkage }); | 10 | @export(__addoti4, .{ .name = "__addoti4", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | // addo - add overflow | 13 | // addo - add overflow |
lib/compiler_rt/addsf3.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_fadd, .{ .name = "__aeabi_fadd", .linkage = common.linkage }); | 8 | @export(__aeabi_fadd, .{ .name = "__aeabi_fadd", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__addsf3, .{ .name = "__addsf3", .linkage = common.linkage }); | 10 | @export(__addsf3, .{ .name = "__addsf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/addtf3.zig+3-3| ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; | ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_ppc_abi) { | 7 | if (common.want_ppc_abi) { |
| 8 | @export(__addtf3, .{ .name = "__addkf3", .linkage = common.linkage }); | 8 | @export(__addtf3, .{ .name = "__addkf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else if (common.want_sparc_abi) { | 9 | } else if (common.want_sparc_abi) { |
| 10 | @export(_Qp_add, .{ .name = "_Qp_add", .linkage = common.linkage }); | 10 | @export(_Qp_add, .{ .name = "_Qp_add", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | @export(__addtf3, .{ .name = "__addtf3", .linkage = common.linkage }); | 12 | @export(__addtf3, .{ .name = "__addtf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | pub fn __addtf3(a: f128, b: f128) callconv(.C) f128 { | 15 | pub fn __addtf3(a: f128, b: f128) callconv(.C) f128 { |
lib/compiler_rt/addxf3.zig+1-1| ... | @@ -4,7 +4,7 @@ const addf3 = @import("./addf3.zig").addf3; | ... | @@ -4,7 +4,7 @@ const addf3 = @import("./addf3.zig").addf3; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__addxf3, .{ .name = "__addxf3", .linkage = common.linkage }); | 7 | @export(__addxf3, .{ .name = "__addxf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | pub fn __addxf3(a: f80, b: f80) callconv(.C) f80 { | 10 | pub fn __addxf3(a: f80, b: f80) callconv(.C) f80 { |
lib/compiler_rt/arm.zig+20-20| ... | @@ -9,34 +9,34 @@ pub const panic = common.panic; | ... | @@ -9,34 +9,34 @@ pub const panic = common.panic; |
| 9 | comptime { | 9 | comptime { |
| 10 | if (!builtin.is_test) { | 10 | if (!builtin.is_test) { |
| 11 | if (arch.isARM() or arch.isThumb()) { | 11 | if (arch.isARM() or arch.isThumb()) { |
| 12 | @export(__aeabi_unwind_cpp_pr0, .{ .name = "__aeabi_unwind_cpp_pr0", .linkage = common.linkage }); | 12 | @export(__aeabi_unwind_cpp_pr0, .{ .name = "__aeabi_unwind_cpp_pr0", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | @export(__aeabi_unwind_cpp_pr1, .{ .name = "__aeabi_unwind_cpp_pr1", .linkage = common.linkage }); | 13 | @export(__aeabi_unwind_cpp_pr1, .{ .name = "__aeabi_unwind_cpp_pr1", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | @export(__aeabi_unwind_cpp_pr2, .{ .name = "__aeabi_unwind_cpp_pr2", .linkage = common.linkage }); | 14 | @export(__aeabi_unwind_cpp_pr2, .{ .name = "__aeabi_unwind_cpp_pr2", .linkage = common.linkage, .visibility = common.visibility }); |
| 15 | 15 | ||
| 16 | @export(__aeabi_ldivmod, .{ .name = "__aeabi_ldivmod", .linkage = common.linkage }); | 16 | @export(__aeabi_ldivmod, .{ .name = "__aeabi_ldivmod", .linkage = common.linkage, .visibility = common.visibility }); |
| 17 | @export(__aeabi_uldivmod, .{ .name = "__aeabi_uldivmod", .linkage = common.linkage }); | 17 | @export(__aeabi_uldivmod, .{ .name = "__aeabi_uldivmod", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | 18 | ||
| 19 | @export(__aeabi_idivmod, .{ .name = "__aeabi_idivmod", .linkage = common.linkage }); | 19 | @export(__aeabi_idivmod, .{ .name = "__aeabi_idivmod", .linkage = common.linkage, .visibility = common.visibility }); |
| 20 | @export(__aeabi_uidivmod, .{ .name = "__aeabi_uidivmod", .linkage = common.linkage }); | 20 | @export(__aeabi_uidivmod, .{ .name = "__aeabi_uidivmod", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | 21 | ||
| 22 | @export(__aeabi_memcpy, .{ .name = "__aeabi_memcpy", .linkage = common.linkage }); | 22 | @export(__aeabi_memcpy, .{ .name = "__aeabi_memcpy", .linkage = common.linkage, .visibility = common.visibility }); |
| 23 | @export(__aeabi_memcpy4, .{ .name = "__aeabi_memcpy4", .linkage = common.linkage }); | 23 | @export(__aeabi_memcpy4, .{ .name = "__aeabi_memcpy4", .linkage = common.linkage, .visibility = common.visibility }); |
| 24 | @export(__aeabi_memcpy8, .{ .name = "__aeabi_memcpy8", .linkage = common.linkage }); | 24 | @export(__aeabi_memcpy8, .{ .name = "__aeabi_memcpy8", .linkage = common.linkage, .visibility = common.visibility }); |
| 25 | 25 | ||
| 26 | @export(__aeabi_memmove, .{ .name = "__aeabi_memmove", .linkage = common.linkage }); | 26 | @export(__aeabi_memmove, .{ .name = "__aeabi_memmove", .linkage = common.linkage, .visibility = common.visibility }); |
| 27 | @export(__aeabi_memmove4, .{ .name = "__aeabi_memmove4", .linkage = common.linkage }); | 27 | @export(__aeabi_memmove4, .{ .name = "__aeabi_memmove4", .linkage = common.linkage, .visibility = common.visibility }); |
| 28 | @export(__aeabi_memmove8, .{ .name = "__aeabi_memmove8", .linkage = common.linkage }); | 28 | @export(__aeabi_memmove8, .{ .name = "__aeabi_memmove8", .linkage = common.linkage, .visibility = common.visibility }); |
| 29 | 29 | ||
| 30 | @export(__aeabi_memset, .{ .name = "__aeabi_memset", .linkage = common.linkage }); | 30 | @export(__aeabi_memset, .{ .name = "__aeabi_memset", .linkage = common.linkage, .visibility = common.visibility }); |
| 31 | @export(__aeabi_memset4, .{ .name = "__aeabi_memset4", .linkage = common.linkage }); | 31 | @export(__aeabi_memset4, .{ .name = "__aeabi_memset4", .linkage = common.linkage, .visibility = common.visibility }); |
| 32 | @export(__aeabi_memset8, .{ .name = "__aeabi_memset8", .linkage = common.linkage }); | 32 | @export(__aeabi_memset8, .{ .name = "__aeabi_memset8", .linkage = common.linkage, .visibility = common.visibility }); |
| 33 | 33 | ||
| 34 | @export(__aeabi_memclr, .{ .name = "__aeabi_memclr", .linkage = common.linkage }); | 34 | @export(__aeabi_memclr, .{ .name = "__aeabi_memclr", .linkage = common.linkage, .visibility = common.visibility }); |
| 35 | @export(__aeabi_memclr4, .{ .name = "__aeabi_memclr4", .linkage = common.linkage }); | 35 | @export(__aeabi_memclr4, .{ .name = "__aeabi_memclr4", .linkage = common.linkage, .visibility = common.visibility }); |
| 36 | @export(__aeabi_memclr8, .{ .name = "__aeabi_memclr8", .linkage = common.linkage }); | 36 | @export(__aeabi_memclr8, .{ .name = "__aeabi_memclr8", .linkage = common.linkage, .visibility = common.visibility }); |
| 37 | 37 | ||
| 38 | if (builtin.os.tag == .linux) { | 38 | if (builtin.os.tag == .linux) { |
| 39 | @export(__aeabi_read_tp, .{ .name = "__aeabi_read_tp", .linkage = common.linkage }); | 39 | @export(__aeabi_read_tp, .{ .name = "__aeabi_read_tp", .linkage = common.linkage, .visibility = common.visibility }); |
| 40 | } | 40 | } |
| 41 | } | 41 | } |
| 42 | } | 42 | } |
lib/compiler_rt/atomics.zig+58-56| ... | @@ -1,9 +1,11 @@ | ... | @@ -1,9 +1,11 @@ |
| 1 | const std = @import("std"); | 1 | const std = @import("std"); |
| 2 | const builtin = @import("builtin"); | 2 | const builtin = @import("builtin"); |
| 3 | const common = @import("./common.zig"); | ||
| 3 | const cpu = builtin.cpu; | 4 | const cpu = builtin.cpu; |
| 4 | const arch = cpu.arch; | 5 | const arch = cpu.arch; |
| 5 | const linkage: std.builtin.GlobalLinkage = if (builtin.is_test) .Internal else .Weak; | 6 | const linkage = common.linkage; |
| 6 | pub const panic = @import("common.zig").panic; | 7 | const visibility = common.visibility; |
| 8 | pub const panic = common.panic; | ||
| 7 | 9 | ||
| 8 | // This parameter is true iff the target architecture supports the bare minimum | 10 | // This parameter is true iff the target architecture supports the bare minimum |
| 9 | // to implement the atomic load/store intrinsics. | 11 | // to implement the atomic load/store intrinsics. |
| ... | @@ -454,59 +456,59 @@ fn __atomic_fetch_nand_8(ptr: *u64, val: u64, model: i32) callconv(.C) u64 { | ... | @@ -454,59 +456,59 @@ fn __atomic_fetch_nand_8(ptr: *u64, val: u64, model: i32) callconv(.C) u64 { |
| 454 | 456 | ||
| 455 | comptime { | 457 | comptime { |
| 456 | if (supports_atomic_ops and builtin.object_format != .c) { | 458 | if (supports_atomic_ops and builtin.object_format != .c) { |
| 457 | @export(__atomic_load, .{ .name = "__atomic_load", .linkage = linkage }); | 459 | @export(__atomic_load, .{ .name = "__atomic_load", .linkage = linkage, .visibility = visibility }); |
| 458 | @export(__atomic_store, .{ .name = "__atomic_store", .linkage = linkage }); | 460 | @export(__atomic_store, .{ .name = "__atomic_store", .linkage = linkage, .visibility = visibility }); |
| 459 | @export(__atomic_exchange, .{ .name = "__atomic_exchange", .linkage = linkage }); | 461 | @export(__atomic_exchange, .{ .name = "__atomic_exchange", .linkage = linkage, .visibility = visibility }); |
| 460 | @export(__atomic_compare_exchange, .{ .name = "__atomic_compare_exchange", .linkage = linkage }); | 462 | @export(__atomic_compare_exchange, .{ .name = "__atomic_compare_exchange", .linkage = linkage, .visibility = visibility }); |
| 461 | 463 | ||
| 462 | @export(__atomic_fetch_add_1, .{ .name = "__atomic_fetch_add_1", .linkage = linkage }); | 464 | @export(__atomic_fetch_add_1, .{ .name = "__atomic_fetch_add_1", .linkage = linkage, .visibility = visibility }); |
| 463 | @export(__atomic_fetch_add_2, .{ .name = "__atomic_fetch_add_2", .linkage = linkage }); | 465 | @export(__atomic_fetch_add_2, .{ .name = "__atomic_fetch_add_2", .linkage = linkage, .visibility = visibility }); |
| 464 | @export(__atomic_fetch_add_4, .{ .name = "__atomic_fetch_add_4", .linkage = linkage }); | 466 | @export(__atomic_fetch_add_4, .{ .name = "__atomic_fetch_add_4", .linkage = linkage, .visibility = visibility }); |
| 465 | @export(__atomic_fetch_add_8, .{ .name = "__atomic_fetch_add_8", .linkage = linkage }); | 467 | @export(__atomic_fetch_add_8, .{ .name = "__atomic_fetch_add_8", .linkage = linkage, .visibility = visibility }); |
| 466 | 468 | ||
| 467 | @export(__atomic_fetch_sub_1, .{ .name = "__atomic_fetch_sub_1", .linkage = linkage }); | 469 | @export(__atomic_fetch_sub_1, .{ .name = "__atomic_fetch_sub_1", .linkage = linkage, .visibility = visibility }); |
| 468 | @export(__atomic_fetch_sub_2, .{ .name = "__atomic_fetch_sub_2", .linkage = linkage }); | 470 | @export(__atomic_fetch_sub_2, .{ .name = "__atomic_fetch_sub_2", .linkage = linkage, .visibility = visibility }); |
| 469 | @export(__atomic_fetch_sub_4, .{ .name = "__atomic_fetch_sub_4", .linkage = linkage }); | 471 | @export(__atomic_fetch_sub_4, .{ .name = "__atomic_fetch_sub_4", .linkage = linkage, .visibility = visibility }); |
| 470 | @export(__atomic_fetch_sub_8, .{ .name = "__atomic_fetch_sub_8", .linkage = linkage }); | 472 | @export(__atomic_fetch_sub_8, .{ .name = "__atomic_fetch_sub_8", .linkage = linkage, .visibility = visibility }); |
| 471 | 473 | ||
| 472 | @export(__atomic_fetch_and_1, .{ .name = "__atomic_fetch_and_1", .linkage = linkage }); | 474 | @export(__atomic_fetch_and_1, .{ .name = "__atomic_fetch_and_1", .linkage = linkage, .visibility = visibility }); |
| 473 | @export(__atomic_fetch_and_2, .{ .name = "__atomic_fetch_and_2", .linkage = linkage }); | 475 | @export(__atomic_fetch_and_2, .{ .name = "__atomic_fetch_and_2", .linkage = linkage, .visibility = visibility }); |
| 474 | @export(__atomic_fetch_and_4, .{ .name = "__atomic_fetch_and_4", .linkage = linkage }); | 476 | @export(__atomic_fetch_and_4, .{ .name = "__atomic_fetch_and_4", .linkage = linkage, .visibility = visibility }); |
| 475 | @export(__atomic_fetch_and_8, .{ .name = "__atomic_fetch_and_8", .linkage = linkage }); | 477 | @export(__atomic_fetch_and_8, .{ .name = "__atomic_fetch_and_8", .linkage = linkage, .visibility = visibility }); |
| 476 | 478 | ||
| 477 | @export(__atomic_fetch_or_1, .{ .name = "__atomic_fetch_or_1", .linkage = linkage }); | 479 | @export(__atomic_fetch_or_1, .{ .name = "__atomic_fetch_or_1", .linkage = linkage, .visibility = visibility }); |
| 478 | @export(__atomic_fetch_or_2, .{ .name = "__atomic_fetch_or_2", .linkage = linkage }); | 480 | @export(__atomic_fetch_or_2, .{ .name = "__atomic_fetch_or_2", .linkage = linkage, .visibility = visibility }); |
| 479 | @export(__atomic_fetch_or_4, .{ .name = "__atomic_fetch_or_4", .linkage = linkage }); | 481 | @export(__atomic_fetch_or_4, .{ .name = "__atomic_fetch_or_4", .linkage = linkage, .visibility = visibility }); |
| 480 | @export(__atomic_fetch_or_8, .{ .name = "__atomic_fetch_or_8", .linkage = linkage }); | 482 | @export(__atomic_fetch_or_8, .{ .name = "__atomic_fetch_or_8", .linkage = linkage, .visibility = visibility }); |
| 481 | 483 | ||
| 482 | @export(__atomic_fetch_xor_1, .{ .name = "__atomic_fetch_xor_1", .linkage = linkage }); | 484 | @export(__atomic_fetch_xor_1, .{ .name = "__atomic_fetch_xor_1", .linkage = linkage, .visibility = visibility }); |
| 483 | @export(__atomic_fetch_xor_2, .{ .name = "__atomic_fetch_xor_2", .linkage = linkage }); | 485 | @export(__atomic_fetch_xor_2, .{ .name = "__atomic_fetch_xor_2", .linkage = linkage, .visibility = visibility }); |
| 484 | @export(__atomic_fetch_xor_4, .{ .name = "__atomic_fetch_xor_4", .linkage = linkage }); | 486 | @export(__atomic_fetch_xor_4, .{ .name = "__atomic_fetch_xor_4", .linkage = linkage, .visibility = visibility }); |
| 485 | @export(__atomic_fetch_xor_8, .{ .name = "__atomic_fetch_xor_8", .linkage = linkage }); | 487 | @export(__atomic_fetch_xor_8, .{ .name = "__atomic_fetch_xor_8", .linkage = linkage, .visibility = visibility }); |
| 486 | 488 | ||
| 487 | @export(__atomic_fetch_nand_1, .{ .name = "__atomic_fetch_nand_1", .linkage = linkage }); | 489 | @export(__atomic_fetch_nand_1, .{ .name = "__atomic_fetch_nand_1", .linkage = linkage, .visibility = visibility }); |
| 488 | @export(__atomic_fetch_nand_2, .{ .name = "__atomic_fetch_nand_2", .linkage = linkage }); | 490 | @export(__atomic_fetch_nand_2, .{ .name = "__atomic_fetch_nand_2", .linkage = linkage, .visibility = visibility }); |
| 489 | @export(__atomic_fetch_nand_4, .{ .name = "__atomic_fetch_nand_4", .linkage = linkage }); | 491 | @export(__atomic_fetch_nand_4, .{ .name = "__atomic_fetch_nand_4", .linkage = linkage, .visibility = visibility }); |
| 490 | @export(__atomic_fetch_nand_8, .{ .name = "__atomic_fetch_nand_8", .linkage = linkage }); | 492 | @export(__atomic_fetch_nand_8, .{ .name = "__atomic_fetch_nand_8", .linkage = linkage, .visibility = visibility }); |
| 491 | 493 | ||
| 492 | @export(__atomic_load_1, .{ .name = "__atomic_load_1", .linkage = linkage }); | 494 | @export(__atomic_load_1, .{ .name = "__atomic_load_1", .linkage = linkage, .visibility = visibility }); |
| 493 | @export(__atomic_load_2, .{ .name = "__atomic_load_2", .linkage = linkage }); | 495 | @export(__atomic_load_2, .{ .name = "__atomic_load_2", .linkage = linkage, .visibility = visibility }); |
| 494 | @export(__atomic_load_4, .{ .name = "__atomic_load_4", .linkage = linkage }); | 496 | @export(__atomic_load_4, .{ .name = "__atomic_load_4", .linkage = linkage, .visibility = visibility }); |
| 495 | @export(__atomic_load_8, .{ .name = "__atomic_load_8", .linkage = linkage }); | 497 | @export(__atomic_load_8, .{ .name = "__atomic_load_8", .linkage = linkage, .visibility = visibility }); |
| 496 | 498 | ||
| 497 | @export(__atomic_store_1, .{ .name = "__atomic_store_1", .linkage = linkage }); | 499 | @export(__atomic_store_1, .{ .name = "__atomic_store_1", .linkage = linkage, .visibility = visibility }); |
| 498 | @export(__atomic_store_2, .{ .name = "__atomic_store_2", .linkage = linkage }); | 500 | @export(__atomic_store_2, .{ .name = "__atomic_store_2", .linkage = linkage, .visibility = visibility }); |
| 499 | @export(__atomic_store_4, .{ .name = "__atomic_store_4", .linkage = linkage }); | 501 | @export(__atomic_store_4, .{ .name = "__atomic_store_4", .linkage = linkage, .visibility = visibility }); |
| 500 | @export(__atomic_store_8, .{ .name = "__atomic_store_8", .linkage = linkage }); | 502 | @export(__atomic_store_8, .{ .name = "__atomic_store_8", .linkage = linkage, .visibility = visibility }); |
| 501 | 503 | ||
| 502 | @export(__atomic_exchange_1, .{ .name = "__atomic_exchange_1", .linkage = linkage }); | 504 | @export(__atomic_exchange_1, .{ .name = "__atomic_exchange_1", .linkage = linkage, .visibility = visibility }); |
| 503 | @export(__atomic_exchange_2, .{ .name = "__atomic_exchange_2", .linkage = linkage }); | 505 | @export(__atomic_exchange_2, .{ .name = "__atomic_exchange_2", .linkage = linkage, .visibility = visibility }); |
| 504 | @export(__atomic_exchange_4, .{ .name = "__atomic_exchange_4", .linkage = linkage }); | 506 | @export(__atomic_exchange_4, .{ .name = "__atomic_exchange_4", .linkage = linkage, .visibility = visibility }); |
| 505 | @export(__atomic_exchange_8, .{ .name = "__atomic_exchange_8", .linkage = linkage }); | 507 | @export(__atomic_exchange_8, .{ .name = "__atomic_exchange_8", .linkage = linkage, .visibility = visibility }); |
| 506 | 508 | ||
| 507 | @export(__atomic_compare_exchange_1, .{ .name = "__atomic_compare_exchange_1", .linkage = linkage }); | 509 | @export(__atomic_compare_exchange_1, .{ .name = "__atomic_compare_exchange_1", .linkage = linkage, .visibility = visibility }); |
| 508 | @export(__atomic_compare_exchange_2, .{ .name = "__atomic_compare_exchange_2", .linkage = linkage }); | 510 | @export(__atomic_compare_exchange_2, .{ .name = "__atomic_compare_exchange_2", .linkage = linkage, .visibility = visibility }); |
| 509 | @export(__atomic_compare_exchange_4, .{ .name = "__atomic_compare_exchange_4", .linkage = linkage }); | 511 | @export(__atomic_compare_exchange_4, .{ .name = "__atomic_compare_exchange_4", .linkage = linkage, .visibility = visibility }); |
| 510 | @export(__atomic_compare_exchange_8, .{ .name = "__atomic_compare_exchange_8", .linkage = linkage }); | 512 | @export(__atomic_compare_exchange_8, .{ .name = "__atomic_compare_exchange_8", .linkage = linkage, .visibility = visibility }); |
| 511 | } | 513 | } |
| 512 | } | 514 | } |
lib/compiler_rt/aulldiv.zig+2-2| ... | @@ -9,8 +9,8 @@ pub const panic = common.panic; | ... | @@ -9,8 +9,8 @@ pub const panic = common.panic; |
| 9 | comptime { | 9 | comptime { |
| 10 | if (arch == .x86 and abi == .msvc) { | 10 | if (arch == .x86 and abi == .msvc) { |
| 11 | // Don't let LLVM apply the stdcall name mangling on those MSVC builtins | 11 | // Don't let LLVM apply the stdcall name mangling on those MSVC builtins |
| 12 | @export(_alldiv, .{ .name = "\x01__alldiv", .linkage = common.linkage }); | 12 | @export(_alldiv, .{ .name = "\x01__alldiv", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | @export(_aulldiv, .{ .name = "\x01__aulldiv", .linkage = common.linkage }); | 13 | @export(_aulldiv, .{ .name = "\x01__aulldiv", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | } | 14 | } |
| 15 | } | 15 | } |
| 16 | 16 |
lib/compiler_rt/aullrem.zig+2-2| ... | @@ -9,8 +9,8 @@ pub const panic = common.panic; | ... | @@ -9,8 +9,8 @@ pub const panic = common.panic; |
| 9 | comptime { | 9 | comptime { |
| 10 | if (arch == .x86 and abi == .msvc) { | 10 | if (arch == .x86 and abi == .msvc) { |
| 11 | // Don't let LLVM apply the stdcall name mangling on those MSVC builtins | 11 | // Don't let LLVM apply the stdcall name mangling on those MSVC builtins |
| 12 | @export(_allrem, .{ .name = "\x01__allrem", .linkage = common.linkage }); | 12 | @export(_allrem, .{ .name = "\x01__allrem", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | @export(_aullrem, .{ .name = "\x01__aullrem", .linkage = common.linkage }); | 13 | @export(_aullrem, .{ .name = "\x01__aullrem", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | } | 14 | } |
| 15 | } | 15 | } |
| 16 | 16 |
lib/compiler_rt/bcmp.zig+1-1| ... | @@ -2,7 +2,7 @@ const std = @import("std"); | ... | @@ -2,7 +2,7 @@ const std = @import("std"); |
| 2 | const common = @import("./common.zig"); | 2 | const common = @import("./common.zig"); |
| 3 | 3 | ||
| 4 | comptime { | 4 | comptime { |
| 5 | @export(bcmp, .{ .name = "bcmp", .linkage = common.linkage }); | 5 | @export(bcmp, .{ .name = "bcmp", .linkage = common.linkage, .visibility = common.visibility }); |
| 6 | } | 6 | } |
| 7 | 7 | ||
| 8 | pub fn bcmp(vl: [*]allowzero const u8, vr: [*]allowzero const u8, n: usize) callconv(.C) c_int { | 8 | pub fn bcmp(vl: [*]allowzero const u8, vr: [*]allowzero const u8, n: usize) callconv(.C) c_int { |
lib/compiler_rt/bswap.zig+3-3| ... | @@ -5,9 +5,9 @@ const common = @import("common.zig"); | ... | @@ -5,9 +5,9 @@ const common = @import("common.zig"); |
| 5 | pub const panic = common.panic; | 5 | pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | @export(__bswapsi2, .{ .name = "__bswapsi2", .linkage = common.linkage }); | 8 | @export(__bswapsi2, .{ .name = "__bswapsi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | @export(__bswapdi2, .{ .name = "__bswapdi2", .linkage = common.linkage }); | 9 | @export(__bswapdi2, .{ .name = "__bswapdi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | @export(__bswapti2, .{ .name = "__bswapti2", .linkage = common.linkage }); | 10 | @export(__bswapti2, .{ .name = "__bswapti2", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | // bswap - byteswap | 13 | // bswap - byteswap |
lib/compiler_rt/ceil.zig+7-7| ... | @@ -14,15 +14,15 @@ const common = @import("common.zig"); | ... | @@ -14,15 +14,15 @@ const common = @import("common.zig"); |
| 14 | pub const panic = common.panic; | 14 | pub const panic = common.panic; |
| 15 | 15 | ||
| 16 | comptime { | 16 | comptime { |
| 17 | @export(__ceilh, .{ .name = "__ceilh", .linkage = common.linkage }); | 17 | @export(__ceilh, .{ .name = "__ceilh", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(ceilf, .{ .name = "ceilf", .linkage = common.linkage }); | 18 | @export(ceilf, .{ .name = "ceilf", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | @export(ceil, .{ .name = "ceil", .linkage = common.linkage }); | 19 | @export(ceil, .{ .name = "ceil", .linkage = common.linkage, .visibility = common.visibility }); |
| 20 | @export(__ceilx, .{ .name = "__ceilx", .linkage = common.linkage }); | 20 | @export(__ceilx, .{ .name = "__ceilx", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | if (common.want_ppc_abi) { | 21 | if (common.want_ppc_abi) { |
| 22 | @export(ceilq, .{ .name = "ceilf128", .linkage = common.linkage }); | 22 | @export(ceilq, .{ .name = "ceilf128", .linkage = common.linkage, .visibility = common.visibility }); |
| 23 | } | 23 | } |
| 24 | @export(ceilq, .{ .name = "ceilq", .linkage = common.linkage }); | 24 | @export(ceilq, .{ .name = "ceilq", .linkage = common.linkage, .visibility = common.visibility }); |
| 25 | @export(ceill, .{ .name = "ceill", .linkage = common.linkage }); | 25 | @export(ceill, .{ .name = "ceill", .linkage = common.linkage, .visibility = common.visibility }); |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | pub fn __ceilh(x: f16) callconv(.C) f16 { | 28 | pub fn __ceilh(x: f16) callconv(.C) f16 { |
lib/compiler_rt/cmp.zig+6-6| ... | @@ -6,12 +6,12 @@ const common = @import("common.zig"); | ... | @@ -6,12 +6,12 @@ const common = @import("common.zig"); |
| 6 | pub const panic = common.panic; | 6 | pub const panic = common.panic; |
| 7 | 7 | ||
| 8 | comptime { | 8 | comptime { |
| 9 | @export(__cmpsi2, .{ .name = "__cmpsi2", .linkage = common.linkage }); | 9 | @export(__cmpsi2, .{ .name = "__cmpsi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | @export(__cmpdi2, .{ .name = "__cmpdi2", .linkage = common.linkage }); | 10 | @export(__cmpdi2, .{ .name = "__cmpdi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | @export(__cmpti2, .{ .name = "__cmpti2", .linkage = common.linkage }); | 11 | @export(__cmpti2, .{ .name = "__cmpti2", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | @export(__ucmpsi2, .{ .name = "__ucmpsi2", .linkage = common.linkage }); | 12 | @export(__ucmpsi2, .{ .name = "__ucmpsi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | @export(__ucmpdi2, .{ .name = "__ucmpdi2", .linkage = common.linkage }); | 13 | @export(__ucmpdi2, .{ .name = "__ucmpdi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | @export(__ucmpti2, .{ .name = "__ucmpti2", .linkage = common.linkage }); | 14 | @export(__ucmpti2, .{ .name = "__ucmpti2", .linkage = common.linkage, .visibility = common.visibility }); |
| 15 | } | 15 | } |
| 16 | 16 | ||
| 17 | // cmp - signed compare | 17 | // cmp - signed compare |
lib/compiler_rt/cmpdf2.zig+8-8| ... | @@ -7,15 +7,15 @@ pub const panic = common.panic; | ... | @@ -7,15 +7,15 @@ pub const panic = common.panic; |
| 7 | 7 | ||
| 8 | comptime { | 8 | comptime { |
| 9 | if (common.want_aeabi) { | 9 | if (common.want_aeabi) { |
| 10 | @export(__aeabi_dcmpeq, .{ .name = "__aeabi_dcmpeq", .linkage = common.linkage }); | 10 | @export(__aeabi_dcmpeq, .{ .name = "__aeabi_dcmpeq", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | @export(__aeabi_dcmplt, .{ .name = "__aeabi_dcmplt", .linkage = common.linkage }); | 11 | @export(__aeabi_dcmplt, .{ .name = "__aeabi_dcmplt", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | @export(__aeabi_dcmple, .{ .name = "__aeabi_dcmple", .linkage = common.linkage }); | 12 | @export(__aeabi_dcmple, .{ .name = "__aeabi_dcmple", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } else { | 13 | } else { |
| 14 | @export(__eqdf2, .{ .name = "__eqdf2", .linkage = common.linkage }); | 14 | @export(__eqdf2, .{ .name = "__eqdf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 15 | @export(__nedf2, .{ .name = "__nedf2", .linkage = common.linkage }); | 15 | @export(__nedf2, .{ .name = "__nedf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 16 | @export(__ledf2, .{ .name = "__ledf2", .linkage = common.linkage }); | 16 | @export(__ledf2, .{ .name = "__ledf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 17 | @export(__cmpdf2, .{ .name = "__cmpdf2", .linkage = common.linkage }); | 17 | @export(__cmpdf2, .{ .name = "__cmpdf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(__ltdf2, .{ .name = "__ltdf2", .linkage = common.linkage }); | 18 | @export(__ltdf2, .{ .name = "__ltdf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | } | 19 | } |
| 20 | } | 20 | } |
| 21 | 21 |
lib/compiler_rt/cmphf2.zig+5-5| ... | @@ -6,11 +6,11 @@ const comparef = @import("./comparef.zig"); | ... | @@ -6,11 +6,11 @@ const comparef = @import("./comparef.zig"); |
| 6 | pub const panic = common.panic; | 6 | pub const panic = common.panic; |
| 7 | 7 | ||
| 8 | comptime { | 8 | comptime { |
| 9 | @export(__eqhf2, .{ .name = "__eqhf2", .linkage = common.linkage }); | 9 | @export(__eqhf2, .{ .name = "__eqhf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | @export(__nehf2, .{ .name = "__nehf2", .linkage = common.linkage }); | 10 | @export(__nehf2, .{ .name = "__nehf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | @export(__lehf2, .{ .name = "__lehf2", .linkage = common.linkage }); | 11 | @export(__lehf2, .{ .name = "__lehf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | @export(__cmphf2, .{ .name = "__cmphf2", .linkage = common.linkage }); | 12 | @export(__cmphf2, .{ .name = "__cmphf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | @export(__lthf2, .{ .name = "__lthf2", .linkage = common.linkage }); | 13 | @export(__lthf2, .{ .name = "__lthf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | } | 14 | } |
| 15 | 15 | ||
| 16 | /// "These functions calculate a <=> b. That is, if a is less than b, they return -1; | 16 | /// "These functions calculate a <=> b. That is, if a is less than b, they return -1; |
lib/compiler_rt/cmpsf2.zig+8-8| ... | @@ -7,15 +7,15 @@ pub const panic = common.panic; | ... | @@ -7,15 +7,15 @@ pub const panic = common.panic; |
| 7 | 7 | ||
| 8 | comptime { | 8 | comptime { |
| 9 | if (common.want_aeabi) { | 9 | if (common.want_aeabi) { |
| 10 | @export(__aeabi_fcmpeq, .{ .name = "__aeabi_fcmpeq", .linkage = common.linkage }); | 10 | @export(__aeabi_fcmpeq, .{ .name = "__aeabi_fcmpeq", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | @export(__aeabi_fcmplt, .{ .name = "__aeabi_fcmplt", .linkage = common.linkage }); | 11 | @export(__aeabi_fcmplt, .{ .name = "__aeabi_fcmplt", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | @export(__aeabi_fcmple, .{ .name = "__aeabi_fcmple", .linkage = common.linkage }); | 12 | @export(__aeabi_fcmple, .{ .name = "__aeabi_fcmple", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } else { | 13 | } else { |
| 14 | @export(__eqsf2, .{ .name = "__eqsf2", .linkage = common.linkage }); | 14 | @export(__eqsf2, .{ .name = "__eqsf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 15 | @export(__nesf2, .{ .name = "__nesf2", .linkage = common.linkage }); | 15 | @export(__nesf2, .{ .name = "__nesf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 16 | @export(__lesf2, .{ .name = "__lesf2", .linkage = common.linkage }); | 16 | @export(__lesf2, .{ .name = "__lesf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 17 | @export(__cmpsf2, .{ .name = "__cmpsf2", .linkage = common.linkage }); | 17 | @export(__cmpsf2, .{ .name = "__cmpsf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(__ltsf2, .{ .name = "__ltsf2", .linkage = common.linkage }); | 18 | @export(__ltsf2, .{ .name = "__ltsf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | } | 19 | } |
| 20 | } | 20 | } |
| 21 | 21 |
lib/compiler_rt/cmptf2.zig+16-16| ... | @@ -7,24 +7,24 @@ pub const panic = common.panic; | ... | @@ -7,24 +7,24 @@ pub const panic = common.panic; |
| 7 | 7 | ||
| 8 | comptime { | 8 | comptime { |
| 9 | if (common.want_ppc_abi) { | 9 | if (common.want_ppc_abi) { |
| 10 | @export(__eqtf2, .{ .name = "__eqkf2", .linkage = common.linkage }); | 10 | @export(__eqtf2, .{ .name = "__eqkf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | @export(__netf2, .{ .name = "__nekf2", .linkage = common.linkage }); | 11 | @export(__netf2, .{ .name = "__nekf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | @export(__lttf2, .{ .name = "__ltkf2", .linkage = common.linkage }); | 12 | @export(__lttf2, .{ .name = "__ltkf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | @export(__letf2, .{ .name = "__lekf2", .linkage = common.linkage }); | 13 | @export(__letf2, .{ .name = "__lekf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | } else if (common.want_sparc_abi) { | 14 | } else if (common.want_sparc_abi) { |
| 15 | @export(_Qp_cmp, .{ .name = "_Qp_cmp", .linkage = common.linkage }); | 15 | @export(_Qp_cmp, .{ .name = "_Qp_cmp", .linkage = common.linkage, .visibility = common.visibility }); |
| 16 | @export(_Qp_feq, .{ .name = "_Qp_feq", .linkage = common.linkage }); | 16 | @export(_Qp_feq, .{ .name = "_Qp_feq", .linkage = common.linkage, .visibility = common.visibility }); |
| 17 | @export(_Qp_fne, .{ .name = "_Qp_fne", .linkage = common.linkage }); | 17 | @export(_Qp_fne, .{ .name = "_Qp_fne", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(_Qp_flt, .{ .name = "_Qp_flt", .linkage = common.linkage }); | 18 | @export(_Qp_flt, .{ .name = "_Qp_flt", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | @export(_Qp_fle, .{ .name = "_Qp_fle", .linkage = common.linkage }); | 19 | @export(_Qp_fle, .{ .name = "_Qp_fle", .linkage = common.linkage, .visibility = common.visibility }); |
| 20 | @export(_Qp_fgt, .{ .name = "_Qp_fgt", .linkage = common.linkage }); | 20 | @export(_Qp_fgt, .{ .name = "_Qp_fgt", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | @export(_Qp_fge, .{ .name = "_Qp_fge", .linkage = common.linkage }); | 21 | @export(_Qp_fge, .{ .name = "_Qp_fge", .linkage = common.linkage, .visibility = common.visibility }); |
| 22 | } | 22 | } |
| 23 | @export(__eqtf2, .{ .name = "__eqtf2", .linkage = common.linkage }); | 23 | @export(__eqtf2, .{ .name = "__eqtf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 24 | @export(__netf2, .{ .name = "__netf2", .linkage = common.linkage }); | 24 | @export(__netf2, .{ .name = "__netf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 25 | @export(__letf2, .{ .name = "__letf2", .linkage = common.linkage }); | 25 | @export(__letf2, .{ .name = "__letf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 26 | @export(__cmptf2, .{ .name = "__cmptf2", .linkage = common.linkage }); | 26 | @export(__cmptf2, .{ .name = "__cmptf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 27 | @export(__lttf2, .{ .name = "__lttf2", .linkage = common.linkage }); | 27 | @export(__lttf2, .{ .name = "__lttf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | /// "These functions calculate a <=> b. That is, if a is less than b, they return -1; | 30 | /// "These functions calculate a <=> b. That is, if a is less than b, they return -1; |
lib/compiler_rt/cmpxf2.zig+5-5| ... | @@ -6,11 +6,11 @@ const comparef = @import("./comparef.zig"); | ... | @@ -6,11 +6,11 @@ const comparef = @import("./comparef.zig"); |
| 6 | pub const panic = common.panic; | 6 | pub const panic = common.panic; |
| 7 | 7 | ||
| 8 | comptime { | 8 | comptime { |
| 9 | @export(__eqxf2, .{ .name = "__eqxf2", .linkage = common.linkage }); | 9 | @export(__eqxf2, .{ .name = "__eqxf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | @export(__nexf2, .{ .name = "__nexf2", .linkage = common.linkage }); | 10 | @export(__nexf2, .{ .name = "__nexf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | @export(__lexf2, .{ .name = "__lexf2", .linkage = common.linkage }); | 11 | @export(__lexf2, .{ .name = "__lexf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | @export(__cmpxf2, .{ .name = "__cmpxf2", .linkage = common.linkage }); | 12 | @export(__cmpxf2, .{ .name = "__cmpxf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | @export(__ltxf2, .{ .name = "__ltxf2", .linkage = common.linkage }); | 13 | @export(__ltxf2, .{ .name = "__ltxf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | } | 14 | } |
| 15 | 15 | ||
| 16 | /// "These functions calculate a <=> b. That is, if a is less than b, they return -1; | 16 | /// "These functions calculate a <=> b. That is, if a is less than b, they return -1; |
lib/compiler_rt/common.zig+4| ... | @@ -2,6 +2,10 @@ const std = @import("std"); | ... | @@ -2,6 +2,10 @@ const std = @import("std"); |
| 2 | const builtin = @import("builtin"); | 2 | const builtin = @import("builtin"); |
| 3 | 3 | ||
| 4 | pub const linkage: std.builtin.GlobalLinkage = if (builtin.is_test) .Internal else .Weak; | 4 | pub const linkage: std.builtin.GlobalLinkage = if (builtin.is_test) .Internal else .Weak; |
| 5 | /// Determines the symbol's visibility to other objects. | ||
| 6 | /// For WebAssembly this allows the symbol to be resolved to other modules, but will not | ||
| 7 | /// export it to the host runtime. | ||
| 8 | pub const visibility: std.builtin.SymbolVisibility = if (builtin.target.isWasm()) .hidden else .default; | ||
| 5 | pub const want_aeabi = switch (builtin.abi) { | 9 | pub const want_aeabi = switch (builtin.abi) { |
| 6 | .eabi, | 10 | .eabi, |
| 7 | .eabihf, | 11 | .eabihf, |
lib/compiler_rt/cos.zig+7-7| ... | @@ -12,15 +12,15 @@ const rem_pio2 = @import("rem_pio2.zig").rem_pio2; | ... | @@ -12,15 +12,15 @@ const rem_pio2 = @import("rem_pio2.zig").rem_pio2; |
| 12 | const rem_pio2f = @import("rem_pio2f.zig").rem_pio2f; | 12 | const rem_pio2f = @import("rem_pio2f.zig").rem_pio2f; |
| 13 | 13 | ||
| 14 | comptime { | 14 | comptime { |
| 15 | @export(__cosh, .{ .name = "__cosh", .linkage = common.linkage }); | 15 | @export(__cosh, .{ .name = "__cosh", .linkage = common.linkage, .visibility = common.visibility }); |
| 16 | @export(cosf, .{ .name = "cosf", .linkage = common.linkage }); | 16 | @export(cosf, .{ .name = "cosf", .linkage = common.linkage, .visibility = common.visibility }); |
| 17 | @export(cos, .{ .name = "cos", .linkage = common.linkage }); | 17 | @export(cos, .{ .name = "cos", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(__cosx, .{ .name = "__cosx", .linkage = common.linkage }); | 18 | @export(__cosx, .{ .name = "__cosx", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | if (common.want_ppc_abi) { | 19 | if (common.want_ppc_abi) { |
| 20 | @export(cosq, .{ .name = "cosf128", .linkage = common.linkage }); | 20 | @export(cosq, .{ .name = "cosf128", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | } | 21 | } |
| 22 | @export(cosq, .{ .name = "cosq", .linkage = common.linkage }); | 22 | @export(cosq, .{ .name = "cosq", .linkage = common.linkage, .visibility = common.visibility }); |
| 23 | @export(cosl, .{ .name = "cosl", .linkage = common.linkage }); | 23 | @export(cosl, .{ .name = "cosl", .linkage = common.linkage, .visibility = common.visibility }); |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | pub fn __cosh(a: f16) callconv(.C) f16 { | 26 | pub fn __cosh(a: f16) callconv(.C) f16 { |
lib/compiler_rt/count0bits.zig+9-9| ... | @@ -6,15 +6,15 @@ const common = @import("common.zig"); | ... | @@ -6,15 +6,15 @@ const common = @import("common.zig"); |
| 6 | pub const panic = common.panic; | 6 | pub const panic = common.panic; |
| 7 | 7 | ||
| 8 | comptime { | 8 | comptime { |
| 9 | @export(__clzsi2, .{ .name = "__clzsi2", .linkage = common.linkage }); | 9 | @export(__clzsi2, .{ .name = "__clzsi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | @export(__clzdi2, .{ .name = "__clzdi2", .linkage = common.linkage }); | 10 | @export(__clzdi2, .{ .name = "__clzdi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | @export(__clzti2, .{ .name = "__clzti2", .linkage = common.linkage }); | 11 | @export(__clzti2, .{ .name = "__clzti2", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | @export(__ctzsi2, .{ .name = "__ctzsi2", .linkage = common.linkage }); | 12 | @export(__ctzsi2, .{ .name = "__ctzsi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | @export(__ctzdi2, .{ .name = "__ctzdi2", .linkage = common.linkage }); | 13 | @export(__ctzdi2, .{ .name = "__ctzdi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | @export(__ctzti2, .{ .name = "__ctzti2", .linkage = common.linkage }); | 14 | @export(__ctzti2, .{ .name = "__ctzti2", .linkage = common.linkage, .visibility = common.visibility }); |
| 15 | @export(__ffssi2, .{ .name = "__ffssi2", .linkage = common.linkage }); | 15 | @export(__ffssi2, .{ .name = "__ffssi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 16 | @export(__ffsdi2, .{ .name = "__ffsdi2", .linkage = common.linkage }); | 16 | @export(__ffsdi2, .{ .name = "__ffsdi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 17 | @export(__ffsti2, .{ .name = "__ffsti2", .linkage = common.linkage }); | 17 | @export(__ffsti2, .{ .name = "__ffsti2", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | // clz - count leading zeroes | 20 | // clz - count leading zeroes |
lib/compiler_rt/divdc3.zig+1-1| ... | @@ -4,7 +4,7 @@ const Complex = @import("./mulc3.zig").Complex; | ... | @@ -4,7 +4,7 @@ const Complex = @import("./mulc3.zig").Complex; |
| 4 | 4 | ||
| 5 | comptime { | 5 | comptime { |
| 6 | if (@import("builtin").zig_backend != .stage2_c) { | 6 | if (@import("builtin").zig_backend != .stage2_c) { |
| 7 | @export(__divdc3, .{ .name = "__divdc3", .linkage = common.linkage }); | 7 | @export(__divdc3, .{ .name = "__divdc3", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | } | 9 | } |
| 10 | 10 |
lib/compiler_rt/divdf3.zig+2-2| ... | @@ -15,9 +15,9 @@ pub const panic = common.panic; | ... | @@ -15,9 +15,9 @@ pub const panic = common.panic; |
| 15 | 15 | ||
| 16 | comptime { | 16 | comptime { |
| 17 | if (common.want_aeabi) { | 17 | if (common.want_aeabi) { |
| 18 | @export(__aeabi_ddiv, .{ .name = "__aeabi_ddiv", .linkage = common.linkage }); | 18 | @export(__aeabi_ddiv, .{ .name = "__aeabi_ddiv", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | } else { | 19 | } else { |
| 20 | @export(__divdf3, .{ .name = "__divdf3", .linkage = common.linkage }); | 20 | @export(__divdf3, .{ .name = "__divdf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | } | 21 | } |
| 22 | } | 22 | } |
| 23 | 23 |
lib/compiler_rt/divhc3.zig+1-1| ... | @@ -4,7 +4,7 @@ const Complex = @import("./mulc3.zig").Complex; | ... | @@ -4,7 +4,7 @@ const Complex = @import("./mulc3.zig").Complex; |
| 4 | 4 | ||
| 5 | comptime { | 5 | comptime { |
| 6 | if (@import("builtin").zig_backend != .stage2_c) { | 6 | if (@import("builtin").zig_backend != .stage2_c) { |
| 7 | @export(__divhc3, .{ .name = "__divhc3", .linkage = common.linkage }); | 7 | @export(__divhc3, .{ .name = "__divhc3", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | } | 9 | } |
| 10 | 10 |
lib/compiler_rt/divhf3.zig+1-1| ... | @@ -2,7 +2,7 @@ const common = @import("common.zig"); | ... | @@ -2,7 +2,7 @@ const common = @import("common.zig"); |
| 2 | const divsf3 = @import("./divsf3.zig"); | 2 | const divsf3 = @import("./divsf3.zig"); |
| 3 | 3 | ||
| 4 | comptime { | 4 | comptime { |
| 5 | @export(__divhf3, .{ .name = "__divhf3", .linkage = common.linkage }); | 5 | @export(__divhf3, .{ .name = "__divhf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 6 | } | 6 | } |
| 7 | 7 | ||
| 8 | pub fn __divhf3(a: f16, b: f16) callconv(.C) f16 { | 8 | pub fn __divhf3(a: f16, b: f16) callconv(.C) f16 { |
lib/compiler_rt/divsc3.zig+1-1| ... | @@ -4,7 +4,7 @@ const Complex = @import("./mulc3.zig").Complex; | ... | @@ -4,7 +4,7 @@ const Complex = @import("./mulc3.zig").Complex; |
| 4 | 4 | ||
| 5 | comptime { | 5 | comptime { |
| 6 | if (@import("builtin").zig_backend != .stage2_c) { | 6 | if (@import("builtin").zig_backend != .stage2_c) { |
| 7 | @export(__divsc3, .{ .name = "__divsc3", .linkage = common.linkage }); | 7 | @export(__divsc3, .{ .name = "__divsc3", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | } | 9 | } |
| 10 | 10 |
lib/compiler_rt/divsf3.zig+2-2| ... | @@ -13,9 +13,9 @@ pub const panic = common.panic; | ... | @@ -13,9 +13,9 @@ pub const panic = common.panic; |
| 13 | 13 | ||
| 14 | comptime { | 14 | comptime { |
| 15 | if (common.want_aeabi) { | 15 | if (common.want_aeabi) { |
| 16 | @export(__aeabi_fdiv, .{ .name = "__aeabi_fdiv", .linkage = common.linkage }); | 16 | @export(__aeabi_fdiv, .{ .name = "__aeabi_fdiv", .linkage = common.linkage, .visibility = common.visibility }); |
| 17 | } else { | 17 | } else { |
| 18 | @export(__divsf3, .{ .name = "__divsf3", .linkage = common.linkage }); | 18 | @export(__divsf3, .{ .name = "__divsf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | } | 19 | } |
| 20 | } | 20 | } |
| 21 | 21 |
lib/compiler_rt/divtc3.zig+1-1| ... | @@ -4,7 +4,7 @@ const Complex = @import("./mulc3.zig").Complex; | ... | @@ -4,7 +4,7 @@ const Complex = @import("./mulc3.zig").Complex; |
| 4 | 4 | ||
| 5 | comptime { | 5 | comptime { |
| 6 | if (@import("builtin").zig_backend != .stage2_c) { | 6 | if (@import("builtin").zig_backend != .stage2_c) { |
| 7 | @export(__divtc3, .{ .name = "__divtc3", .linkage = common.linkage }); | 7 | @export(__divtc3, .{ .name = "__divtc3", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | } | 9 | } |
| 10 | 10 |
lib/compiler_rt/divtf3.zig+3-3| ... | @@ -10,11 +10,11 @@ pub const panic = common.panic; | ... | @@ -10,11 +10,11 @@ pub const panic = common.panic; |
| 10 | comptime { | 10 | comptime { |
| 11 | if (common.want_ppc_abi) { | 11 | if (common.want_ppc_abi) { |
| 12 | // TODO: why did this not error? | 12 | // TODO: why did this not error? |
| 13 | @export(__divtf3, .{ .name = "__divkf3", .linkage = common.linkage }); | 13 | @export(__divtf3, .{ .name = "__divkf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | } else if (common.want_sparc_abi) { | 14 | } else if (common.want_sparc_abi) { |
| 15 | @export(_Qp_div, .{ .name = "_Qp_div", .linkage = common.linkage }); | 15 | @export(_Qp_div, .{ .name = "_Qp_div", .linkage = common.linkage, .visibility = common.visibility }); |
| 16 | } | 16 | } |
| 17 | @export(__divtf3, .{ .name = "__divtf3", .linkage = common.linkage }); | 17 | @export(__divtf3, .{ .name = "__divtf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | pub fn __divtf3(a: f128, b: f128) callconv(.C) f128 { | 20 | pub fn __divtf3(a: f128, b: f128) callconv(.C) f128 { |
lib/compiler_rt/divti3.zig+4-4| ... | @@ -10,20 +10,20 @@ comptime { | ... | @@ -10,20 +10,20 @@ comptime { |
| 10 | if (builtin.os.tag == .windows) { | 10 | if (builtin.os.tag == .windows) { |
| 11 | switch (arch) { | 11 | switch (arch) { |
| 12 | .x86 => { | 12 | .x86 => { |
| 13 | @export(__divti3, .{ .name = "__divti3", .linkage = common.linkage }); | 13 | @export(__divti3, .{ .name = "__divti3", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | }, | 14 | }, |
| 15 | .x86_64 => { | 15 | .x86_64 => { |
| 16 | // The "ti" functions must use Vector(2, u64) parameter types to adhere to the ABI | 16 | // The "ti" functions must use Vector(2, u64) parameter types to adhere to the ABI |
| 17 | // that LLVM expects compiler-rt to have. | 17 | // that LLVM expects compiler-rt to have. |
| 18 | @export(__divti3_windows_x86_64, .{ .name = "__divti3", .linkage = common.linkage }); | 18 | @export(__divti3_windows_x86_64, .{ .name = "__divti3", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | }, | 19 | }, |
| 20 | else => {}, | 20 | else => {}, |
| 21 | } | 21 | } |
| 22 | if (arch.isAARCH64()) { | 22 | if (arch.isAARCH64()) { |
| 23 | @export(__divti3, .{ .name = "__divti3", .linkage = common.linkage }); | 23 | @export(__divti3, .{ .name = "__divti3", .linkage = common.linkage, .visibility = common.visibility }); |
| 24 | } | 24 | } |
| 25 | } else { | 25 | } else { |
| 26 | @export(__divti3, .{ .name = "__divti3", .linkage = common.linkage }); | 26 | @export(__divti3, .{ .name = "__divti3", .linkage = common.linkage, .visibility = common.visibility }); |
| 27 | } | 27 | } |
| 28 | } | 28 | } |
| 29 | 29 |
lib/compiler_rt/divxc3.zig+1-1| ... | @@ -4,7 +4,7 @@ const Complex = @import("./mulc3.zig").Complex; | ... | @@ -4,7 +4,7 @@ const Complex = @import("./mulc3.zig").Complex; |
| 4 | 4 | ||
| 5 | comptime { | 5 | comptime { |
| 6 | if (@import("builtin").zig_backend != .stage2_c) { | 6 | if (@import("builtin").zig_backend != .stage2_c) { |
| 7 | @export(__divxc3, .{ .name = "__divxc3", .linkage = common.linkage }); | 7 | @export(__divxc3, .{ .name = "__divxc3", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | } | 9 | } |
| 10 | 10 |
lib/compiler_rt/divxf3.zig+1-1| ... | @@ -9,7 +9,7 @@ const wideMultiply = common.wideMultiply; | ... | @@ -9,7 +9,7 @@ const wideMultiply = common.wideMultiply; |
| 9 | pub const panic = common.panic; | 9 | pub const panic = common.panic; |
| 10 | 10 | ||
| 11 | comptime { | 11 | comptime { |
| 12 | @export(__divxf3, .{ .name = "__divxf3", .linkage = common.linkage }); | 12 | @export(__divxf3, .{ .name = "__divxf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | pub fn __divxf3(a: f80, b: f80) callconv(.C) f80 { | 15 | pub fn __divxf3(a: f80, b: f80) callconv(.C) f80 { |
lib/compiler_rt/emutls.zig+1-1| ... | @@ -19,7 +19,7 @@ pub const panic = common.panic; | ... | @@ -19,7 +19,7 @@ pub const panic = common.panic; |
| 19 | 19 | ||
| 20 | comptime { | 20 | comptime { |
| 21 | if (builtin.link_libc and (builtin.abi == .android or builtin.os.tag == .openbsd)) { | 21 | if (builtin.link_libc and (builtin.abi == .android or builtin.os.tag == .openbsd)) { |
| 22 | @export(__emutls_get_address, .{ .name = "__emutls_get_address", .linkage = common.linkage }); | 22 | @export(__emutls_get_address, .{ .name = "__emutls_get_address", .linkage = common.linkage, .visibility = common.visibility }); |
| 23 | } | 23 | } |
| 24 | } | 24 | } |
| 25 | 25 |
lib/compiler_rt/exp.zig+7-7| ... | @@ -14,15 +14,15 @@ const common = @import("common.zig"); | ... | @@ -14,15 +14,15 @@ const common = @import("common.zig"); |
| 14 | pub const panic = common.panic; | 14 | pub const panic = common.panic; |
| 15 | 15 | ||
| 16 | comptime { | 16 | comptime { |
| 17 | @export(__exph, .{ .name = "__exph", .linkage = common.linkage }); | 17 | @export(__exph, .{ .name = "__exph", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(expf, .{ .name = "expf", .linkage = common.linkage }); | 18 | @export(expf, .{ .name = "expf", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | @export(exp, .{ .name = "exp", .linkage = common.linkage }); | 19 | @export(exp, .{ .name = "exp", .linkage = common.linkage, .visibility = common.visibility }); |
| 20 | @export(__expx, .{ .name = "__expx", .linkage = common.linkage }); | 20 | @export(__expx, .{ .name = "__expx", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | if (common.want_ppc_abi) { | 21 | if (common.want_ppc_abi) { |
| 22 | @export(expq, .{ .name = "expf128", .linkage = common.linkage }); | 22 | @export(expq, .{ .name = "expf128", .linkage = common.linkage, .visibility = common.visibility }); |
| 23 | } | 23 | } |
| 24 | @export(expq, .{ .name = "expq", .linkage = common.linkage }); | 24 | @export(expq, .{ .name = "expq", .linkage = common.linkage, .visibility = common.visibility }); |
| 25 | @export(expl, .{ .name = "expl", .linkage = common.linkage }); | 25 | @export(expl, .{ .name = "expl", .linkage = common.linkage, .visibility = common.visibility }); |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | pub fn __exph(a: f16) callconv(.C) f16 { | 28 | pub fn __exph(a: f16) callconv(.C) f16 { |
lib/compiler_rt/exp2.zig+7-7| ... | @@ -14,15 +14,15 @@ const common = @import("common.zig"); | ... | @@ -14,15 +14,15 @@ const common = @import("common.zig"); |
| 14 | pub const panic = common.panic; | 14 | pub const panic = common.panic; |
| 15 | 15 | ||
| 16 | comptime { | 16 | comptime { |
| 17 | @export(__exp2h, .{ .name = "__exp2h", .linkage = common.linkage }); | 17 | @export(__exp2h, .{ .name = "__exp2h", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(exp2f, .{ .name = "exp2f", .linkage = common.linkage }); | 18 | @export(exp2f, .{ .name = "exp2f", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | @export(exp2, .{ .name = "exp2", .linkage = common.linkage }); | 19 | @export(exp2, .{ .name = "exp2", .linkage = common.linkage, .visibility = common.visibility }); |
| 20 | @export(__exp2x, .{ .name = "__exp2x", .linkage = common.linkage }); | 20 | @export(__exp2x, .{ .name = "__exp2x", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | if (common.want_ppc_abi) { | 21 | if (common.want_ppc_abi) { |
| 22 | @export(exp2q, .{ .name = "exp2f128", .linkage = common.linkage }); | 22 | @export(exp2q, .{ .name = "exp2f128", .linkage = common.linkage, .visibility = common.visibility }); |
| 23 | } | 23 | } |
| 24 | @export(exp2q, .{ .name = "exp2q", .linkage = common.linkage }); | 24 | @export(exp2q, .{ .name = "exp2q", .linkage = common.linkage, .visibility = common.visibility }); |
| 25 | @export(exp2l, .{ .name = "exp2l", .linkage = common.linkage }); | 25 | @export(exp2l, .{ .name = "exp2l", .linkage = common.linkage, .visibility = common.visibility }); |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | pub fn __exp2h(x: f16) callconv(.C) f16 { | 28 | pub fn __exp2h(x: f16) callconv(.C) f16 { |
lib/compiler_rt/extenddftf2.zig+3-3| ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; | ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_ppc_abi) { | 7 | if (common.want_ppc_abi) { |
| 8 | @export(__extenddftf2, .{ .name = "__extenddfkf2", .linkage = common.linkage }); | 8 | @export(__extenddftf2, .{ .name = "__extenddfkf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else if (common.want_sparc_abi) { | 9 | } else if (common.want_sparc_abi) { |
| 10 | @export(_Qp_dtoq, .{ .name = "_Qp_dtoq", .linkage = common.linkage }); | 10 | @export(_Qp_dtoq, .{ .name = "_Qp_dtoq", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | @export(__extenddftf2, .{ .name = "__extenddftf2", .linkage = common.linkage }); | 12 | @export(__extenddftf2, .{ .name = "__extenddftf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | pub fn __extenddftf2(a: f64) callconv(.C) f128 { | 15 | pub fn __extenddftf2(a: f64) callconv(.C) f128 { |
lib/compiler_rt/extenddfxf2.zig+1-1| ... | @@ -4,7 +4,7 @@ const extend_f80 = @import("./extendf.zig").extend_f80; | ... | @@ -4,7 +4,7 @@ const extend_f80 = @import("./extendf.zig").extend_f80; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__extenddfxf2, .{ .name = "__extenddfxf2", .linkage = common.linkage }); | 7 | @export(__extenddfxf2, .{ .name = "__extenddfxf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | pub fn __extenddfxf2(a: f64) callconv(.C) f80 { | 10 | pub fn __extenddfxf2(a: f64) callconv(.C) f80 { |
lib/compiler_rt/extendhfdf2.zig+1-1| ... | @@ -4,7 +4,7 @@ const extendf = @import("./extendf.zig").extendf; | ... | @@ -4,7 +4,7 @@ const extendf = @import("./extendf.zig").extendf; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__extendhfdf2, .{ .name = "__extendhfdf2", .linkage = common.linkage }); | 7 | @export(__extendhfdf2, .{ .name = "__extendhfdf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | pub fn __extendhfdf2(a: common.F16T) callconv(.C) f64 { | 10 | pub fn __extendhfdf2(a: common.F16T) callconv(.C) f64 { |
lib/compiler_rt/extendhfsf2.zig+3-3| ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; | ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.gnu_f16_abi) { | 7 | if (common.gnu_f16_abi) { |
| 8 | @export(__gnu_h2f_ieee, .{ .name = "__gnu_h2f_ieee", .linkage = common.linkage }); | 8 | @export(__gnu_h2f_ieee, .{ .name = "__gnu_h2f_ieee", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else if (common.want_aeabi) { | 9 | } else if (common.want_aeabi) { |
| 10 | @export(__aeabi_h2f, .{ .name = "__aeabi_h2f", .linkage = common.linkage }); | 10 | @export(__aeabi_h2f, .{ .name = "__aeabi_h2f", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | @export(__extendhfsf2, .{ .name = "__extendhfsf2", .linkage = common.linkage }); | 12 | @export(__extendhfsf2, .{ .name = "__extendhfsf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | pub fn __extendhfsf2(a: common.F16T) callconv(.C) f32 { | 15 | pub fn __extendhfsf2(a: common.F16T) callconv(.C) f32 { |
lib/compiler_rt/extendhftf2.zig+1-1| ... | @@ -4,7 +4,7 @@ const extendf = @import("./extendf.zig").extendf; | ... | @@ -4,7 +4,7 @@ const extendf = @import("./extendf.zig").extendf; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__extendhftf2, .{ .name = "__extendhftf2", .linkage = common.linkage }); | 7 | @export(__extendhftf2, .{ .name = "__extendhftf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | pub fn __extendhftf2(a: common.F16T) callconv(.C) f128 { | 10 | pub fn __extendhftf2(a: common.F16T) callconv(.C) f128 { |
lib/compiler_rt/extendhfxf2.zig+1-1| ... | @@ -4,7 +4,7 @@ const extend_f80 = @import("./extendf.zig").extend_f80; | ... | @@ -4,7 +4,7 @@ const extend_f80 = @import("./extendf.zig").extend_f80; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__extendhfxf2, .{ .name = "__extendhfxf2", .linkage = common.linkage }); | 7 | @export(__extendhfxf2, .{ .name = "__extendhfxf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __extendhfxf2(a: common.F16T) callconv(.C) f80 { | 10 | fn __extendhfxf2(a: common.F16T) callconv(.C) f80 { |
lib/compiler_rt/extendsfdf2.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_f2d, .{ .name = "__aeabi_f2d", .linkage = common.linkage }); | 8 | @export(__aeabi_f2d, .{ .name = "__aeabi_f2d", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__extendsfdf2, .{ .name = "__extendsfdf2", .linkage = common.linkage }); | 10 | @export(__extendsfdf2, .{ .name = "__extendsfdf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/extendsftf2.zig+3-3| ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; | ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_ppc_abi) { | 7 | if (common.want_ppc_abi) { |
| 8 | @export(__extendsftf2, .{ .name = "__extendsfkf2", .linkage = common.linkage }); | 8 | @export(__extendsftf2, .{ .name = "__extendsfkf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else if (common.want_sparc_abi) { | 9 | } else if (common.want_sparc_abi) { |
| 10 | @export(_Qp_stoq, .{ .name = "_Qp_stoq", .linkage = common.linkage }); | 10 | @export(_Qp_stoq, .{ .name = "_Qp_stoq", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | @export(__extendsftf2, .{ .name = "__extendsftf2", .linkage = common.linkage }); | 12 | @export(__extendsftf2, .{ .name = "__extendsftf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | pub fn __extendsftf2(a: f32) callconv(.C) f128 { | 15 | pub fn __extendsftf2(a: f32) callconv(.C) f128 { |
lib/compiler_rt/extendsfxf2.zig+1-1| ... | @@ -4,7 +4,7 @@ const extend_f80 = @import("./extendf.zig").extend_f80; | ... | @@ -4,7 +4,7 @@ const extend_f80 = @import("./extendf.zig").extend_f80; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__extendsfxf2, .{ .name = "__extendsfxf2", .linkage = common.linkage }); | 7 | @export(__extendsfxf2, .{ .name = "__extendsfxf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __extendsfxf2(a: f32) callconv(.C) f80 { | 10 | fn __extendsfxf2(a: f32) callconv(.C) f80 { |
lib/compiler_rt/extendxftf2.zig+1-1| ... | @@ -4,7 +4,7 @@ const common = @import("./common.zig"); | ... | @@ -4,7 +4,7 @@ const common = @import("./common.zig"); |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__extendxftf2, .{ .name = "__extendxftf2", .linkage = common.linkage }); | 7 | @export(__extendxftf2, .{ .name = "__extendxftf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __extendxftf2(a: f80) callconv(.C) f128 { | 10 | fn __extendxftf2(a: f80) callconv(.C) f128 { |
lib/compiler_rt/fabs.zig+7-7| ... | @@ -6,15 +6,15 @@ const common = @import("common.zig"); | ... | @@ -6,15 +6,15 @@ const common = @import("common.zig"); |
| 6 | pub const panic = common.panic; | 6 | pub const panic = common.panic; |
| 7 | 7 | ||
| 8 | comptime { | 8 | comptime { |
| 9 | @export(__fabsh, .{ .name = "__fabsh", .linkage = common.linkage }); | 9 | @export(__fabsh, .{ .name = "__fabsh", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | @export(fabsf, .{ .name = "fabsf", .linkage = common.linkage }); | 10 | @export(fabsf, .{ .name = "fabsf", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | @export(fabs, .{ .name = "fabs", .linkage = common.linkage }); | 11 | @export(fabs, .{ .name = "fabs", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | @export(__fabsx, .{ .name = "__fabsx", .linkage = common.linkage }); | 12 | @export(__fabsx, .{ .name = "__fabsx", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | if (common.want_ppc_abi) { | 13 | if (common.want_ppc_abi) { |
| 14 | @export(fabsq, .{ .name = "fabsf128", .linkage = common.linkage }); | 14 | @export(fabsq, .{ .name = "fabsf128", .linkage = common.linkage, .visibility = common.visibility }); |
| 15 | } | 15 | } |
| 16 | @export(fabsq, .{ .name = "fabsq", .linkage = common.linkage }); | 16 | @export(fabsq, .{ .name = "fabsq", .linkage = common.linkage, .visibility = common.visibility }); |
| 17 | @export(fabsl, .{ .name = "fabsl", .linkage = common.linkage }); | 17 | @export(fabsl, .{ .name = "fabsl", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | pub fn __fabsh(a: f16) callconv(.C) f16 { | 20 | pub fn __fabsh(a: f16) callconv(.C) f16 { |
lib/compiler_rt/fixdfdi.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_d2lz, .{ .name = "__aeabi_d2lz", .linkage = common.linkage }); | 8 | @export(__aeabi_d2lz, .{ .name = "__aeabi_d2lz", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__fixdfdi, .{ .name = "__fixdfdi", .linkage = common.linkage }); | 10 | @export(__fixdfdi, .{ .name = "__fixdfdi", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/fixdfsi.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_d2iz, .{ .name = "__aeabi_d2iz", .linkage = common.linkage }); | 8 | @export(__aeabi_d2iz, .{ .name = "__aeabi_d2iz", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__fixdfsi, .{ .name = "__fixdfsi", .linkage = common.linkage }); | 10 | @export(__fixdfsi, .{ .name = "__fixdfsi", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/fixdfti.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__fixdfti_windows_x86_64, .{ .name = "__fixdfti", .linkage = common.linkage }); | 9 | @export(__fixdfti_windows_x86_64, .{ .name = "__fixdfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__fixdfti, .{ .name = "__fixdfti", .linkage = common.linkage }); | 11 | @export(__fixdfti, .{ .name = "__fixdfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/fixhfdi.zig+1-1| ... | @@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt; | ... | @@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__fixhfdi, .{ .name = "__fixhfdi", .linkage = common.linkage }); | 7 | @export(__fixhfdi, .{ .name = "__fixhfdi", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __fixhfdi(a: f16) callconv(.C) i64 { | 10 | fn __fixhfdi(a: f16) callconv(.C) i64 { |
lib/compiler_rt/fixhfsi.zig+1-1| ... | @@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt; | ... | @@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__fixhfsi, .{ .name = "__fixhfsi", .linkage = common.linkage }); | 7 | @export(__fixhfsi, .{ .name = "__fixhfsi", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __fixhfsi(a: f16) callconv(.C) i32 { | 10 | fn __fixhfsi(a: f16) callconv(.C) i32 { |
lib/compiler_rt/fixhfti.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__fixhfti_windows_x86_64, .{ .name = "__fixhfti", .linkage = common.linkage }); | 9 | @export(__fixhfti_windows_x86_64, .{ .name = "__fixhfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__fixhfti, .{ .name = "__fixhfti", .linkage = common.linkage }); | 11 | @export(__fixhfti, .{ .name = "__fixhfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/fixsfdi.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_f2lz, .{ .name = "__aeabi_f2lz", .linkage = common.linkage }); | 8 | @export(__aeabi_f2lz, .{ .name = "__aeabi_f2lz", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__fixsfdi, .{ .name = "__fixsfdi", .linkage = common.linkage }); | 10 | @export(__fixsfdi, .{ .name = "__fixsfdi", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/fixsfsi.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_f2iz, .{ .name = "__aeabi_f2iz", .linkage = common.linkage }); | 8 | @export(__aeabi_f2iz, .{ .name = "__aeabi_f2iz", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__fixsfsi, .{ .name = "__fixsfsi", .linkage = common.linkage }); | 10 | @export(__fixsfsi, .{ .name = "__fixsfsi", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/fixsfti.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__fixsfti_windows_x86_64, .{ .name = "__fixsfti", .linkage = common.linkage }); | 9 | @export(__fixsfti_windows_x86_64, .{ .name = "__fixsfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__fixsfti, .{ .name = "__fixsfti", .linkage = common.linkage }); | 11 | @export(__fixsfti, .{ .name = "__fixsfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/fixtfdi.zig+3-3| ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; | ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_ppc_abi) { | 7 | if (common.want_ppc_abi) { |
| 8 | @export(__fixtfdi, .{ .name = "__fixkfdi", .linkage = common.linkage }); | 8 | @export(__fixtfdi, .{ .name = "__fixkfdi", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else if (common.want_sparc_abi) { | 9 | } else if (common.want_sparc_abi) { |
| 10 | @export(_Qp_qtox, .{ .name = "_Qp_qtox", .linkage = common.linkage }); | 10 | @export(_Qp_qtox, .{ .name = "_Qp_qtox", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | @export(__fixtfdi, .{ .name = "__fixtfdi", .linkage = common.linkage }); | 12 | @export(__fixtfdi, .{ .name = "__fixtfdi", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | pub fn __fixtfdi(a: f128) callconv(.C) i64 { | 15 | pub fn __fixtfdi(a: f128) callconv(.C) i64 { |
lib/compiler_rt/fixtfsi.zig+3-3| ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; | ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_ppc_abi) { | 7 | if (common.want_ppc_abi) { |
| 8 | @export(__fixtfsi, .{ .name = "__fixkfsi", .linkage = common.linkage }); | 8 | @export(__fixtfsi, .{ .name = "__fixkfsi", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else if (common.want_sparc_abi) { | 9 | } else if (common.want_sparc_abi) { |
| 10 | @export(_Qp_qtoi, .{ .name = "_Qp_qtoi", .linkage = common.linkage }); | 10 | @export(_Qp_qtoi, .{ .name = "_Qp_qtoi", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | @export(__fixtfsi, .{ .name = "__fixtfsi", .linkage = common.linkage }); | 12 | @export(__fixtfsi, .{ .name = "__fixtfsi", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | pub fn __fixtfsi(a: f128) callconv(.C) i32 { | 15 | pub fn __fixtfsi(a: f128) callconv(.C) i32 { |
lib/compiler_rt/fixtfti.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__fixtfti_windows_x86_64, .{ .name = "__fixtfti", .linkage = common.linkage }); | 9 | @export(__fixtfti_windows_x86_64, .{ .name = "__fixtfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__fixtfti, .{ .name = "__fixtfti", .linkage = common.linkage }); | 11 | @export(__fixtfti, .{ .name = "__fixtfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/fixunsdfdi.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_d2ulz, .{ .name = "__aeabi_d2ulz", .linkage = common.linkage }); | 8 | @export(__aeabi_d2ulz, .{ .name = "__aeabi_d2ulz", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__fixunsdfdi, .{ .name = "__fixunsdfdi", .linkage = common.linkage }); | 10 | @export(__fixunsdfdi, .{ .name = "__fixunsdfdi", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/fixunsdfsi.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_d2uiz, .{ .name = "__aeabi_d2uiz", .linkage = common.linkage }); | 8 | @export(__aeabi_d2uiz, .{ .name = "__aeabi_d2uiz", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__fixunsdfsi, .{ .name = "__fixunsdfsi", .linkage = common.linkage }); | 10 | @export(__fixunsdfsi, .{ .name = "__fixunsdfsi", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/fixunsdfti.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__fixunsdfti_windows_x86_64, .{ .name = "__fixunsdfti", .linkage = common.linkage }); | 9 | @export(__fixunsdfti_windows_x86_64, .{ .name = "__fixunsdfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__fixunsdfti, .{ .name = "__fixunsdfti", .linkage = common.linkage }); | 11 | @export(__fixunsdfti, .{ .name = "__fixunsdfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/fixunshfdi.zig+1-1| ... | @@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt; | ... | @@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__fixunshfdi, .{ .name = "__fixunshfdi", .linkage = common.linkage }); | 7 | @export(__fixunshfdi, .{ .name = "__fixunshfdi", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __fixunshfdi(a: f16) callconv(.C) u64 { | 10 | fn __fixunshfdi(a: f16) callconv(.C) u64 { |
lib/compiler_rt/fixunshfsi.zig+1-1| ... | @@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt; | ... | @@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__fixunshfsi, .{ .name = "__fixunshfsi", .linkage = common.linkage }); | 7 | @export(__fixunshfsi, .{ .name = "__fixunshfsi", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __fixunshfsi(a: f16) callconv(.C) u32 { | 10 | fn __fixunshfsi(a: f16) callconv(.C) u32 { |
lib/compiler_rt/fixunshfti.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__fixunshfti_windows_x86_64, .{ .name = "__fixunshfti", .linkage = common.linkage }); | 9 | @export(__fixunshfti_windows_x86_64, .{ .name = "__fixunshfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__fixunshfti, .{ .name = "__fixunshfti", .linkage = common.linkage }); | 11 | @export(__fixunshfti, .{ .name = "__fixunshfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/fixunssfdi.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_f2ulz, .{ .name = "__aeabi_f2ulz", .linkage = common.linkage }); | 8 | @export(__aeabi_f2ulz, .{ .name = "__aeabi_f2ulz", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__fixunssfdi, .{ .name = "__fixunssfdi", .linkage = common.linkage }); | 10 | @export(__fixunssfdi, .{ .name = "__fixunssfdi", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/fixunssfsi.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_f2uiz, .{ .name = "__aeabi_f2uiz", .linkage = common.linkage }); | 8 | @export(__aeabi_f2uiz, .{ .name = "__aeabi_f2uiz", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__fixunssfsi, .{ .name = "__fixunssfsi", .linkage = common.linkage }); | 10 | @export(__fixunssfsi, .{ .name = "__fixunssfsi", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/fixunssfti.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__fixunssfti_windows_x86_64, .{ .name = "__fixunssfti", .linkage = common.linkage }); | 9 | @export(__fixunssfti_windows_x86_64, .{ .name = "__fixunssfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__fixunssfti, .{ .name = "__fixunssfti", .linkage = common.linkage }); | 11 | @export(__fixunssfti, .{ .name = "__fixunssfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/fixunstfdi.zig+3-3| ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; | ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_ppc_abi) { | 7 | if (common.want_ppc_abi) { |
| 8 | @export(__fixunstfdi, .{ .name = "__fixunskfdi", .linkage = common.linkage }); | 8 | @export(__fixunstfdi, .{ .name = "__fixunskfdi", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else if (common.want_sparc_abi) { | 9 | } else if (common.want_sparc_abi) { |
| 10 | @export(_Qp_qtoux, .{ .name = "_Qp_qtoux", .linkage = common.linkage }); | 10 | @export(_Qp_qtoux, .{ .name = "_Qp_qtoux", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | @export(__fixunstfdi, .{ .name = "__fixunstfdi", .linkage = common.linkage }); | 12 | @export(__fixunstfdi, .{ .name = "__fixunstfdi", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | pub fn __fixunstfdi(a: f128) callconv(.C) u64 { | 15 | pub fn __fixunstfdi(a: f128) callconv(.C) u64 { |
lib/compiler_rt/fixunstfsi.zig+3-3| ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; | ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_ppc_abi) { | 7 | if (common.want_ppc_abi) { |
| 8 | @export(__fixunstfsi, .{ .name = "__fixunskfsi", .linkage = common.linkage }); | 8 | @export(__fixunstfsi, .{ .name = "__fixunskfsi", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else if (common.want_sparc_abi) { | 9 | } else if (common.want_sparc_abi) { |
| 10 | @export(_Qp_qtoui, .{ .name = "_Qp_qtoui", .linkage = common.linkage }); | 10 | @export(_Qp_qtoui, .{ .name = "_Qp_qtoui", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | @export(__fixunstfsi, .{ .name = "__fixunstfsi", .linkage = common.linkage }); | 12 | @export(__fixunstfsi, .{ .name = "__fixunstfsi", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | pub fn __fixunstfsi(a: f128) callconv(.C) u32 { | 15 | pub fn __fixunstfsi(a: f128) callconv(.C) u32 { |
lib/compiler_rt/fixunstfti.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__fixunstfti_windows_x86_64, .{ .name = "__fixunstfti", .linkage = common.linkage }); | 9 | @export(__fixunstfti_windows_x86_64, .{ .name = "__fixunstfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__fixunstfti, .{ .name = "__fixunstfti", .linkage = common.linkage }); | 11 | @export(__fixunstfti, .{ .name = "__fixunstfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/fixunsxfdi.zig+1-1| ... | @@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt; | ... | @@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__fixunsxfdi, .{ .name = "__fixunsxfdi", .linkage = common.linkage }); | 7 | @export(__fixunsxfdi, .{ .name = "__fixunsxfdi", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __fixunsxfdi(a: f80) callconv(.C) u64 { | 10 | fn __fixunsxfdi(a: f80) callconv(.C) u64 { |
lib/compiler_rt/fixunsxfsi.zig+1-1| ... | @@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt; | ... | @@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__fixunsxfsi, .{ .name = "__fixunsxfsi", .linkage = common.linkage }); | 7 | @export(__fixunsxfsi, .{ .name = "__fixunsxfsi", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __fixunsxfsi(a: f80) callconv(.C) u32 { | 10 | fn __fixunsxfsi(a: f80) callconv(.C) u32 { |
lib/compiler_rt/fixunsxfti.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__fixunsxfti_windows_x86_64, .{ .name = "__fixunsxfti", .linkage = common.linkage }); | 9 | @export(__fixunsxfti_windows_x86_64, .{ .name = "__fixunsxfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__fixunsxfti, .{ .name = "__fixunsxfti", .linkage = common.linkage }); | 11 | @export(__fixunsxfti, .{ .name = "__fixunsxfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/fixxfdi.zig+1-1| ... | @@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt; | ... | @@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__fixxfdi, .{ .name = "__fixxfdi", .linkage = common.linkage }); | 7 | @export(__fixxfdi, .{ .name = "__fixxfdi", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __fixxfdi(a: f80) callconv(.C) i64 { | 10 | fn __fixxfdi(a: f80) callconv(.C) i64 { |
lib/compiler_rt/fixxfsi.zig+1-1| ... | @@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt; | ... | @@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__fixxfsi, .{ .name = "__fixxfsi", .linkage = common.linkage }); | 7 | @export(__fixxfsi, .{ .name = "__fixxfsi", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __fixxfsi(a: f80) callconv(.C) i32 { | 10 | fn __fixxfsi(a: f80) callconv(.C) i32 { |
lib/compiler_rt/fixxfti.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__fixxfti_windows_x86_64, .{ .name = "__fixxfti", .linkage = common.linkage }); | 9 | @export(__fixxfti_windows_x86_64, .{ .name = "__fixxfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__fixxfti, .{ .name = "__fixxfti", .linkage = common.linkage }); | 11 | @export(__fixxfti, .{ .name = "__fixxfti", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/floatdidf.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_l2d, .{ .name = "__aeabi_l2d", .linkage = common.linkage }); | 8 | @export(__aeabi_l2d, .{ .name = "__aeabi_l2d", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__floatdidf, .{ .name = "__floatdidf", .linkage = common.linkage }); | 10 | @export(__floatdidf, .{ .name = "__floatdidf", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/floatdihf.zig+1-1| ... | @@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat; | ... | @@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__floatdihf, .{ .name = "__floatdihf", .linkage = common.linkage }); | 7 | @export(__floatdihf, .{ .name = "__floatdihf", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __floatdihf(a: i64) callconv(.C) f16 { | 10 | fn __floatdihf(a: i64) callconv(.C) f16 { |
lib/compiler_rt/floatdisf.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_l2f, .{ .name = "__aeabi_l2f", .linkage = common.linkage }); | 8 | @export(__aeabi_l2f, .{ .name = "__aeabi_l2f", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__floatdisf, .{ .name = "__floatdisf", .linkage = common.linkage }); | 10 | @export(__floatdisf, .{ .name = "__floatdisf", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/floatditf.zig+3-3| ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; | ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_ppc_abi) { | 7 | if (common.want_ppc_abi) { |
| 8 | @export(__floatditf, .{ .name = "__floatdikf", .linkage = common.linkage }); | 8 | @export(__floatditf, .{ .name = "__floatdikf", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else if (common.want_sparc_abi) { | 9 | } else if (common.want_sparc_abi) { |
| 10 | @export(_Qp_xtoq, .{ .name = "_Qp_xtoq", .linkage = common.linkage }); | 10 | @export(_Qp_xtoq, .{ .name = "_Qp_xtoq", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | @export(__floatditf, .{ .name = "__floatditf", .linkage = common.linkage }); | 12 | @export(__floatditf, .{ .name = "__floatditf", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | pub fn __floatditf(a: i64) callconv(.C) f128 { | 15 | pub fn __floatditf(a: i64) callconv(.C) f128 { |
lib/compiler_rt/floatdixf.zig+1-1| ... | @@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat; | ... | @@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__floatdixf, .{ .name = "__floatdixf", .linkage = common.linkage }); | 7 | @export(__floatdixf, .{ .name = "__floatdixf", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __floatdixf(a: i64) callconv(.C) f80 { | 10 | fn __floatdixf(a: i64) callconv(.C) f80 { |
lib/compiler_rt/floatsidf.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_i2d, .{ .name = "__aeabi_i2d", .linkage = common.linkage }); | 8 | @export(__aeabi_i2d, .{ .name = "__aeabi_i2d", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__floatsidf, .{ .name = "__floatsidf", .linkage = common.linkage }); | 10 | @export(__floatsidf, .{ .name = "__floatsidf", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/floatsihf.zig+1-1| ... | @@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat; | ... | @@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__floatsihf, .{ .name = "__floatsihf", .linkage = common.linkage }); | 7 | @export(__floatsihf, .{ .name = "__floatsihf", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __floatsihf(a: i32) callconv(.C) f16 { | 10 | fn __floatsihf(a: i32) callconv(.C) f16 { |
lib/compiler_rt/floatsisf.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_i2f, .{ .name = "__aeabi_i2f", .linkage = common.linkage }); | 8 | @export(__aeabi_i2f, .{ .name = "__aeabi_i2f", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__floatsisf, .{ .name = "__floatsisf", .linkage = common.linkage }); | 10 | @export(__floatsisf, .{ .name = "__floatsisf", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/floatsitf.zig+3-3| ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; | ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_ppc_abi) { | 7 | if (common.want_ppc_abi) { |
| 8 | @export(__floatsitf, .{ .name = "__floatsikf", .linkage = common.linkage }); | 8 | @export(__floatsitf, .{ .name = "__floatsikf", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else if (common.want_sparc_abi) { | 9 | } else if (common.want_sparc_abi) { |
| 10 | @export(_Qp_itoq, .{ .name = "_Qp_itoq", .linkage = common.linkage }); | 10 | @export(_Qp_itoq, .{ .name = "_Qp_itoq", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | @export(__floatsitf, .{ .name = "__floatsitf", .linkage = common.linkage }); | 12 | @export(__floatsitf, .{ .name = "__floatsitf", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | pub fn __floatsitf(a: i32) callconv(.C) f128 { | 15 | pub fn __floatsitf(a: i32) callconv(.C) f128 { |
lib/compiler_rt/floatsixf.zig+1-1| ... | @@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat; | ... | @@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__floatsixf, .{ .name = "__floatsixf", .linkage = common.linkage }); | 7 | @export(__floatsixf, .{ .name = "__floatsixf", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __floatsixf(a: i32) callconv(.C) f80 { | 10 | fn __floatsixf(a: i32) callconv(.C) f80 { |
lib/compiler_rt/floattidf.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__floattidf_windows_x86_64, .{ .name = "__floattidf", .linkage = common.linkage }); | 9 | @export(__floattidf_windows_x86_64, .{ .name = "__floattidf", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__floattidf, .{ .name = "__floattidf", .linkage = common.linkage }); | 11 | @export(__floattidf, .{ .name = "__floattidf", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/floattihf.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__floattihf_windows_x86_64, .{ .name = "__floattihf", .linkage = common.linkage }); | 9 | @export(__floattihf_windows_x86_64, .{ .name = "__floattihf", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__floattihf, .{ .name = "__floattihf", .linkage = common.linkage }); | 11 | @export(__floattihf, .{ .name = "__floattihf", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/floattisf.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__floattisf_windows_x86_64, .{ .name = "__floattisf", .linkage = common.linkage }); | 9 | @export(__floattisf_windows_x86_64, .{ .name = "__floattisf", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__floattisf, .{ .name = "__floattisf", .linkage = common.linkage }); | 11 | @export(__floattisf, .{ .name = "__floattisf", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/floattitf.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__floattitf_windows_x86_64, .{ .name = "__floattitf", .linkage = common.linkage }); | 9 | @export(__floattitf_windows_x86_64, .{ .name = "__floattitf", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__floattitf, .{ .name = "__floattitf", .linkage = common.linkage }); | 11 | @export(__floattitf, .{ .name = "__floattitf", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/floattixf.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__floattixf_windows_x86_64, .{ .name = "__floattixf", .linkage = common.linkage }); | 9 | @export(__floattixf_windows_x86_64, .{ .name = "__floattixf", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__floattixf, .{ .name = "__floattixf", .linkage = common.linkage }); | 11 | @export(__floattixf, .{ .name = "__floattixf", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/floatundidf.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_ul2d, .{ .name = "__aeabi_ul2d", .linkage = common.linkage }); | 8 | @export(__aeabi_ul2d, .{ .name = "__aeabi_ul2d", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__floatundidf, .{ .name = "__floatundidf", .linkage = common.linkage }); | 10 | @export(__floatundidf, .{ .name = "__floatundidf", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/floatundihf.zig+1-1| ... | @@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat; | ... | @@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__floatundihf, .{ .name = "__floatundihf", .linkage = common.linkage }); | 7 | @export(__floatundihf, .{ .name = "__floatundihf", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __floatundihf(a: u64) callconv(.C) f16 { | 10 | fn __floatundihf(a: u64) callconv(.C) f16 { |
lib/compiler_rt/floatundisf.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_ul2f, .{ .name = "__aeabi_ul2f", .linkage = common.linkage }); | 8 | @export(__aeabi_ul2f, .{ .name = "__aeabi_ul2f", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__floatundisf, .{ .name = "__floatundisf", .linkage = common.linkage }); | 10 | @export(__floatundisf, .{ .name = "__floatundisf", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/floatunditf.zig+3-3| ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; | ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_ppc_abi) { | 7 | if (common.want_ppc_abi) { |
| 8 | @export(__floatunditf, .{ .name = "__floatundikf", .linkage = common.linkage }); | 8 | @export(__floatunditf, .{ .name = "__floatundikf", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else if (common.want_sparc_abi) { | 9 | } else if (common.want_sparc_abi) { |
| 10 | @export(_Qp_uxtoq, .{ .name = "_Qp_uxtoq", .linkage = common.linkage }); | 10 | @export(_Qp_uxtoq, .{ .name = "_Qp_uxtoq", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | @export(__floatunditf, .{ .name = "__floatunditf", .linkage = common.linkage }); | 12 | @export(__floatunditf, .{ .name = "__floatunditf", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | pub fn __floatunditf(a: u64) callconv(.C) f128 { | 15 | pub fn __floatunditf(a: u64) callconv(.C) f128 { |
lib/compiler_rt/floatundixf.zig+1-1| ... | @@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat; | ... | @@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__floatundixf, .{ .name = "__floatundixf", .linkage = common.linkage }); | 7 | @export(__floatundixf, .{ .name = "__floatundixf", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __floatundixf(a: u64) callconv(.C) f80 { | 10 | fn __floatundixf(a: u64) callconv(.C) f80 { |
lib/compiler_rt/floatunsidf.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_ui2d, .{ .name = "__aeabi_ui2d", .linkage = common.linkage }); | 8 | @export(__aeabi_ui2d, .{ .name = "__aeabi_ui2d", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__floatunsidf, .{ .name = "__floatunsidf", .linkage = common.linkage }); | 10 | @export(__floatunsidf, .{ .name = "__floatunsidf", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/floatunsihf.zig+1-1| ... | @@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat; | ... | @@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__floatunsihf, .{ .name = "__floatunsihf", .linkage = common.linkage }); | 7 | @export(__floatunsihf, .{ .name = "__floatunsihf", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | pub fn __floatunsihf(a: u32) callconv(.C) f16 { | 10 | pub fn __floatunsihf(a: u32) callconv(.C) f16 { |
lib/compiler_rt/floatunsisf.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_ui2f, .{ .name = "__aeabi_ui2f", .linkage = common.linkage }); | 8 | @export(__aeabi_ui2f, .{ .name = "__aeabi_ui2f", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__floatunsisf, .{ .name = "__floatunsisf", .linkage = common.linkage }); | 10 | @export(__floatunsisf, .{ .name = "__floatunsisf", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/floatunsitf.zig+3-3| ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; | ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_ppc_abi) { | 7 | if (common.want_ppc_abi) { |
| 8 | @export(__floatunsitf, .{ .name = "__floatunsikf", .linkage = common.linkage }); | 8 | @export(__floatunsitf, .{ .name = "__floatunsikf", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else if (common.want_sparc_abi) { | 9 | } else if (common.want_sparc_abi) { |
| 10 | @export(_Qp_uitoq, .{ .name = "_Qp_uitoq", .linkage = common.linkage }); | 10 | @export(_Qp_uitoq, .{ .name = "_Qp_uitoq", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | @export(__floatunsitf, .{ .name = "__floatunsitf", .linkage = common.linkage }); | 12 | @export(__floatunsitf, .{ .name = "__floatunsitf", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | pub fn __floatunsitf(a: u32) callconv(.C) f128 { | 15 | pub fn __floatunsitf(a: u32) callconv(.C) f128 { |
lib/compiler_rt/floatunsixf.zig+1-1| ... | @@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat; | ... | @@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__floatunsixf, .{ .name = "__floatunsixf", .linkage = common.linkage }); | 7 | @export(__floatunsixf, .{ .name = "__floatunsixf", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __floatunsixf(a: u32) callconv(.C) f80 { | 10 | fn __floatunsixf(a: u32) callconv(.C) f80 { |
lib/compiler_rt/floatuntidf.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__floatuntidf_windows_x86_64, .{ .name = "__floatuntidf", .linkage = common.linkage }); | 9 | @export(__floatuntidf_windows_x86_64, .{ .name = "__floatuntidf", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__floatuntidf, .{ .name = "__floatuntidf", .linkage = common.linkage }); | 11 | @export(__floatuntidf, .{ .name = "__floatuntidf", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/floatuntihf.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__floatuntihf_windows_x86_64, .{ .name = "__floatuntihf", .linkage = common.linkage }); | 9 | @export(__floatuntihf_windows_x86_64, .{ .name = "__floatuntihf", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__floatuntihf, .{ .name = "__floatuntihf", .linkage = common.linkage }); | 11 | @export(__floatuntihf, .{ .name = "__floatuntihf", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/floatuntisf.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__floatuntisf_windows_x86_64, .{ .name = "__floatuntisf", .linkage = common.linkage }); | 9 | @export(__floatuntisf_windows_x86_64, .{ .name = "__floatuntisf", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__floatuntisf, .{ .name = "__floatuntisf", .linkage = common.linkage }); | 11 | @export(__floatuntisf, .{ .name = "__floatuntisf", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/floatuntitf.zig+3-3| ... | @@ -6,12 +6,12 @@ pub const panic = common.panic; | ... | @@ -6,12 +6,12 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__floatuntitf_windows_x86_64, .{ .name = "__floatuntitf", .linkage = common.linkage }); | 9 | @export(__floatuntitf_windows_x86_64, .{ .name = "__floatuntitf", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | if (common.want_ppc_abi) { | 11 | if (common.want_ppc_abi) { |
| 12 | @export(__floatuntitf, .{ .name = "__floatuntikf", .linkage = common.linkage }); | 12 | @export(__floatuntitf, .{ .name = "__floatuntikf", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | @export(__floatuntitf, .{ .name = "__floatuntitf", .linkage = common.linkage }); | 14 | @export(__floatuntitf, .{ .name = "__floatuntitf", .linkage = common.linkage, .visibility = common.visibility }); |
| 15 | } | 15 | } |
| 16 | } | 16 | } |
| 17 | 17 |
lib/compiler_rt/floatuntixf.zig+2-2| ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; | ... | @@ -6,9 +6,9 @@ pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | if (common.want_windows_v2u64_abi) { | 8 | if (common.want_windows_v2u64_abi) { |
| 9 | @export(__floatuntixf_windows_x86_64, .{ .name = "__floatuntixf", .linkage = common.linkage }); | 9 | @export(__floatuntixf_windows_x86_64, .{ .name = "__floatuntixf", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } else { | 10 | } else { |
| 11 | @export(__floatuntixf, .{ .name = "__floatuntixf", .linkage = common.linkage }); | 11 | @export(__floatuntixf, .{ .name = "__floatuntixf", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | 14 |
lib/compiler_rt/floor.zig+7-7| ... | @@ -14,15 +14,15 @@ const common = @import("common.zig"); | ... | @@ -14,15 +14,15 @@ const common = @import("common.zig"); |
| 14 | pub const panic = common.panic; | 14 | pub const panic = common.panic; |
| 15 | 15 | ||
| 16 | comptime { | 16 | comptime { |
| 17 | @export(__floorh, .{ .name = "__floorh", .linkage = common.linkage }); | 17 | @export(__floorh, .{ .name = "__floorh", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(floorf, .{ .name = "floorf", .linkage = common.linkage }); | 18 | @export(floorf, .{ .name = "floorf", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | @export(floor, .{ .name = "floor", .linkage = common.linkage }); | 19 | @export(floor, .{ .name = "floor", .linkage = common.linkage, .visibility = common.visibility }); |
| 20 | @export(__floorx, .{ .name = "__floorx", .linkage = common.linkage }); | 20 | @export(__floorx, .{ .name = "__floorx", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | if (common.want_ppc_abi) { | 21 | if (common.want_ppc_abi) { |
| 22 | @export(floorq, .{ .name = "floorf128", .linkage = common.linkage }); | 22 | @export(floorq, .{ .name = "floorf128", .linkage = common.linkage, .visibility = common.visibility }); |
| 23 | } | 23 | } |
| 24 | @export(floorq, .{ .name = "floorq", .linkage = common.linkage }); | 24 | @export(floorq, .{ .name = "floorq", .linkage = common.linkage, .visibility = common.visibility }); |
| 25 | @export(floorl, .{ .name = "floorl", .linkage = common.linkage }); | 25 | @export(floorl, .{ .name = "floorl", .linkage = common.linkage, .visibility = common.visibility }); |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | pub fn __floorh(x: f16) callconv(.C) f16 { | 28 | pub fn __floorh(x: f16) callconv(.C) f16 { |
lib/compiler_rt/fma.zig+7-7| ... | @@ -15,15 +15,15 @@ const common = @import("common.zig"); | ... | @@ -15,15 +15,15 @@ const common = @import("common.zig"); |
| 15 | pub const panic = common.panic; | 15 | pub const panic = common.panic; |
| 16 | 16 | ||
| 17 | comptime { | 17 | comptime { |
| 18 | @export(__fmah, .{ .name = "__fmah", .linkage = common.linkage }); | 18 | @export(__fmah, .{ .name = "__fmah", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | @export(fmaf, .{ .name = "fmaf", .linkage = common.linkage }); | 19 | @export(fmaf, .{ .name = "fmaf", .linkage = common.linkage, .visibility = common.visibility }); |
| 20 | @export(fma, .{ .name = "fma", .linkage = common.linkage }); | 20 | @export(fma, .{ .name = "fma", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | @export(__fmax, .{ .name = "__fmax", .linkage = common.linkage }); | 21 | @export(__fmax, .{ .name = "__fmax", .linkage = common.linkage, .visibility = common.visibility }); |
| 22 | if (common.want_ppc_abi) { | 22 | if (common.want_ppc_abi) { |
| 23 | @export(fmaq, .{ .name = "fmaf128", .linkage = common.linkage }); | 23 | @export(fmaq, .{ .name = "fmaf128", .linkage = common.linkage, .visibility = common.visibility }); |
| 24 | } | 24 | } |
| 25 | @export(fmaq, .{ .name = "fmaq", .linkage = common.linkage }); | 25 | @export(fmaq, .{ .name = "fmaq", .linkage = common.linkage, .visibility = common.visibility }); |
| 26 | @export(fmal, .{ .name = "fmal", .linkage = common.linkage }); | 26 | @export(fmal, .{ .name = "fmal", .linkage = common.linkage, .visibility = common.visibility }); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | pub fn __fmah(x: f16, y: f16, z: f16) callconv(.C) f16 { | 29 | pub fn __fmah(x: f16, y: f16, z: f16) callconv(.C) f16 { |
lib/compiler_rt/fmax.zig+7-7| ... | @@ -7,15 +7,15 @@ const common = @import("common.zig"); | ... | @@ -7,15 +7,15 @@ const common = @import("common.zig"); |
| 7 | pub const panic = common.panic; | 7 | pub const panic = common.panic; |
| 8 | 8 | ||
| 9 | comptime { | 9 | comptime { |
| 10 | @export(__fmaxh, .{ .name = "__fmaxh", .linkage = common.linkage }); | 10 | @export(__fmaxh, .{ .name = "__fmaxh", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | @export(fmaxf, .{ .name = "fmaxf", .linkage = common.linkage }); | 11 | @export(fmaxf, .{ .name = "fmaxf", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | @export(fmax, .{ .name = "fmax", .linkage = common.linkage }); | 12 | @export(fmax, .{ .name = "fmax", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | @export(__fmaxx, .{ .name = "__fmaxx", .linkage = common.linkage }); | 13 | @export(__fmaxx, .{ .name = "__fmaxx", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | if (common.want_ppc_abi) { | 14 | if (common.want_ppc_abi) { |
| 15 | @export(fmaxq, .{ .name = "fmaxf128", .linkage = common.linkage }); | 15 | @export(fmaxq, .{ .name = "fmaxf128", .linkage = common.linkage, .visibility = common.visibility }); |
| 16 | } | 16 | } |
| 17 | @export(fmaxq, .{ .name = "fmaxq", .linkage = common.linkage }); | 17 | @export(fmaxq, .{ .name = "fmaxq", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(fmaxl, .{ .name = "fmaxl", .linkage = common.linkage }); | 18 | @export(fmaxl, .{ .name = "fmaxl", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | pub fn __fmaxh(x: f16, y: f16) callconv(.C) f16 { | 21 | pub fn __fmaxh(x: f16, y: f16) callconv(.C) f16 { |
lib/compiler_rt/fmin.zig+7-7| ... | @@ -7,15 +7,15 @@ const common = @import("common.zig"); | ... | @@ -7,15 +7,15 @@ const common = @import("common.zig"); |
| 7 | pub const panic = common.panic; | 7 | pub const panic = common.panic; |
| 8 | 8 | ||
| 9 | comptime { | 9 | comptime { |
| 10 | @export(__fminh, .{ .name = "__fminh", .linkage = common.linkage }); | 10 | @export(__fminh, .{ .name = "__fminh", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | @export(fminf, .{ .name = "fminf", .linkage = common.linkage }); | 11 | @export(fminf, .{ .name = "fminf", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | @export(fmin, .{ .name = "fmin", .linkage = common.linkage }); | 12 | @export(fmin, .{ .name = "fmin", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | @export(__fminx, .{ .name = "__fminx", .linkage = common.linkage }); | 13 | @export(__fminx, .{ .name = "__fminx", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | if (common.want_ppc_abi) { | 14 | if (common.want_ppc_abi) { |
| 15 | @export(fminq, .{ .name = "fminf128", .linkage = common.linkage }); | 15 | @export(fminq, .{ .name = "fminf128", .linkage = common.linkage, .visibility = common.visibility }); |
| 16 | } | 16 | } |
| 17 | @export(fminq, .{ .name = "fminq", .linkage = common.linkage }); | 17 | @export(fminq, .{ .name = "fminq", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(fminl, .{ .name = "fminl", .linkage = common.linkage }); | 18 | @export(fminl, .{ .name = "fminl", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | pub fn __fminh(x: f16, y: f16) callconv(.C) f16 { | 21 | pub fn __fminh(x: f16, y: f16) callconv(.C) f16 { |
lib/compiler_rt/fmod.zig+7-7| ... | @@ -9,15 +9,15 @@ const normalize = common.normalize; | ... | @@ -9,15 +9,15 @@ const normalize = common.normalize; |
| 9 | pub const panic = common.panic; | 9 | pub const panic = common.panic; |
| 10 | 10 | ||
| 11 | comptime { | 11 | comptime { |
| 12 | @export(__fmodh, .{ .name = "__fmodh", .linkage = common.linkage }); | 12 | @export(__fmodh, .{ .name = "__fmodh", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | @export(fmodf, .{ .name = "fmodf", .linkage = common.linkage }); | 13 | @export(fmodf, .{ .name = "fmodf", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | @export(fmod, .{ .name = "fmod", .linkage = common.linkage }); | 14 | @export(fmod, .{ .name = "fmod", .linkage = common.linkage, .visibility = common.visibility }); |
| 15 | @export(__fmodx, .{ .name = "__fmodx", .linkage = common.linkage }); | 15 | @export(__fmodx, .{ .name = "__fmodx", .linkage = common.linkage, .visibility = common.visibility }); |
| 16 | if (common.want_ppc_abi) { | 16 | if (common.want_ppc_abi) { |
| 17 | @export(fmodq, .{ .name = "fmodf128", .linkage = common.linkage }); | 17 | @export(fmodq, .{ .name = "fmodf128", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | } | 18 | } |
| 19 | @export(fmodq, .{ .name = "fmodq", .linkage = common.linkage }); | 19 | @export(fmodq, .{ .name = "fmodq", .linkage = common.linkage, .visibility = common.visibility }); |
| 20 | @export(fmodl, .{ .name = "fmodl", .linkage = common.linkage }); | 20 | @export(fmodl, .{ .name = "fmodl", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | pub fn __fmodh(x: f16, y: f16) callconv(.C) f16 { | 23 | pub fn __fmodh(x: f16, y: f16) callconv(.C) f16 { |
lib/compiler_rt/gedf2.zig+4-4| ... | @@ -7,11 +7,11 @@ pub const panic = common.panic; | ... | @@ -7,11 +7,11 @@ pub const panic = common.panic; |
| 7 | 7 | ||
| 8 | comptime { | 8 | comptime { |
| 9 | if (common.want_aeabi) { | 9 | if (common.want_aeabi) { |
| 10 | @export(__aeabi_dcmpge, .{ .name = "__aeabi_dcmpge", .linkage = common.linkage }); | 10 | @export(__aeabi_dcmpge, .{ .name = "__aeabi_dcmpge", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | @export(__aeabi_dcmpgt, .{ .name = "__aeabi_dcmpgt", .linkage = common.linkage }); | 11 | @export(__aeabi_dcmpgt, .{ .name = "__aeabi_dcmpgt", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } else { | 12 | } else { |
| 13 | @export(__gedf2, .{ .name = "__gedf2", .linkage = common.linkage }); | 13 | @export(__gedf2, .{ .name = "__gedf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | @export(__gtdf2, .{ .name = "__gtdf2", .linkage = common.linkage }); | 14 | @export(__gtdf2, .{ .name = "__gtdf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 15 | } | 15 | } |
| 16 | } | 16 | } |
| 17 | 17 |
lib/compiler_rt/gehf2.zig+2-2| ... | @@ -6,8 +6,8 @@ const comparef = @import("./comparef.zig"); | ... | @@ -6,8 +6,8 @@ const comparef = @import("./comparef.zig"); |
| 6 | pub const panic = common.panic; | 6 | pub const panic = common.panic; |
| 7 | 7 | ||
| 8 | comptime { | 8 | comptime { |
| 9 | @export(__gehf2, .{ .name = "__gehf2", .linkage = common.linkage }); | 9 | @export(__gehf2, .{ .name = "__gehf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | @export(__gthf2, .{ .name = "__gthf2", .linkage = common.linkage }); | 10 | @export(__gthf2, .{ .name = "__gthf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | /// "These functions return a value greater than or equal to zero if neither | 13 | /// "These functions return a value greater than or equal to zero if neither |
lib/compiler_rt/gesf2.zig+4-4| ... | @@ -7,11 +7,11 @@ pub const panic = common.panic; | ... | @@ -7,11 +7,11 @@ pub const panic = common.panic; |
| 7 | 7 | ||
| 8 | comptime { | 8 | comptime { |
| 9 | if (common.want_aeabi) { | 9 | if (common.want_aeabi) { |
| 10 | @export(__aeabi_fcmpge, .{ .name = "__aeabi_fcmpge", .linkage = common.linkage }); | 10 | @export(__aeabi_fcmpge, .{ .name = "__aeabi_fcmpge", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | @export(__aeabi_fcmpgt, .{ .name = "__aeabi_fcmpgt", .linkage = common.linkage }); | 11 | @export(__aeabi_fcmpgt, .{ .name = "__aeabi_fcmpgt", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } else { | 12 | } else { |
| 13 | @export(__gesf2, .{ .name = "__gesf2", .linkage = common.linkage }); | 13 | @export(__gesf2, .{ .name = "__gesf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | @export(__gtsf2, .{ .name = "__gtsf2", .linkage = common.linkage }); | 14 | @export(__gtsf2, .{ .name = "__gtsf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 15 | } | 15 | } |
| 16 | } | 16 | } |
| 17 | 17 |
lib/compiler_rt/getf2.zig+4-4| ... | @@ -7,14 +7,14 @@ pub const panic = common.panic; | ... | @@ -7,14 +7,14 @@ pub const panic = common.panic; |
| 7 | 7 | ||
| 8 | comptime { | 8 | comptime { |
| 9 | if (common.want_ppc_abi) { | 9 | if (common.want_ppc_abi) { |
| 10 | @export(__getf2, .{ .name = "__gekf2", .linkage = common.linkage }); | 10 | @export(__getf2, .{ .name = "__gekf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | @export(__gttf2, .{ .name = "__gtkf2", .linkage = common.linkage }); | 11 | @export(__gttf2, .{ .name = "__gtkf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } else if (common.want_sparc_abi) { | 12 | } else if (common.want_sparc_abi) { |
| 13 | // These exports are handled in cmptf2.zig because gt and ge on sparc | 13 | // These exports are handled in cmptf2.zig because gt and ge on sparc |
| 14 | // are based on calling _Qp_cmp. | 14 | // are based on calling _Qp_cmp. |
| 15 | } | 15 | } |
| 16 | @export(__getf2, .{ .name = "__getf2", .linkage = common.linkage }); | 16 | @export(__getf2, .{ .name = "__getf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 17 | @export(__gttf2, .{ .name = "__gttf2", .linkage = common.linkage }); | 17 | @export(__gttf2, .{ .name = "__gttf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | /// "These functions return a value greater than or equal to zero if neither | 20 | /// "These functions return a value greater than or equal to zero if neither |
lib/compiler_rt/gexf2.zig+2-2| ... | @@ -4,8 +4,8 @@ const comparef = @import("./comparef.zig"); | ... | @@ -4,8 +4,8 @@ const comparef = @import("./comparef.zig"); |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__gexf2, .{ .name = "__gexf2", .linkage = common.linkage }); | 7 | @export(__gexf2, .{ .name = "__gexf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | @export(__gtxf2, .{ .name = "__gtxf2", .linkage = common.linkage }); | 8 | @export(__gtxf2, .{ .name = "__gtxf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | fn __gexf2(a: f80, b: f80) callconv(.C) i32 { | 11 | fn __gexf2(a: f80, b: f80) callconv(.C) i32 { |
lib/compiler_rt/int.zig+15-15| ... | @@ -13,24 +13,24 @@ const udivmod = @import("udivmod.zig").udivmod; | ... | @@ -13,24 +13,24 @@ const udivmod = @import("udivmod.zig").udivmod; |
| 13 | pub const panic = common.panic; | 13 | pub const panic = common.panic; |
| 14 | 14 | ||
| 15 | comptime { | 15 | comptime { |
| 16 | @export(__udivmoddi4, .{ .name = "__udivmoddi4", .linkage = common.linkage }); | 16 | @export(__udivmoddi4, .{ .name = "__udivmoddi4", .linkage = common.linkage, .visibility = common.visibility }); |
| 17 | @export(__mulsi3, .{ .name = "__mulsi3", .linkage = common.linkage }); | 17 | @export(__mulsi3, .{ .name = "__mulsi3", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(__divmoddi4, .{ .name = "__divmoddi4", .linkage = common.linkage }); | 18 | @export(__divmoddi4, .{ .name = "__divmoddi4", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | if (common.want_aeabi) { | 19 | if (common.want_aeabi) { |
| 20 | @export(__aeabi_idiv, .{ .name = "__aeabi_idiv", .linkage = common.linkage }); | 20 | @export(__aeabi_idiv, .{ .name = "__aeabi_idiv", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | @export(__aeabi_uidiv, .{ .name = "__aeabi_uidiv", .linkage = common.linkage }); | 21 | @export(__aeabi_uidiv, .{ .name = "__aeabi_uidiv", .linkage = common.linkage, .visibility = common.visibility }); |
| 22 | } else { | 22 | } else { |
| 23 | @export(__divsi3, .{ .name = "__divsi3", .linkage = common.linkage }); | 23 | @export(__divsi3, .{ .name = "__divsi3", .linkage = common.linkage, .visibility = common.visibility }); |
| 24 | @export(__udivsi3, .{ .name = "__udivsi3", .linkage = common.linkage }); | 24 | @export(__udivsi3, .{ .name = "__udivsi3", .linkage = common.linkage, .visibility = common.visibility }); |
| 25 | } | 25 | } |
| 26 | @export(__divdi3, .{ .name = "__divdi3", .linkage = common.linkage }); | 26 | @export(__divdi3, .{ .name = "__divdi3", .linkage = common.linkage, .visibility = common.visibility }); |
| 27 | @export(__udivdi3, .{ .name = "__udivdi3", .linkage = common.linkage }); | 27 | @export(__udivdi3, .{ .name = "__udivdi3", .linkage = common.linkage, .visibility = common.visibility }); |
| 28 | @export(__modsi3, .{ .name = "__modsi3", .linkage = common.linkage }); | 28 | @export(__modsi3, .{ .name = "__modsi3", .linkage = common.linkage, .visibility = common.visibility }); |
| 29 | @export(__moddi3, .{ .name = "__moddi3", .linkage = common.linkage }); | 29 | @export(__moddi3, .{ .name = "__moddi3", .linkage = common.linkage, .visibility = common.visibility }); |
| 30 | @export(__umodsi3, .{ .name = "__umodsi3", .linkage = common.linkage }); | 30 | @export(__umodsi3, .{ .name = "__umodsi3", .linkage = common.linkage, .visibility = common.visibility }); |
| 31 | @export(__umoddi3, .{ .name = "__umoddi3", .linkage = common.linkage }); | 31 | @export(__umoddi3, .{ .name = "__umoddi3", .linkage = common.linkage, .visibility = common.visibility }); |
| 32 | @export(__divmodsi4, .{ .name = "__divmodsi4", .linkage = common.linkage }); | 32 | @export(__divmodsi4, .{ .name = "__divmodsi4", .linkage = common.linkage, .visibility = common.visibility }); |
| 33 | @export(__udivmodsi4, .{ .name = "__udivmodsi4", .linkage = common.linkage }); | 33 | @export(__udivmodsi4, .{ .name = "__udivmodsi4", .linkage = common.linkage, .visibility = common.visibility }); |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | pub fn __divmoddi4(a: i64, b: i64, rem: *i64) callconv(.C) i64 { | 36 | pub fn __divmoddi4(a: i64, b: i64, rem: *i64) callconv(.C) i64 { |
lib/compiler_rt/log.zig+7-7| ... | @@ -14,15 +14,15 @@ const common = @import("common.zig"); | ... | @@ -14,15 +14,15 @@ const common = @import("common.zig"); |
| 14 | pub const panic = common.panic; | 14 | pub const panic = common.panic; |
| 15 | 15 | ||
| 16 | comptime { | 16 | comptime { |
| 17 | @export(__logh, .{ .name = "__logh", .linkage = common.linkage }); | 17 | @export(__logh, .{ .name = "__logh", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(logf, .{ .name = "logf", .linkage = common.linkage }); | 18 | @export(logf, .{ .name = "logf", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | @export(log, .{ .name = "log", .linkage = common.linkage }); | 19 | @export(log, .{ .name = "log", .linkage = common.linkage, .visibility = common.visibility }); |
| 20 | @export(__logx, .{ .name = "__logx", .linkage = common.linkage }); | 20 | @export(__logx, .{ .name = "__logx", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | if (common.want_ppc_abi) { | 21 | if (common.want_ppc_abi) { |
| 22 | @export(logq, .{ .name = "logf128", .linkage = common.linkage }); | 22 | @export(logq, .{ .name = "logf128", .linkage = common.linkage, .visibility = common.visibility }); |
| 23 | } | 23 | } |
| 24 | @export(logq, .{ .name = "logq", .linkage = common.linkage }); | 24 | @export(logq, .{ .name = "logq", .linkage = common.linkage, .visibility = common.visibility }); |
| 25 | @export(logl, .{ .name = "logl", .linkage = common.linkage }); | 25 | @export(logl, .{ .name = "logl", .linkage = common.linkage, .visibility = common.visibility }); |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | pub fn __logh(a: f16) callconv(.C) f16 { | 28 | pub fn __logh(a: f16) callconv(.C) f16 { |
lib/compiler_rt/log10.zig+7-7| ... | @@ -15,15 +15,15 @@ const common = @import("common.zig"); | ... | @@ -15,15 +15,15 @@ const common = @import("common.zig"); |
| 15 | pub const panic = common.panic; | 15 | pub const panic = common.panic; |
| 16 | 16 | ||
| 17 | comptime { | 17 | comptime { |
| 18 | @export(__log10h, .{ .name = "__log10h", .linkage = common.linkage }); | 18 | @export(__log10h, .{ .name = "__log10h", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | @export(log10f, .{ .name = "log10f", .linkage = common.linkage }); | 19 | @export(log10f, .{ .name = "log10f", .linkage = common.linkage, .visibility = common.visibility }); |
| 20 | @export(log10, .{ .name = "log10", .linkage = common.linkage }); | 20 | @export(log10, .{ .name = "log10", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | @export(__log10x, .{ .name = "__log10x", .linkage = common.linkage }); | 21 | @export(__log10x, .{ .name = "__log10x", .linkage = common.linkage, .visibility = common.visibility }); |
| 22 | if (common.want_ppc_abi) { | 22 | if (common.want_ppc_abi) { |
| 23 | @export(log10q, .{ .name = "log10f128", .linkage = common.linkage }); | 23 | @export(log10q, .{ .name = "log10f128", .linkage = common.linkage, .visibility = common.visibility }); |
| 24 | } | 24 | } |
| 25 | @export(log10q, .{ .name = "log10q", .linkage = common.linkage }); | 25 | @export(log10q, .{ .name = "log10q", .linkage = common.linkage, .visibility = common.visibility }); |
| 26 | @export(log10l, .{ .name = "log10l", .linkage = common.linkage }); | 26 | @export(log10l, .{ .name = "log10l", .linkage = common.linkage, .visibility = common.visibility }); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | pub fn __log10h(a: f16) callconv(.C) f16 { | 29 | pub fn __log10h(a: f16) callconv(.C) f16 { |
lib/compiler_rt/log2.zig+7-7| ... | @@ -15,15 +15,15 @@ const common = @import("common.zig"); | ... | @@ -15,15 +15,15 @@ const common = @import("common.zig"); |
| 15 | pub const panic = common.panic; | 15 | pub const panic = common.panic; |
| 16 | 16 | ||
| 17 | comptime { | 17 | comptime { |
| 18 | @export(__log2h, .{ .name = "__log2h", .linkage = common.linkage }); | 18 | @export(__log2h, .{ .name = "__log2h", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | @export(log2f, .{ .name = "log2f", .linkage = common.linkage }); | 19 | @export(log2f, .{ .name = "log2f", .linkage = common.linkage, .visibility = common.visibility }); |
| 20 | @export(log2, .{ .name = "log2", .linkage = common.linkage }); | 20 | @export(log2, .{ .name = "log2", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | @export(__log2x, .{ .name = "__log2x", .linkage = common.linkage }); | 21 | @export(__log2x, .{ .name = "__log2x", .linkage = common.linkage, .visibility = common.visibility }); |
| 22 | if (common.want_ppc_abi) { | 22 | if (common.want_ppc_abi) { |
| 23 | @export(log2q, .{ .name = "log2f128", .linkage = common.linkage }); | 23 | @export(log2q, .{ .name = "log2f128", .linkage = common.linkage, .visibility = common.visibility }); |
| 24 | } | 24 | } |
| 25 | @export(log2q, .{ .name = "log2q", .linkage = common.linkage }); | 25 | @export(log2q, .{ .name = "log2q", .linkage = common.linkage, .visibility = common.visibility }); |
| 26 | @export(log2l, .{ .name = "log2l", .linkage = common.linkage }); | 26 | @export(log2l, .{ .name = "log2l", .linkage = common.linkage, .visibility = common.visibility }); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | pub fn __log2h(a: f16) callconv(.C) f16 { | 29 | pub fn __log2h(a: f16) callconv(.C) f16 { |
lib/compiler_rt/memcmp.zig+1-1| ... | @@ -2,7 +2,7 @@ const std = @import("std"); | ... | @@ -2,7 +2,7 @@ const std = @import("std"); |
| 2 | const common = @import("./common.zig"); | 2 | const common = @import("./common.zig"); |
| 3 | 3 | ||
| 4 | comptime { | 4 | comptime { |
| 5 | @export(memcmp, .{ .name = "memcmp", .linkage = common.linkage }); | 5 | @export(memcmp, .{ .name = "memcmp", .linkage = common.linkage, .visibility = common.visibility }); |
| 6 | } | 6 | } |
| 7 | 7 | ||
| 8 | pub fn memcmp(vl: [*]const u8, vr: [*]const u8, n: usize) callconv(.C) c_int { | 8 | pub fn memcmp(vl: [*]const u8, vr: [*]const u8, n: usize) callconv(.C) c_int { |
lib/compiler_rt/memcpy.zig+1-1| ... | @@ -4,7 +4,7 @@ const builtin = @import("builtin"); | ... | @@ -4,7 +4,7 @@ const builtin = @import("builtin"); |
| 4 | 4 | ||
| 5 | comptime { | 5 | comptime { |
| 6 | if (builtin.object_format != .c) { | 6 | if (builtin.object_format != .c) { |
| 7 | @export(memcpy, .{ .name = "memcpy", .linkage = common.linkage }); | 7 | @export(memcpy, .{ .name = "memcpy", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | } | 9 | } |
| 10 | 10 |
lib/compiler_rt/memmove.zig+1-1| ... | @@ -2,7 +2,7 @@ const std = @import("std"); | ... | @@ -2,7 +2,7 @@ const std = @import("std"); |
| 2 | const common = @import("./common.zig"); | 2 | const common = @import("./common.zig"); |
| 3 | 3 | ||
| 4 | comptime { | 4 | comptime { |
| 5 | @export(memmove, .{ .name = "memmove", .linkage = common.linkage }); | 5 | @export(memmove, .{ .name = "memmove", .linkage = common.linkage, .visibility = common.visibility }); |
| 6 | } | 6 | } |
| 7 | 7 | ||
| 8 | pub fn memmove(dest: ?[*]u8, src: ?[*]const u8, n: usize) callconv(.C) ?[*]u8 { | 8 | pub fn memmove(dest: ?[*]u8, src: ?[*]const u8, n: usize) callconv(.C) ?[*]u8 { |
lib/compiler_rt/memset.zig+2-2| ... | @@ -4,8 +4,8 @@ const builtin = @import("builtin"); | ... | @@ -4,8 +4,8 @@ const builtin = @import("builtin"); |
| 4 | 4 | ||
| 5 | comptime { | 5 | comptime { |
| 6 | if (builtin.object_format != .c) { | 6 | if (builtin.object_format != .c) { |
| 7 | @export(memset, .{ .name = "memset", .linkage = common.linkage }); | 7 | @export(memset, .{ .name = "memset", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | @export(__memset, .{ .name = "__memset", .linkage = common.linkage }); | 8 | @export(__memset, .{ .name = "__memset", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } | 9 | } |
| 10 | } | 10 | } |
| 11 | 11 |
lib/compiler_rt/modti3.zig+2-2| ... | @@ -11,9 +11,9 @@ pub const panic = common.panic; | ... | @@ -11,9 +11,9 @@ pub const panic = common.panic; |
| 11 | 11 | ||
| 12 | comptime { | 12 | comptime { |
| 13 | if (common.want_windows_v2u64_abi) { | 13 | if (common.want_windows_v2u64_abi) { |
| 14 | @export(__modti3_windows_x86_64, .{ .name = "__modti3", .linkage = common.linkage }); | 14 | @export(__modti3_windows_x86_64, .{ .name = "__modti3", .linkage = common.linkage, .visibility = common.visibility }); |
| 15 | } else { | 15 | } else { |
| 16 | @export(__modti3, .{ .name = "__modti3", .linkage = common.linkage }); | 16 | @export(__modti3, .{ .name = "__modti3", .linkage = common.linkage, .visibility = common.visibility }); |
| 17 | } | 17 | } |
| 18 | } | 18 | } |
| 19 | 19 |
lib/compiler_rt/muldc3.zig+1-1| ... | @@ -5,7 +5,7 @@ pub const panic = common.panic; | ... | @@ -5,7 +5,7 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (@import("builtin").zig_backend != .stage2_c) { | 7 | if (@import("builtin").zig_backend != .stage2_c) { |
| 8 | @export(__muldc3, .{ .name = "__muldc3", .linkage = common.linkage }); | 8 | @export(__muldc3, .{ .name = "__muldc3", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } | 9 | } |
| 10 | } | 10 | } |
| 11 | 11 |
lib/compiler_rt/muldf3.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_dmul, .{ .name = "__aeabi_dmul", .linkage = common.linkage }); | 8 | @export(__aeabi_dmul, .{ .name = "__aeabi_dmul", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__muldf3, .{ .name = "__muldf3", .linkage = common.linkage }); | 10 | @export(__muldf3, .{ .name = "__muldf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/muldi3.zig+2-2| ... | @@ -10,9 +10,9 @@ pub const panic = common.panic; | ... | @@ -10,9 +10,9 @@ pub const panic = common.panic; |
| 10 | 10 | ||
| 11 | comptime { | 11 | comptime { |
| 12 | if (common.want_aeabi) { | 12 | if (common.want_aeabi) { |
| 13 | @export(__aeabi_lmul, .{ .name = "__aeabi_lmul", .linkage = common.linkage }); | 13 | @export(__aeabi_lmul, .{ .name = "__aeabi_lmul", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | } else { | 14 | } else { |
| 15 | @export(__muldi3, .{ .name = "__muldi3", .linkage = common.linkage }); | 15 | @export(__muldi3, .{ .name = "__muldi3", .linkage = common.linkage, .visibility = common.visibility }); |
| 16 | } | 16 | } |
| 17 | } | 17 | } |
| 18 | 18 |
lib/compiler_rt/mulhc3.zig+1-1| ... | @@ -5,7 +5,7 @@ pub const panic = common.panic; | ... | @@ -5,7 +5,7 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (@import("builtin").zig_backend != .stage2_c) { | 7 | if (@import("builtin").zig_backend != .stage2_c) { |
| 8 | @export(__mulhc3, .{ .name = "__mulhc3", .linkage = common.linkage }); | 8 | @export(__mulhc3, .{ .name = "__mulhc3", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } | 9 | } |
| 10 | } | 10 | } |
| 11 | 11 |
lib/compiler_rt/mulhf3.zig+1-1| ... | @@ -4,7 +4,7 @@ const mulf3 = @import("./mulf3.zig").mulf3; | ... | @@ -4,7 +4,7 @@ const mulf3 = @import("./mulf3.zig").mulf3; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__mulhf3, .{ .name = "__mulhf3", .linkage = common.linkage }); | 7 | @export(__mulhf3, .{ .name = "__mulhf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | pub fn __mulhf3(a: f16, b: f16) callconv(.C) f16 { | 10 | pub fn __mulhf3(a: f16, b: f16) callconv(.C) f16 { |
lib/compiler_rt/mulo.zig+3-3| ... | @@ -6,9 +6,9 @@ const common = @import("common.zig"); | ... | @@ -6,9 +6,9 @@ const common = @import("common.zig"); |
| 6 | pub const panic = common.panic; | 6 | pub const panic = common.panic; |
| 7 | 7 | ||
| 8 | comptime { | 8 | comptime { |
| 9 | @export(__mulosi4, .{ .name = "__mulosi4", .linkage = common.linkage }); | 9 | @export(__mulosi4, .{ .name = "__mulosi4", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | @export(__mulodi4, .{ .name = "__mulodi4", .linkage = common.linkage }); | 10 | @export(__mulodi4, .{ .name = "__mulodi4", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | @export(__muloti4, .{ .name = "__muloti4", .linkage = common.linkage }); | 11 | @export(__muloti4, .{ .name = "__muloti4", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | // mulo - multiplication overflow | 14 | // mulo - multiplication overflow |
lib/compiler_rt/mulsc3.zig+1-1| ... | @@ -5,7 +5,7 @@ pub const panic = common.panic; | ... | @@ -5,7 +5,7 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (@import("builtin").zig_backend != .stage2_c) { | 7 | if (@import("builtin").zig_backend != .stage2_c) { |
| 8 | @export(__mulsc3, .{ .name = "__mulsc3", .linkage = common.linkage }); | 8 | @export(__mulsc3, .{ .name = "__mulsc3", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } | 9 | } |
| 10 | } | 10 | } |
| 11 | 11 |
lib/compiler_rt/mulsf3.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_fmul, .{ .name = "__aeabi_fmul", .linkage = common.linkage }); | 8 | @export(__aeabi_fmul, .{ .name = "__aeabi_fmul", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__mulsf3, .{ .name = "__mulsf3", .linkage = common.linkage }); | 10 | @export(__mulsf3, .{ .name = "__mulsf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/multc3.zig+1-1| ... | @@ -5,7 +5,7 @@ pub const panic = common.panic; | ... | @@ -5,7 +5,7 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (@import("builtin").zig_backend != .stage2_c) { | 7 | if (@import("builtin").zig_backend != .stage2_c) { |
| 8 | @export(__multc3, .{ .name = "__multc3", .linkage = common.linkage }); | 8 | @export(__multc3, .{ .name = "__multc3", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } | 9 | } |
| 10 | } | 10 | } |
| 11 | 11 |
lib/compiler_rt/multf3.zig+3-3| ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; | ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_ppc_abi) { | 7 | if (common.want_ppc_abi) { |
| 8 | @export(__multf3, .{ .name = "__mulkf3", .linkage = common.linkage }); | 8 | @export(__multf3, .{ .name = "__mulkf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else if (common.want_sparc_abi) { | 9 | } else if (common.want_sparc_abi) { |
| 10 | @export(_Qp_mul, .{ .name = "_Qp_mul", .linkage = common.linkage }); | 10 | @export(_Qp_mul, .{ .name = "_Qp_mul", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | @export(__multf3, .{ .name = "__multf3", .linkage = common.linkage }); | 12 | @export(__multf3, .{ .name = "__multf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | pub fn __multf3(a: f128, b: f128) callconv(.C) f128 { | 15 | pub fn __multf3(a: f128, b: f128) callconv(.C) f128 { |
lib/compiler_rt/multi3.zig+2-2| ... | @@ -11,9 +11,9 @@ pub const panic = common.panic; | ... | @@ -11,9 +11,9 @@ pub const panic = common.panic; |
| 11 | 11 | ||
| 12 | comptime { | 12 | comptime { |
| 13 | if (common.want_windows_v2u64_abi) { | 13 | if (common.want_windows_v2u64_abi) { |
| 14 | @export(__multi3_windows_x86_64, .{ .name = "__multi3", .linkage = common.linkage }); | 14 | @export(__multi3_windows_x86_64, .{ .name = "__multi3", .linkage = common.linkage, .visibility = common.visibility }); |
| 15 | } else { | 15 | } else { |
| 16 | @export(__multi3, .{ .name = "__multi3", .linkage = common.linkage }); | 16 | @export(__multi3, .{ .name = "__multi3", .linkage = common.linkage, .visibility = common.visibility }); |
| 17 | } | 17 | } |
| 18 | } | 18 | } |
| 19 | 19 |
lib/compiler_rt/mulxc3.zig+1-1| ... | @@ -5,7 +5,7 @@ pub const panic = common.panic; | ... | @@ -5,7 +5,7 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (@import("builtin").zig_backend != .stage2_c) { | 7 | if (@import("builtin").zig_backend != .stage2_c) { |
| 8 | @export(__mulxc3, .{ .name = "__mulxc3", .linkage = common.linkage }); | 8 | @export(__mulxc3, .{ .name = "__mulxc3", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } | 9 | } |
| 10 | } | 10 | } |
| 11 | 11 |
lib/compiler_rt/mulxf3.zig+1-1| ... | @@ -4,7 +4,7 @@ const mulf3 = @import("./mulf3.zig").mulf3; | ... | @@ -4,7 +4,7 @@ const mulf3 = @import("./mulf3.zig").mulf3; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__mulxf3, .{ .name = "__mulxf3", .linkage = common.linkage }); | 7 | @export(__mulxf3, .{ .name = "__mulxf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | pub fn __mulxf3(a: f80, b: f80) callconv(.C) f80 { | 10 | pub fn __mulxf3(a: f80, b: f80) callconv(.C) f80 { |
lib/compiler_rt/negXi2.zig+3-3| ... | @@ -13,9 +13,9 @@ const common = @import("common.zig"); | ... | @@ -13,9 +13,9 @@ const common = @import("common.zig"); |
| 13 | pub const panic = common.panic; | 13 | pub const panic = common.panic; |
| 14 | 14 | ||
| 15 | comptime { | 15 | comptime { |
| 16 | @export(__negsi2, .{ .name = "__negsi2", .linkage = common.linkage }); | 16 | @export(__negsi2, .{ .name = "__negsi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 17 | @export(__negdi2, .{ .name = "__negdi2", .linkage = common.linkage }); | 17 | @export(__negdi2, .{ .name = "__negdi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(__negti2, .{ .name = "__negti2", .linkage = common.linkage }); | 18 | @export(__negti2, .{ .name = "__negti2", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | pub fn __negsi2(a: i32) callconv(.C) i32 { | 21 | pub fn __negsi2(a: i32) callconv(.C) i32 { |
lib/compiler_rt/negdf2.zig+2-2| ... | @@ -4,9 +4,9 @@ pub const panic = common.panic; | ... | @@ -4,9 +4,9 @@ pub const panic = common.panic; |
| 4 | 4 | ||
| 5 | comptime { | 5 | comptime { |
| 6 | if (common.want_aeabi) { | 6 | if (common.want_aeabi) { |
| 7 | @export(__aeabi_dneg, .{ .name = "__aeabi_dneg", .linkage = common.linkage }); | 7 | @export(__aeabi_dneg, .{ .name = "__aeabi_dneg", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } else { | 8 | } else { |
| 9 | @export(__negdf2, .{ .name = "__negdf2", .linkage = common.linkage }); | 9 | @export(__negdf2, .{ .name = "__negdf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } | 10 | } |
| 11 | } | 11 | } |
| 12 | 12 |
lib/compiler_rt/neghf2.zig+1-1| ... | @@ -3,7 +3,7 @@ const common = @import("./common.zig"); | ... | @@ -3,7 +3,7 @@ const common = @import("./common.zig"); |
| 3 | pub const panic = common.panic; | 3 | pub const panic = common.panic; |
| 4 | 4 | ||
| 5 | comptime { | 5 | comptime { |
| 6 | @export(__neghf2, .{ .name = "__neghf2", .linkage = common.linkage }); | 6 | @export(__neghf2, .{ .name = "__neghf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 7 | } | 7 | } |
| 8 | 8 | ||
| 9 | fn __neghf2(a: f16) callconv(.C) f16 { | 9 | fn __neghf2(a: f16) callconv(.C) f16 { |
lib/compiler_rt/negsf2.zig+2-2| ... | @@ -4,9 +4,9 @@ pub const panic = common.panic; | ... | @@ -4,9 +4,9 @@ pub const panic = common.panic; |
| 4 | 4 | ||
| 5 | comptime { | 5 | comptime { |
| 6 | if (common.want_aeabi) { | 6 | if (common.want_aeabi) { |
| 7 | @export(__aeabi_fneg, .{ .name = "__aeabi_fneg", .linkage = common.linkage }); | 7 | @export(__aeabi_fneg, .{ .name = "__aeabi_fneg", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } else { | 8 | } else { |
| 9 | @export(__negsf2, .{ .name = "__negsf2", .linkage = common.linkage }); | 9 | @export(__negsf2, .{ .name = "__negsf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } | 10 | } |
| 11 | } | 11 | } |
| 12 | 12 |
lib/compiler_rt/negtf2.zig+1-1| ... | @@ -3,7 +3,7 @@ const common = @import("./common.zig"); | ... | @@ -3,7 +3,7 @@ const common = @import("./common.zig"); |
| 3 | pub const panic = common.panic; | 3 | pub const panic = common.panic; |
| 4 | 4 | ||
| 5 | comptime { | 5 | comptime { |
| 6 | @export(__negtf2, .{ .name = "__negtf2", .linkage = common.linkage }); | 6 | @export(__negtf2, .{ .name = "__negtf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 7 | } | 7 | } |
| 8 | 8 | ||
| 9 | fn __negtf2(a: f128) callconv(.C) f128 { | 9 | fn __negtf2(a: f128) callconv(.C) f128 { |
lib/compiler_rt/negv.zig+3-3| ... | @@ -8,9 +8,9 @@ const common = @import("common.zig"); | ... | @@ -8,9 +8,9 @@ const common = @import("common.zig"); |
| 8 | pub const panic = common.panic; | 8 | pub const panic = common.panic; |
| 9 | 9 | ||
| 10 | comptime { | 10 | comptime { |
| 11 | @export(__negvsi2, .{ .name = "__negvsi2", .linkage = common.linkage }); | 11 | @export(__negvsi2, .{ .name = "__negvsi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | @export(__negvdi2, .{ .name = "__negvdi2", .linkage = common.linkage }); | 12 | @export(__negvdi2, .{ .name = "__negvdi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | @export(__negvti2, .{ .name = "__negvti2", .linkage = common.linkage }); | 13 | @export(__negvti2, .{ .name = "__negvti2", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | } | 14 | } |
| 15 | 15 | ||
| 16 | pub fn __negvsi2(a: i32) callconv(.C) i32 { | 16 | pub fn __negvsi2(a: i32) callconv(.C) i32 { |
lib/compiler_rt/negxf2.zig+1-1| ... | @@ -3,7 +3,7 @@ const common = @import("./common.zig"); | ... | @@ -3,7 +3,7 @@ const common = @import("./common.zig"); |
| 3 | pub const panic = common.panic; | 3 | pub const panic = common.panic; |
| 4 | 4 | ||
| 5 | comptime { | 5 | comptime { |
| 6 | @export(__negxf2, .{ .name = "__negxf2", .linkage = common.linkage }); | 6 | @export(__negxf2, .{ .name = "__negxf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 7 | } | 7 | } |
| 8 | 8 | ||
| 9 | fn __negxf2(a: f80) callconv(.C) f80 { | 9 | fn __negxf2(a: f80) callconv(.C) f80 { |
lib/compiler_rt/parity.zig+3-3| ... | @@ -8,9 +8,9 @@ const common = @import("common.zig"); | ... | @@ -8,9 +8,9 @@ const common = @import("common.zig"); |
| 8 | pub const panic = common.panic; | 8 | pub const panic = common.panic; |
| 9 | 9 | ||
| 10 | comptime { | 10 | comptime { |
| 11 | @export(__paritysi2, .{ .name = "__paritysi2", .linkage = common.linkage }); | 11 | @export(__paritysi2, .{ .name = "__paritysi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | @export(__paritydi2, .{ .name = "__paritydi2", .linkage = common.linkage }); | 12 | @export(__paritydi2, .{ .name = "__paritydi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | @export(__parityti2, .{ .name = "__parityti2", .linkage = common.linkage }); | 13 | @export(__parityti2, .{ .name = "__parityti2", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | } | 14 | } |
| 15 | 15 | ||
| 16 | pub fn __paritysi2(a: i32) callconv(.C) i32 { | 16 | pub fn __paritysi2(a: i32) callconv(.C) i32 { |
lib/compiler_rt/popcount.zig+3-3| ... | @@ -13,9 +13,9 @@ const common = @import("common.zig"); | ... | @@ -13,9 +13,9 @@ const common = @import("common.zig"); |
| 13 | pub const panic = common.panic; | 13 | pub const panic = common.panic; |
| 14 | 14 | ||
| 15 | comptime { | 15 | comptime { |
| 16 | @export(__popcountsi2, .{ .name = "__popcountsi2", .linkage = common.linkage }); | 16 | @export(__popcountsi2, .{ .name = "__popcountsi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 17 | @export(__popcountdi2, .{ .name = "__popcountdi2", .linkage = common.linkage }); | 17 | @export(__popcountdi2, .{ .name = "__popcountdi2", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(__popcountti2, .{ .name = "__popcountti2", .linkage = common.linkage }); | 18 | @export(__popcountti2, .{ .name = "__popcountti2", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | pub fn __popcountsi2(a: i32) callconv(.C) i32 { | 21 | pub fn __popcountsi2(a: i32) callconv(.C) i32 { |
lib/compiler_rt/round.zig+7-7| ... | @@ -14,15 +14,15 @@ const common = @import("common.zig"); | ... | @@ -14,15 +14,15 @@ const common = @import("common.zig"); |
| 14 | pub const panic = common.panic; | 14 | pub const panic = common.panic; |
| 15 | 15 | ||
| 16 | comptime { | 16 | comptime { |
| 17 | @export(__roundh, .{ .name = "__roundh", .linkage = common.linkage }); | 17 | @export(__roundh, .{ .name = "__roundh", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(roundf, .{ .name = "roundf", .linkage = common.linkage }); | 18 | @export(roundf, .{ .name = "roundf", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | @export(round, .{ .name = "round", .linkage = common.linkage }); | 19 | @export(round, .{ .name = "round", .linkage = common.linkage, .visibility = common.visibility }); |
| 20 | @export(__roundx, .{ .name = "__roundx", .linkage = common.linkage }); | 20 | @export(__roundx, .{ .name = "__roundx", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | if (common.want_ppc_abi) { | 21 | if (common.want_ppc_abi) { |
| 22 | @export(roundq, .{ .name = "roundf128", .linkage = common.linkage }); | 22 | @export(roundq, .{ .name = "roundf128", .linkage = common.linkage, .visibility = common.visibility }); |
| 23 | } | 23 | } |
| 24 | @export(roundq, .{ .name = "roundq", .linkage = common.linkage }); | 24 | @export(roundq, .{ .name = "roundq", .linkage = common.linkage, .visibility = common.visibility }); |
| 25 | @export(roundl, .{ .name = "roundl", .linkage = common.linkage }); | 25 | @export(roundl, .{ .name = "roundl", .linkage = common.linkage, .visibility = common.visibility }); |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | pub fn __roundh(x: f16) callconv(.C) f16 { | 28 | pub fn __roundh(x: f16) callconv(.C) f16 { |
lib/compiler_rt/shift.zig+9-9| ... | @@ -7,18 +7,18 @@ const common = @import("common.zig"); | ... | @@ -7,18 +7,18 @@ const common = @import("common.zig"); |
| 7 | pub const panic = common.panic; | 7 | pub const panic = common.panic; |
| 8 | 8 | ||
| 9 | comptime { | 9 | comptime { |
| 10 | @export(__ashlti3, .{ .name = "__ashlti3", .linkage = common.linkage }); | 10 | @export(__ashlti3, .{ .name = "__ashlti3", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | @export(__ashrti3, .{ .name = "__ashrti3", .linkage = common.linkage }); | 11 | @export(__ashrti3, .{ .name = "__ashrti3", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | @export(__lshrti3, .{ .name = "__lshrti3", .linkage = common.linkage }); | 12 | @export(__lshrti3, .{ .name = "__lshrti3", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | 13 | ||
| 14 | if (common.want_aeabi) { | 14 | if (common.want_aeabi) { |
| 15 | @export(__aeabi_llsl, .{ .name = "__aeabi_llsl", .linkage = common.linkage }); | 15 | @export(__aeabi_llsl, .{ .name = "__aeabi_llsl", .linkage = common.linkage, .visibility = common.visibility }); |
| 16 | @export(__aeabi_lasr, .{ .name = "__aeabi_lasr", .linkage = common.linkage }); | 16 | @export(__aeabi_lasr, .{ .name = "__aeabi_lasr", .linkage = common.linkage, .visibility = common.visibility }); |
| 17 | @export(__aeabi_llsr, .{ .name = "__aeabi_llsr", .linkage = common.linkage }); | 17 | @export(__aeabi_llsr, .{ .name = "__aeabi_llsr", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | } else { | 18 | } else { |
| 19 | @export(__ashldi3, .{ .name = "__ashldi3", .linkage = common.linkage }); | 19 | @export(__ashldi3, .{ .name = "__ashldi3", .linkage = common.linkage, .visibility = common.visibility }); |
| 20 | @export(__ashrdi3, .{ .name = "__ashrdi3", .linkage = common.linkage }); | 20 | @export(__ashrdi3, .{ .name = "__ashrdi3", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | @export(__lshrdi3, .{ .name = "__lshrdi3", .linkage = common.linkage }); | 21 | @export(__lshrdi3, .{ .name = "__lshrdi3", .linkage = common.linkage, .visibility = common.visibility }); |
| 22 | } | 22 | } |
| 23 | } | 23 | } |
| 24 | 24 |
lib/compiler_rt/sin.zig+7-7| ... | @@ -18,15 +18,15 @@ const rem_pio2f = @import("rem_pio2f.zig").rem_pio2f; | ... | @@ -18,15 +18,15 @@ const rem_pio2f = @import("rem_pio2f.zig").rem_pio2f; |
| 18 | pub const panic = common.panic; | 18 | pub const panic = common.panic; |
| 19 | 19 | ||
| 20 | comptime { | 20 | comptime { |
| 21 | @export(__sinh, .{ .name = "__sinh", .linkage = common.linkage }); | 21 | @export(__sinh, .{ .name = "__sinh", .linkage = common.linkage, .visibility = common.visibility }); |
| 22 | @export(sinf, .{ .name = "sinf", .linkage = common.linkage }); | 22 | @export(sinf, .{ .name = "sinf", .linkage = common.linkage, .visibility = common.visibility }); |
| 23 | @export(sin, .{ .name = "sin", .linkage = common.linkage }); | 23 | @export(sin, .{ .name = "sin", .linkage = common.linkage, .visibility = common.visibility }); |
| 24 | @export(__sinx, .{ .name = "__sinx", .linkage = common.linkage }); | 24 | @export(__sinx, .{ .name = "__sinx", .linkage = common.linkage, .visibility = common.visibility }); |
| 25 | if (common.want_ppc_abi) { | 25 | if (common.want_ppc_abi) { |
| 26 | @export(sinq, .{ .name = "sinf128", .linkage = common.linkage }); | 26 | @export(sinq, .{ .name = "sinf128", .linkage = common.linkage, .visibility = common.visibility }); |
| 27 | } | 27 | } |
| 28 | @export(sinq, .{ .name = "sinq", .linkage = common.linkage }); | 28 | @export(sinq, .{ .name = "sinq", .linkage = common.linkage, .visibility = common.visibility }); |
| 29 | @export(sinl, .{ .name = "sinl", .linkage = common.linkage }); | 29 | @export(sinl, .{ .name = "sinl", .linkage = common.linkage, .visibility = common.visibility }); |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | pub fn __sinh(x: f16) callconv(.C) f16 { | 32 | pub fn __sinh(x: f16) callconv(.C) f16 { |
lib/compiler_rt/sincos.zig+7-7| ... | @@ -10,15 +10,15 @@ const common = @import("common.zig"); | ... | @@ -10,15 +10,15 @@ const common = @import("common.zig"); |
| 10 | pub const panic = common.panic; | 10 | pub const panic = common.panic; |
| 11 | 11 | ||
| 12 | comptime { | 12 | comptime { |
| 13 | @export(__sincosh, .{ .name = "__sincosh", .linkage = common.linkage }); | 13 | @export(__sincosh, .{ .name = "__sincosh", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | @export(sincosf, .{ .name = "sincosf", .linkage = common.linkage }); | 14 | @export(sincosf, .{ .name = "sincosf", .linkage = common.linkage, .visibility = common.visibility }); |
| 15 | @export(sincos, .{ .name = "sincos", .linkage = common.linkage }); | 15 | @export(sincos, .{ .name = "sincos", .linkage = common.linkage, .visibility = common.visibility }); |
| 16 | @export(__sincosx, .{ .name = "__sincosx", .linkage = common.linkage }); | 16 | @export(__sincosx, .{ .name = "__sincosx", .linkage = common.linkage, .visibility = common.visibility }); |
| 17 | if (common.want_ppc_abi) { | 17 | if (common.want_ppc_abi) { |
| 18 | @export(sincosq, .{ .name = "sincosf128", .linkage = common.linkage }); | 18 | @export(sincosq, .{ .name = "sincosf128", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | } | 19 | } |
| 20 | @export(sincosq, .{ .name = "sincosq", .linkage = common.linkage }); | 20 | @export(sincosq, .{ .name = "sincosq", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | @export(sincosl, .{ .name = "sincosl", .linkage = common.linkage }); | 21 | @export(sincosl, .{ .name = "sincosl", .linkage = common.linkage, .visibility = common.visibility }); |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | pub fn __sincosh(x: f16, r_sin: *f16, r_cos: *f16) callconv(.C) void { | 24 | pub fn __sincosh(x: f16, r_sin: *f16, r_cos: *f16) callconv(.C) void { |
lib/compiler_rt/sqrt.zig+7-7| ... | @@ -7,15 +7,15 @@ const common = @import("common.zig"); | ... | @@ -7,15 +7,15 @@ const common = @import("common.zig"); |
| 7 | pub const panic = common.panic; | 7 | pub const panic = common.panic; |
| 8 | 8 | ||
| 9 | comptime { | 9 | comptime { |
| 10 | @export(__sqrth, .{ .name = "__sqrth", .linkage = common.linkage }); | 10 | @export(__sqrth, .{ .name = "__sqrth", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | @export(sqrtf, .{ .name = "sqrtf", .linkage = common.linkage }); | 11 | @export(sqrtf, .{ .name = "sqrtf", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | @export(sqrt, .{ .name = "sqrt", .linkage = common.linkage }); | 12 | @export(sqrt, .{ .name = "sqrt", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | @export(__sqrtx, .{ .name = "__sqrtx", .linkage = common.linkage }); | 13 | @export(__sqrtx, .{ .name = "__sqrtx", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | if (common.want_ppc_abi) { | 14 | if (common.want_ppc_abi) { |
| 15 | @export(sqrtq, .{ .name = "sqrtf128", .linkage = common.linkage }); | 15 | @export(sqrtq, .{ .name = "sqrtf128", .linkage = common.linkage, .visibility = common.visibility }); |
| 16 | } | 16 | } |
| 17 | @export(sqrtq, .{ .name = "sqrtq", .linkage = common.linkage }); | 17 | @export(sqrtq, .{ .name = "sqrtq", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(sqrtl, .{ .name = "sqrtl", .linkage = common.linkage }); | 18 | @export(sqrtl, .{ .name = "sqrtl", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | pub fn __sqrth(x: f16) callconv(.C) f16 { | 21 | pub fn __sqrth(x: f16) callconv(.C) f16 { |
lib/compiler_rt/subdf3.zig+2-2| ... | @@ -4,9 +4,9 @@ pub const panic = common.panic; | ... | @@ -4,9 +4,9 @@ pub const panic = common.panic; |
| 4 | 4 | ||
| 5 | comptime { | 5 | comptime { |
| 6 | if (common.want_aeabi) { | 6 | if (common.want_aeabi) { |
| 7 | @export(__aeabi_dsub, .{ .name = "__aeabi_dsub", .linkage = common.linkage }); | 7 | @export(__aeabi_dsub, .{ .name = "__aeabi_dsub", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } else { | 8 | } else { |
| 9 | @export(__subdf3, .{ .name = "__subdf3", .linkage = common.linkage }); | 9 | @export(__subdf3, .{ .name = "__subdf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } | 10 | } |
| 11 | } | 11 | } |
| 12 | 12 |
lib/compiler_rt/subhf3.zig+1-1| ... | @@ -3,7 +3,7 @@ const common = @import("./common.zig"); | ... | @@ -3,7 +3,7 @@ const common = @import("./common.zig"); |
| 3 | pub const panic = common.panic; | 3 | pub const panic = common.panic; |
| 4 | 4 | ||
| 5 | comptime { | 5 | comptime { |
| 6 | @export(__subhf3, .{ .name = "__subhf3", .linkage = common.linkage }); | 6 | @export(__subhf3, .{ .name = "__subhf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 7 | } | 7 | } |
| 8 | 8 | ||
| 9 | fn __subhf3(a: f16, b: f16) callconv(.C) f16 { | 9 | fn __subhf3(a: f16, b: f16) callconv(.C) f16 { |
lib/compiler_rt/subo.zig+3-3| ... | @@ -10,9 +10,9 @@ const common = @import("common.zig"); | ... | @@ -10,9 +10,9 @@ const common = @import("common.zig"); |
| 10 | pub const panic = common.panic; | 10 | pub const panic = common.panic; |
| 11 | 11 | ||
| 12 | comptime { | 12 | comptime { |
| 13 | @export(__subosi4, .{ .name = "__subosi4", .linkage = common.linkage }); | 13 | @export(__subosi4, .{ .name = "__subosi4", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | @export(__subodi4, .{ .name = "__subodi4", .linkage = common.linkage }); | 14 | @export(__subodi4, .{ .name = "__subodi4", .linkage = common.linkage, .visibility = common.visibility }); |
| 15 | @export(__suboti4, .{ .name = "__suboti4", .linkage = common.linkage }); | 15 | @export(__suboti4, .{ .name = "__suboti4", .linkage = common.linkage, .visibility = common.visibility }); |
| 16 | } | 16 | } |
| 17 | 17 | ||
| 18 | pub fn __subosi4(a: i32, b: i32, overflow: *c_int) callconv(.C) i32 { | 18 | pub fn __subosi4(a: i32, b: i32, overflow: *c_int) callconv(.C) i32 { |
lib/compiler_rt/subsf3.zig+2-2| ... | @@ -4,9 +4,9 @@ pub const panic = common.panic; | ... | @@ -4,9 +4,9 @@ pub const panic = common.panic; |
| 4 | 4 | ||
| 5 | comptime { | 5 | comptime { |
| 6 | if (common.want_aeabi) { | 6 | if (common.want_aeabi) { |
| 7 | @export(__aeabi_fsub, .{ .name = "__aeabi_fsub", .linkage = common.linkage }); | 7 | @export(__aeabi_fsub, .{ .name = "__aeabi_fsub", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } else { | 8 | } else { |
| 9 | @export(__subsf3, .{ .name = "__subsf3", .linkage = common.linkage }); | 9 | @export(__subsf3, .{ .name = "__subsf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } | 10 | } |
| 11 | } | 11 | } |
| 12 | 12 |
lib/compiler_rt/subtf3.zig+3-3| ... | @@ -4,11 +4,11 @@ pub const panic = common.panic; | ... | @@ -4,11 +4,11 @@ pub const panic = common.panic; |
| 4 | 4 | ||
| 5 | comptime { | 5 | comptime { |
| 6 | if (common.want_ppc_abi) { | 6 | if (common.want_ppc_abi) { |
| 7 | @export(__subtf3, .{ .name = "__subkf3", .linkage = common.linkage }); | 7 | @export(__subtf3, .{ .name = "__subkf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } else if (common.want_sparc_abi) { | 8 | } else if (common.want_sparc_abi) { |
| 9 | @export(_Qp_sub, .{ .name = "_Qp_sub", .linkage = common.linkage }); | 9 | @export(_Qp_sub, .{ .name = "_Qp_sub", .linkage = common.linkage, .visibility = common.visibility }); |
| 10 | } | 10 | } |
| 11 | @export(__subtf3, .{ .name = "__subtf3", .linkage = common.linkage }); | 11 | @export(__subtf3, .{ .name = "__subtf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | pub fn __subtf3(a: f128, b: f128) callconv(.C) f128 { | 14 | pub fn __subtf3(a: f128, b: f128) callconv(.C) f128 { |
lib/compiler_rt/subxf3.zig+1-1| ... | @@ -4,7 +4,7 @@ const common = @import("./common.zig"); | ... | @@ -4,7 +4,7 @@ const common = @import("./common.zig"); |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__subxf3, .{ .name = "__subxf3", .linkage = common.linkage }); | 7 | @export(__subxf3, .{ .name = "__subxf3", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __subxf3(a: f80, b: f80) callconv(.C) f80 { | 10 | fn __subxf3(a: f80, b: f80) callconv(.C) f80 { |
lib/compiler_rt/tan.zig+7-7| ... | @@ -20,15 +20,15 @@ const common = @import("common.zig"); | ... | @@ -20,15 +20,15 @@ const common = @import("common.zig"); |
| 20 | pub const panic = common.panic; | 20 | pub const panic = common.panic; |
| 21 | 21 | ||
| 22 | comptime { | 22 | comptime { |
| 23 | @export(__tanh, .{ .name = "__tanh", .linkage = common.linkage }); | 23 | @export(__tanh, .{ .name = "__tanh", .linkage = common.linkage, .visibility = common.visibility }); |
| 24 | @export(tanf, .{ .name = "tanf", .linkage = common.linkage }); | 24 | @export(tanf, .{ .name = "tanf", .linkage = common.linkage, .visibility = common.visibility }); |
| 25 | @export(tan, .{ .name = "tan", .linkage = common.linkage }); | 25 | @export(tan, .{ .name = "tan", .linkage = common.linkage, .visibility = common.visibility }); |
| 26 | @export(__tanx, .{ .name = "__tanx", .linkage = common.linkage }); | 26 | @export(__tanx, .{ .name = "__tanx", .linkage = common.linkage, .visibility = common.visibility }); |
| 27 | if (common.want_ppc_abi) { | 27 | if (common.want_ppc_abi) { |
| 28 | @export(tanq, .{ .name = "tanf128", .linkage = common.linkage }); | 28 | @export(tanq, .{ .name = "tanf128", .linkage = common.linkage, .visibility = common.visibility }); |
| 29 | } | 29 | } |
| 30 | @export(tanq, .{ .name = "tanq", .linkage = common.linkage }); | 30 | @export(tanq, .{ .name = "tanq", .linkage = common.linkage, .visibility = common.visibility }); |
| 31 | @export(tanl, .{ .name = "tanl", .linkage = common.linkage }); | 31 | @export(tanl, .{ .name = "tanl", .linkage = common.linkage, .visibility = common.visibility }); |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | pub fn __tanh(x: f16) callconv(.C) f16 { | 34 | pub fn __tanh(x: f16) callconv(.C) f16 { |
lib/compiler_rt/trunc.zig+7-7| ... | @@ -14,15 +14,15 @@ const common = @import("common.zig"); | ... | @@ -14,15 +14,15 @@ const common = @import("common.zig"); |
| 14 | pub const panic = common.panic; | 14 | pub const panic = common.panic; |
| 15 | 15 | ||
| 16 | comptime { | 16 | comptime { |
| 17 | @export(__trunch, .{ .name = "__trunch", .linkage = common.linkage }); | 17 | @export(__trunch, .{ .name = "__trunch", .linkage = common.linkage, .visibility = common.visibility }); |
| 18 | @export(truncf, .{ .name = "truncf", .linkage = common.linkage }); | 18 | @export(truncf, .{ .name = "truncf", .linkage = common.linkage, .visibility = common.visibility }); |
| 19 | @export(trunc, .{ .name = "trunc", .linkage = common.linkage }); | 19 | @export(trunc, .{ .name = "trunc", .linkage = common.linkage, .visibility = common.visibility }); |
| 20 | @export(__truncx, .{ .name = "__truncx", .linkage = common.linkage }); | 20 | @export(__truncx, .{ .name = "__truncx", .linkage = common.linkage, .visibility = common.visibility }); |
| 21 | if (common.want_ppc_abi) { | 21 | if (common.want_ppc_abi) { |
| 22 | @export(truncq, .{ .name = "truncf128", .linkage = common.linkage }); | 22 | @export(truncq, .{ .name = "truncf128", .linkage = common.linkage, .visibility = common.visibility }); |
| 23 | } | 23 | } |
| 24 | @export(truncq, .{ .name = "truncq", .linkage = common.linkage }); | 24 | @export(truncq, .{ .name = "truncq", .linkage = common.linkage, .visibility = common.visibility }); |
| 25 | @export(truncl, .{ .name = "truncl", .linkage = common.linkage }); | 25 | @export(truncl, .{ .name = "truncl", .linkage = common.linkage, .visibility = common.visibility }); |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | pub fn __trunch(x: f16) callconv(.C) f16 { | 28 | pub fn __trunch(x: f16) callconv(.C) f16 { |
lib/compiler_rt/truncdfhf2.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_d2h, .{ .name = "__aeabi_d2h", .linkage = common.linkage }); | 8 | @export(__aeabi_d2h, .{ .name = "__aeabi_d2h", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__truncdfhf2, .{ .name = "__truncdfhf2", .linkage = common.linkage }); | 10 | @export(__truncdfhf2, .{ .name = "__truncdfhf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/truncdfsf2.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_d2f, .{ .name = "__aeabi_d2f", .linkage = common.linkage }); | 8 | @export(__aeabi_d2f, .{ .name = "__aeabi_d2f", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__truncdfsf2, .{ .name = "__truncdfsf2", .linkage = common.linkage }); | 10 | @export(__truncdfsf2, .{ .name = "__truncdfsf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/truncsfhf2.zig+3-3| ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; | ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.gnu_f16_abi) { | 7 | if (common.gnu_f16_abi) { |
| 8 | @export(__gnu_f2h_ieee, .{ .name = "__gnu_f2h_ieee", .linkage = common.linkage }); | 8 | @export(__gnu_f2h_ieee, .{ .name = "__gnu_f2h_ieee", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else if (common.want_aeabi) { | 9 | } else if (common.want_aeabi) { |
| 10 | @export(__aeabi_f2h, .{ .name = "__aeabi_f2h", .linkage = common.linkage }); | 10 | @export(__aeabi_f2h, .{ .name = "__aeabi_f2h", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | @export(__truncsfhf2, .{ .name = "__truncsfhf2", .linkage = common.linkage }); | 12 | @export(__truncsfhf2, .{ .name = "__truncsfhf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | pub fn __truncsfhf2(a: f32) callconv(.C) common.F16T { | 15 | pub fn __truncsfhf2(a: f32) callconv(.C) common.F16T { |
lib/compiler_rt/trunctfdf2.zig+3-3| ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; | ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_ppc_abi) { | 7 | if (common.want_ppc_abi) { |
| 8 | @export(__trunctfdf2, .{ .name = "__trunckfdf2", .linkage = common.linkage }); | 8 | @export(__trunctfdf2, .{ .name = "__trunckfdf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else if (common.want_sparc_abi) { | 9 | } else if (common.want_sparc_abi) { |
| 10 | @export(_Qp_qtod, .{ .name = "_Qp_qtod", .linkage = common.linkage }); | 10 | @export(_Qp_qtod, .{ .name = "_Qp_qtod", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | @export(__trunctfdf2, .{ .name = "__trunctfdf2", .linkage = common.linkage }); | 12 | @export(__trunctfdf2, .{ .name = "__trunctfdf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | pub fn __trunctfdf2(a: f128) callconv(.C) f64 { | 15 | pub fn __trunctfdf2(a: f128) callconv(.C) f64 { |
lib/compiler_rt/trunctfhf2.zig+1-1| ... | @@ -4,7 +4,7 @@ const truncf = @import("./truncf.zig").truncf; | ... | @@ -4,7 +4,7 @@ const truncf = @import("./truncf.zig").truncf; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__trunctfhf2, .{ .name = "__trunctfhf2", .linkage = common.linkage }); | 7 | @export(__trunctfhf2, .{ .name = "__trunctfhf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | pub fn __trunctfhf2(a: f128) callconv(.C) common.F16T { | 10 | pub fn __trunctfhf2(a: f128) callconv(.C) common.F16T { |
lib/compiler_rt/trunctfsf2.zig+3-3| ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; | ... | @@ -5,11 +5,11 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_ppc_abi) { | 7 | if (common.want_ppc_abi) { |
| 8 | @export(__trunctfsf2, .{ .name = "__trunckfsf2", .linkage = common.linkage }); | 8 | @export(__trunctfsf2, .{ .name = "__trunckfsf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else if (common.want_sparc_abi) { | 9 | } else if (common.want_sparc_abi) { |
| 10 | @export(_Qp_qtos, .{ .name = "_Qp_qtos", .linkage = common.linkage }); | 10 | @export(_Qp_qtos, .{ .name = "_Qp_qtos", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | @export(__trunctfsf2, .{ .name = "__trunctfsf2", .linkage = common.linkage }); | 12 | @export(__trunctfsf2, .{ .name = "__trunctfsf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | pub fn __trunctfsf2(a: f128) callconv(.C) f32 { | 15 | pub fn __trunctfsf2(a: f128) callconv(.C) f32 { |
lib/compiler_rt/trunctfxf2.zig+1-1| ... | @@ -5,7 +5,7 @@ const trunc_f80 = @import("./truncf.zig").trunc_f80; | ... | @@ -5,7 +5,7 @@ const trunc_f80 = @import("./truncf.zig").trunc_f80; |
| 5 | pub const panic = common.panic; | 5 | pub const panic = common.panic; |
| 6 | 6 | ||
| 7 | comptime { | 7 | comptime { |
| 8 | @export(__trunctfxf2, .{ .name = "__trunctfxf2", .linkage = common.linkage }); | 8 | @export(__trunctfxf2, .{ .name = "__trunctfxf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | pub fn __trunctfxf2(a: f128) callconv(.C) f80 { | 11 | pub fn __trunctfxf2(a: f128) callconv(.C) f80 { |
lib/compiler_rt/truncxfdf2.zig+1-1| ... | @@ -4,7 +4,7 @@ const trunc_f80 = @import("./truncf.zig").trunc_f80; | ... | @@ -4,7 +4,7 @@ const trunc_f80 = @import("./truncf.zig").trunc_f80; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__truncxfdf2, .{ .name = "__truncxfdf2", .linkage = common.linkage }); | 7 | @export(__truncxfdf2, .{ .name = "__truncxfdf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __truncxfdf2(a: f80) callconv(.C) f64 { | 10 | fn __truncxfdf2(a: f80) callconv(.C) f64 { |
lib/compiler_rt/truncxfhf2.zig+1-1| ... | @@ -4,7 +4,7 @@ const trunc_f80 = @import("./truncf.zig").trunc_f80; | ... | @@ -4,7 +4,7 @@ const trunc_f80 = @import("./truncf.zig").trunc_f80; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__truncxfhf2, .{ .name = "__truncxfhf2", .linkage = common.linkage }); | 7 | @export(__truncxfhf2, .{ .name = "__truncxfhf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __truncxfhf2(a: f80) callconv(.C) common.F16T { | 10 | fn __truncxfhf2(a: f80) callconv(.C) common.F16T { |
lib/compiler_rt/truncxfsf2.zig+1-1| ... | @@ -4,7 +4,7 @@ const trunc_f80 = @import("./truncf.zig").trunc_f80; | ... | @@ -4,7 +4,7 @@ const trunc_f80 = @import("./truncf.zig").trunc_f80; |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__truncxfsf2, .{ .name = "__truncxfsf2", .linkage = common.linkage }); | 7 | @export(__truncxfsf2, .{ .name = "__truncxfsf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | fn __truncxfsf2(a: f80) callconv(.C) f32 { | 10 | fn __truncxfsf2(a: f80) callconv(.C) f32 { |
lib/compiler_rt/udivmodei4.zig+2-2| ... | @@ -7,8 +7,8 @@ const shl = std.math.shl; | ... | @@ -7,8 +7,8 @@ const shl = std.math.shl; |
| 7 | const max_limbs = std.math.divCeil(usize, 65535, 32) catch unreachable; // max supported type is u65535 | 7 | const max_limbs = std.math.divCeil(usize, 65535, 32) catch unreachable; // max supported type is u65535 |
| 8 | 8 | ||
| 9 | comptime { | 9 | comptime { |
| 10 | @export(__udivei4, .{ .name = "__udivei4", .linkage = common.linkage }); | 10 | @export(__udivei4, .{ .name = "__udivei4", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | @export(__umodei4, .{ .name = "__umodei4", .linkage = common.linkage }); | 11 | @export(__umodei4, .{ .name = "__umodei4", .linkage = common.linkage, .visibility = common.visibility }); |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | const endian = builtin.cpu.arch.endian(); | 14 | const endian = builtin.cpu.arch.endian(); |
lib/compiler_rt/udivmodti4.zig+2-2| ... | @@ -7,9 +7,9 @@ pub const panic = common.panic; | ... | @@ -7,9 +7,9 @@ pub const panic = common.panic; |
| 7 | 7 | ||
| 8 | comptime { | 8 | comptime { |
| 9 | if (common.want_windows_v2u64_abi) { | 9 | if (common.want_windows_v2u64_abi) { |
| 10 | @export(__udivmodti4_windows_x86_64, .{ .name = "__udivmodti4", .linkage = common.linkage }); | 10 | @export(__udivmodti4_windows_x86_64, .{ .name = "__udivmodti4", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } else { | 11 | } else { |
| 12 | @export(__udivmodti4, .{ .name = "__udivmodti4", .linkage = common.linkage }); | 12 | @export(__udivmodti4, .{ .name = "__udivmodti4", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | } | 14 | } |
| 15 | 15 |
lib/compiler_rt/udivti3.zig+2-2| ... | @@ -7,9 +7,9 @@ pub const panic = common.panic; | ... | @@ -7,9 +7,9 @@ pub const panic = common.panic; |
| 7 | 7 | ||
| 8 | comptime { | 8 | comptime { |
| 9 | if (common.want_windows_v2u64_abi) { | 9 | if (common.want_windows_v2u64_abi) { |
| 10 | @export(__udivti3_windows_x86_64, .{ .name = "__udivti3", .linkage = common.linkage }); | 10 | @export(__udivti3_windows_x86_64, .{ .name = "__udivti3", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } else { | 11 | } else { |
| 12 | @export(__udivti3, .{ .name = "__udivti3", .linkage = common.linkage }); | 12 | @export(__udivti3, .{ .name = "__udivti3", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | } | 14 | } |
| 15 | 15 |
lib/compiler_rt/umodti3.zig+2-2| ... | @@ -7,9 +7,9 @@ pub const panic = common.panic; | ... | @@ -7,9 +7,9 @@ pub const panic = common.panic; |
| 7 | 7 | ||
| 8 | comptime { | 8 | comptime { |
| 9 | if (common.want_windows_v2u64_abi) { | 9 | if (common.want_windows_v2u64_abi) { |
| 10 | @export(__umodti3_windows_x86_64, .{ .name = "__umodti3", .linkage = common.linkage }); | 10 | @export(__umodti3_windows_x86_64, .{ .name = "__umodti3", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } else { | 11 | } else { |
| 12 | @export(__umodti3, .{ .name = "__umodti3", .linkage = common.linkage }); | 12 | @export(__umodti3, .{ .name = "__umodti3", .linkage = common.linkage, .visibility = common.visibility }); |
| 13 | } | 13 | } |
| 14 | } | 14 | } |
| 15 | 15 |
lib/compiler_rt/unorddf2.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_dcmpun, .{ .name = "__aeabi_dcmpun", .linkage = common.linkage }); | 8 | @export(__aeabi_dcmpun, .{ .name = "__aeabi_dcmpun", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__unorddf2, .{ .name = "__unorddf2", .linkage = common.linkage }); | 10 | @export(__unorddf2, .{ .name = "__unorddf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/unordhf2.zig+1-1| ... | @@ -4,7 +4,7 @@ const comparef = @import("./comparef.zig"); | ... | @@ -4,7 +4,7 @@ const comparef = @import("./comparef.zig"); |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__unordhf2, .{ .name = "__unordhf2", .linkage = common.linkage }); | 7 | @export(__unordhf2, .{ .name = "__unordhf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | pub fn __unordhf2(a: f16, b: f16) callconv(.C) i32 { | 10 | pub fn __unordhf2(a: f16, b: f16) callconv(.C) i32 { |
lib/compiler_rt/unordsf2.zig+2-2| ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; | ... | @@ -5,9 +5,9 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_aeabi) { | 7 | if (common.want_aeabi) { |
| 8 | @export(__aeabi_fcmpun, .{ .name = "__aeabi_fcmpun", .linkage = common.linkage }); | 8 | @export(__aeabi_fcmpun, .{ .name = "__aeabi_fcmpun", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else { | 9 | } else { |
| 10 | @export(__unordsf2, .{ .name = "__unordsf2", .linkage = common.linkage }); | 10 | @export(__unordsf2, .{ .name = "__unordsf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 11 | } | 11 | } |
| 12 | } | 12 | } |
| 13 | 13 |
lib/compiler_rt/unordtf2.zig+2-2| ... | @@ -5,12 +5,12 @@ pub const panic = common.panic; | ... | @@ -5,12 +5,12 @@ pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | if (common.want_ppc_abi) { | 7 | if (common.want_ppc_abi) { |
| 8 | @export(__unordtf2, .{ .name = "__unordkf2", .linkage = common.linkage }); | 8 | @export(__unordtf2, .{ .name = "__unordkf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 9 | } else if (common.want_sparc_abi) { | 9 | } else if (common.want_sparc_abi) { |
| 10 | // These exports are handled in cmptf2.zig because unordered comparisons | 10 | // These exports are handled in cmptf2.zig because unordered comparisons |
| 11 | // are based on calling _Qp_cmp. | 11 | // are based on calling _Qp_cmp. |
| 12 | } | 12 | } |
| 13 | @export(__unordtf2, .{ .name = "__unordtf2", .linkage = common.linkage }); | 13 | @export(__unordtf2, .{ .name = "__unordtf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 14 | } | 14 | } |
| 15 | 15 | ||
| 16 | fn __unordtf2(a: f128, b: f128) callconv(.C) i32 { | 16 | fn __unordtf2(a: f128, b: f128) callconv(.C) i32 { |
lib/compiler_rt/unordxf2.zig+1-1| ... | @@ -4,7 +4,7 @@ const comparef = @import("./comparef.zig"); | ... | @@ -4,7 +4,7 @@ const comparef = @import("./comparef.zig"); |
| 4 | pub const panic = common.panic; | 4 | pub const panic = common.panic; |
| 5 | 5 | ||
| 6 | comptime { | 6 | comptime { |
| 7 | @export(__unordxf2, .{ .name = "__unordxf2", .linkage = common.linkage }); | 7 | @export(__unordxf2, .{ .name = "__unordxf2", .linkage = common.linkage, .visibility = common.visibility }); |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | pub fn __unordxf2(a: f80, b: f80) callconv(.C) i32 { | 10 | pub fn __unordxf2(a: f80, b: f80) callconv(.C) i32 { |
lib/std/build/LibExeObjStep.zig+6-2| ... | @@ -74,6 +74,9 @@ disable_sanitize_c: bool, | ... | @@ -74,6 +74,9 @@ disable_sanitize_c: bool, |
| 74 | sanitize_thread: bool, | 74 | sanitize_thread: bool, |
| 75 | rdynamic: bool, | 75 | rdynamic: bool, |
| 76 | import_memory: bool = false, | 76 | import_memory: bool = false, |
| 77 | /// For WebAssembly targets, this will allow for undefined symbols to | ||
| 78 | /// be imported from the host environment. | ||
| 79 | import_symbols: bool = false, | ||
| 77 | import_table: bool = false, | 80 | import_table: bool = false, |
| 78 | export_table: bool = false, | 81 | export_table: bool = false, |
| 79 | initial_memory: ?u64 = null, | 82 | initial_memory: ?u64 = null, |
| ... | @@ -1458,6 +1461,9 @@ fn make(step: *Step) !void { | ... | @@ -1458,6 +1461,9 @@ fn make(step: *Step) !void { |
| 1458 | if (self.import_memory) { | 1461 | if (self.import_memory) { |
| 1459 | try zig_args.append("--import-memory"); | 1462 | try zig_args.append("--import-memory"); |
| 1460 | } | 1463 | } |
| 1464 | if (self.import_symbols) { | ||
| 1465 | try zig_args.append("--import-symbols"); | ||
| 1466 | } | ||
| 1461 | if (self.import_table) { | 1467 | if (self.import_table) { |
| 1462 | try zig_args.append("--import-table"); | 1468 | try zig_args.append("--import-table"); |
| 1463 | } | 1469 | } |
| ... | @@ -1609,8 +1615,6 @@ fn make(step: *Step) !void { | ... | @@ -1609,8 +1615,6 @@ fn make(step: *Step) !void { |
| 1609 | try zig_args.append(bin_name); | 1615 | try zig_args.append(bin_name); |
| 1610 | try zig_args.append("--test-cmd"); | 1616 | try zig_args.append("--test-cmd"); |
| 1611 | try zig_args.append("--dir=."); | 1617 | try zig_args.append("--dir=."); |
| 1612 | try zig_args.append("--test-cmd"); | ||
| 1613 | try zig_args.append("--allow-unknown-exports"); // TODO: Remove when stage2 is default compiler | ||
| 1614 | try zig_args.append("--test-cmd-bin"); | 1618 | try zig_args.append("--test-cmd-bin"); |
| 1615 | } else { | 1619 | } else { |
| 1616 | try zig_args.append("--test-no-exec"); | 1620 | try zig_args.append("--test-no-exec"); |
src/Compilation.zig+2-9| ... | @@ -181,10 +181,6 @@ emit_docs: ?EmitLoc, | ... | @@ -181,10 +181,6 @@ emit_docs: ?EmitLoc, |
| 181 | work_queue_wait_group: WaitGroup = .{}, | 181 | work_queue_wait_group: WaitGroup = .{}, |
| 182 | astgen_wait_group: WaitGroup = .{}, | 182 | astgen_wait_group: WaitGroup = .{}, |
| 183 | 183 | ||
| 184 | /// Exported symbol names. This is only for when the target is wasm. | ||
| 185 | /// TODO: Remove this when Stage2 becomes the default compiler as it will already have this information. | ||
| 186 | export_symbol_names: std.ArrayListUnmanaged([]const u8) = .{}, | ||
| 187 | |||
| 188 | pub const default_stack_protector_buffer_size = 4; | 184 | pub const default_stack_protector_buffer_size = 4; |
| 189 | pub const SemaError = Module.SemaError; | 185 | pub const SemaError = Module.SemaError; |
| 190 | 186 | ||
| ... | @@ -954,6 +950,7 @@ pub const InitOptions = struct { | ... | @@ -954,6 +950,7 @@ pub const InitOptions = struct { |
| 954 | linker_allow_shlib_undefined: ?bool = null, | 950 | linker_allow_shlib_undefined: ?bool = null, |
| 955 | linker_bind_global_refs_locally: ?bool = null, | 951 | linker_bind_global_refs_locally: ?bool = null, |
| 956 | linker_import_memory: ?bool = null, | 952 | linker_import_memory: ?bool = null, |
| 953 | linker_import_symbols: bool = false, | ||
| 957 | linker_import_table: bool = false, | 954 | linker_import_table: bool = false, |
| 958 | linker_export_table: bool = false, | 955 | linker_export_table: bool = false, |
| 959 | linker_initial_memory: ?u64 = null, | 956 | linker_initial_memory: ?u64 = null, |
| ... | @@ -1811,6 +1808,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { | ... | @@ -1811,6 +1808,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { |
| 1811 | .bind_global_refs_locally = options.linker_bind_global_refs_locally orelse false, | 1808 | .bind_global_refs_locally = options.linker_bind_global_refs_locally orelse false, |
| 1812 | .compress_debug_sections = options.linker_compress_debug_sections orelse .none, | 1809 | .compress_debug_sections = options.linker_compress_debug_sections orelse .none, |
| 1813 | .import_memory = options.linker_import_memory orelse false, | 1810 | .import_memory = options.linker_import_memory orelse false, |
| 1811 | .import_symbols = options.linker_import_symbols, | ||
| 1814 | .import_table = options.linker_import_table, | 1812 | .import_table = options.linker_import_table, |
| 1815 | .export_table = options.linker_export_table, | 1813 | .export_table = options.linker_export_table, |
| 1816 | .initial_memory = options.linker_initial_memory, | 1814 | .initial_memory = options.linker_initial_memory, |
| ... | @@ -2166,11 +2164,6 @@ pub fn destroy(self: *Compilation) void { | ... | @@ -2166,11 +2164,6 @@ pub fn destroy(self: *Compilation) void { |
| 2166 | self.cache_parent.manifest_dir.close(); | 2164 | self.cache_parent.manifest_dir.close(); |
| 2167 | if (self.owned_link_dir) |*dir| dir.close(); | 2165 | if (self.owned_link_dir) |*dir| dir.close(); |
| 2168 | 2166 | ||
| 2169 | for (self.export_symbol_names.items) |symbol_name| { | ||
| 2170 | gpa.free(symbol_name); | ||
| 2171 | } | ||
| 2172 | self.export_symbol_names.deinit(gpa); | ||
| 2173 | |||
| 2174 | // This destroys `self`. | 2167 | // This destroys `self`. |
| 2175 | self.arena_state.promote(gpa).deinit(); | 2168 | self.arena_state.promote(gpa).deinit(); |
| 2176 | } | 2169 | } |
src/link.zig+1| ... | @@ -128,6 +128,7 @@ pub const Options = struct { | ... | @@ -128,6 +128,7 @@ pub const Options = struct { |
| 128 | compress_debug_sections: CompressDebugSections, | 128 | compress_debug_sections: CompressDebugSections, |
| 129 | bind_global_refs_locally: bool, | 129 | bind_global_refs_locally: bool, |
| 130 | import_memory: bool, | 130 | import_memory: bool, |
| 131 | import_symbols: bool, | ||
| 131 | import_table: bool, | 132 | import_table: bool, |
| 132 | export_table: bool, | 133 | export_table: bool, |
| 133 | initial_memory: ?u64, | 134 | initial_memory: ?u64, |
src/link/Wasm.zig+9-26| ... | @@ -3406,39 +3406,14 @@ fn linkWithLLD(wasm: *Wasm, comp: *Compilation, prog_node: *std.Progress.Node) ! | ... | @@ -3406,39 +3406,14 @@ fn linkWithLLD(wasm: *Wasm, comp: *Compilation, prog_node: *std.Progress.Node) ! |
| 3406 | try argv.append("--stack-first"); | 3406 | try argv.append("--stack-first"); |
| 3407 | } | 3407 | } |
| 3408 | 3408 | ||
| 3409 | var auto_export_symbols = true; | ||
| 3410 | // Users are allowed to specify which symbols they want to export to the wasm host. | 3409 | // Users are allowed to specify which symbols they want to export to the wasm host. |
| 3411 | for (wasm.base.options.export_symbol_names) |symbol_name| { | 3410 | for (wasm.base.options.export_symbol_names) |symbol_name| { |
| 3412 | const arg = try std.fmt.allocPrint(arena, "--export={s}", .{symbol_name}); | 3411 | const arg = try std.fmt.allocPrint(arena, "--export={s}", .{symbol_name}); |
| 3413 | try argv.append(arg); | 3412 | try argv.append(arg); |
| 3414 | auto_export_symbols = false; | ||
| 3415 | } | 3413 | } |
| 3416 | 3414 | ||
| 3417 | if (wasm.base.options.rdynamic) { | 3415 | if (wasm.base.options.rdynamic) { |
| 3418 | try argv.append("--export-dynamic"); | 3416 | try argv.append("--export-dynamic"); |
| 3419 | auto_export_symbols = false; | ||
| 3420 | } | ||
| 3421 | |||
| 3422 | if (auto_export_symbols) { | ||
| 3423 | if (wasm.base.options.module) |mod| { | ||
| 3424 | // when we use stage1, we use the exports that stage1 provided us. | ||
| 3425 | // For stage2, we can directly retrieve them from the module. | ||
| 3426 | const skip_export_non_fn = target.os.tag == .wasi and | ||
| 3427 | wasm.base.options.wasi_exec_model == .command; | ||
| 3428 | for (mod.decl_exports.values()) |exports| { | ||
| 3429 | for (exports.items) |exprt| { | ||
| 3430 | const exported_decl = mod.declPtr(exprt.exported_decl); | ||
| 3431 | if (skip_export_non_fn and exported_decl.ty.zigTypeTag() != .Fn) { | ||
| 3432 | // skip exporting symbols when we're building a WASI command | ||
| 3433 | // and the symbol is not a function | ||
| 3434 | continue; | ||
| 3435 | } | ||
| 3436 | const symbol_name = exported_decl.name; | ||
| 3437 | const arg = try std.fmt.allocPrint(arena, "--export={s}", .{symbol_name}); | ||
| 3438 | try argv.append(arg); | ||
| 3439 | } | ||
| 3440 | } | ||
| 3441 | } | ||
| 3442 | } | 3417 | } |
| 3443 | 3418 | ||
| 3444 | if (wasm.base.options.entry) |entry| { | 3419 | if (wasm.base.options.entry) |entry| { |
| ... | @@ -3457,12 +3432,20 @@ fn linkWithLLD(wasm: *Wasm, comp: *Compilation, prog_node: *std.Progress.Node) ! | ... | @@ -3457,12 +3432,20 @@ fn linkWithLLD(wasm: *Wasm, comp: *Compilation, prog_node: *std.Progress.Node) ! |
| 3457 | if (wasm.base.options.wasi_exec_model == .reactor) { | 3432 | if (wasm.base.options.wasi_exec_model == .reactor) { |
| 3458 | // Reactor execution model does not have _start so lld doesn't look for it. | 3433 | // Reactor execution model does not have _start so lld doesn't look for it. |
| 3459 | try argv.append("--no-entry"); | 3434 | try argv.append("--no-entry"); |
| 3435 | // Make sure "_initialize" and other used-defined functions are exported if this is WASI reactor. | ||
| 3436 | // If rdynamic is true, it will already be appended, so only verify if the user did not specify | ||
| 3437 | // the flag in which case, we ensure `--export-dynamic` is called. | ||
| 3438 | if (!wasm.base.options.rdynamic) { | ||
| 3439 | try argv.append("--export-dynamic"); | ||
| 3440 | } | ||
| 3460 | } | 3441 | } |
| 3461 | } else if (wasm.base.options.entry == null) { | 3442 | } else if (wasm.base.options.entry == null) { |
| 3462 | try argv.append("--no-entry"); // So lld doesn't look for _start. | 3443 | try argv.append("--no-entry"); // So lld doesn't look for _start. |
| 3463 | } | 3444 | } |
| 3445 | if (wasm.base.options.import_symbols) { | ||
| 3446 | try argv.append("--allow-undefined"); | ||
| 3447 | } | ||
| 3464 | try argv.appendSlice(&[_][]const u8{ | 3448 | try argv.appendSlice(&[_][]const u8{ |
| 3465 | "--allow-undefined", | ||
| 3466 | "-o", | 3449 | "-o", |
| 3467 | full_out_path, | 3450 | full_out_path, |
| 3468 | }); | 3451 | }); |
src/main.zig+7| ... | @@ -517,6 +517,7 @@ const usage_build_generic = | ... | @@ -517,6 +517,7 @@ const usage_build_generic = |
| 517 | \\ -dead_strip (Darwin) remove functions and data that are unreachable by the entry point or exported symbols | 517 | \\ -dead_strip (Darwin) remove functions and data that are unreachable by the entry point or exported symbols |
| 518 | \\ -dead_strip_dylibs (Darwin) remove dylibs that are unreachable by the entry point or exported symbols | 518 | \\ -dead_strip_dylibs (Darwin) remove dylibs that are unreachable by the entry point or exported symbols |
| 519 | \\ --import-memory (WebAssembly) import memory from the environment | 519 | \\ --import-memory (WebAssembly) import memory from the environment |
| 520 | \\ --import-symbols (WebAssembly) import missing symbols from the host environment | ||
| 520 | \\ --import-table (WebAssembly) import function table from the host environment | 521 | \\ --import-table (WebAssembly) import function table from the host environment |
| 521 | \\ --export-table (WebAssembly) export function table to the host environment | 522 | \\ --export-table (WebAssembly) export function table to the host environment |
| 522 | \\ --initial-memory=[bytes] (WebAssembly) initial size of the linear memory | 523 | \\ --initial-memory=[bytes] (WebAssembly) initial size of the linear memory |
| ... | @@ -718,6 +719,7 @@ fn buildOutputType( | ... | @@ -718,6 +719,7 @@ fn buildOutputType( |
| 718 | var linker_allow_shlib_undefined: ?bool = null; | 719 | var linker_allow_shlib_undefined: ?bool = null; |
| 719 | var linker_bind_global_refs_locally: ?bool = null; | 720 | var linker_bind_global_refs_locally: ?bool = null; |
| 720 | var linker_import_memory: ?bool = null; | 721 | var linker_import_memory: ?bool = null; |
| 722 | var linker_import_symbols: bool = false; | ||
| 721 | var linker_import_table: bool = false; | 723 | var linker_import_table: bool = false; |
| 722 | var linker_export_table: bool = false; | 724 | var linker_export_table: bool = false; |
| 723 | var linker_initial_memory: ?u64 = null; | 725 | var linker_initial_memory: ?u64 = null; |
| ... | @@ -1316,6 +1318,8 @@ fn buildOutputType( | ... | @@ -1316,6 +1318,8 @@ fn buildOutputType( |
| 1316 | } | 1318 | } |
| 1317 | } else if (mem.eql(u8, arg, "--import-memory")) { | 1319 | } else if (mem.eql(u8, arg, "--import-memory")) { |
| 1318 | linker_import_memory = true; | 1320 | linker_import_memory = true; |
| 1321 | } else if (mem.eql(u8, arg, "--import-symbols")) { | ||
| 1322 | linker_import_symbols = true; | ||
| 1319 | } else if (mem.eql(u8, arg, "--import-table")) { | 1323 | } else if (mem.eql(u8, arg, "--import-table")) { |
| 1320 | linker_import_table = true; | 1324 | linker_import_table = true; |
| 1321 | } else if (mem.eql(u8, arg, "--export-table")) { | 1325 | } else if (mem.eql(u8, arg, "--export-table")) { |
| ... | @@ -1839,6 +1843,8 @@ fn buildOutputType( | ... | @@ -1839,6 +1843,8 @@ fn buildOutputType( |
| 1839 | linker_bind_global_refs_locally = true; | 1843 | linker_bind_global_refs_locally = true; |
| 1840 | } else if (mem.eql(u8, arg, "--import-memory")) { | 1844 | } else if (mem.eql(u8, arg, "--import-memory")) { |
| 1841 | linker_import_memory = true; | 1845 | linker_import_memory = true; |
| 1846 | } else if (mem.eql(u8, arg, "--import-symbols")) { | ||
| 1847 | linker_import_symbols = true; | ||
| 1842 | } else if (mem.eql(u8, arg, "--import-table")) { | 1848 | } else if (mem.eql(u8, arg, "--import-table")) { |
| 1843 | linker_import_table = true; | 1849 | linker_import_table = true; |
| 1844 | } else if (mem.eql(u8, arg, "--export-table")) { | 1850 | } else if (mem.eql(u8, arg, "--export-table")) { |
| ... | @@ -2981,6 +2987,7 @@ fn buildOutputType( | ... | @@ -2981,6 +2987,7 @@ fn buildOutputType( |
| 2981 | .linker_allow_shlib_undefined = linker_allow_shlib_undefined, | 2987 | .linker_allow_shlib_undefined = linker_allow_shlib_undefined, |
| 2982 | .linker_bind_global_refs_locally = linker_bind_global_refs_locally, | 2988 | .linker_bind_global_refs_locally = linker_bind_global_refs_locally, |
| 2983 | .linker_import_memory = linker_import_memory, | 2989 | .linker_import_memory = linker_import_memory, |
| 2990 | .linker_import_symbols = linker_import_symbols, | ||
| 2984 | .linker_import_table = linker_import_table, | 2991 | .linker_import_table = linker_import_table, |
| 2985 | .linker_export_table = linker_export_table, | 2992 | .linker_export_table = linker_export_table, |
| 2986 | .linker_initial_memory = linker_initial_memory, | 2993 | .linker_initial_memory = linker_initial_memory, |
test/link/wasm/extern-mangle/build.zig+2| ... | @@ -10,6 +10,8 @@ pub fn build(b: *Builder) void { | ... | @@ -10,6 +10,8 @@ pub fn build(b: *Builder) void { |
| 10 | const lib = b.addSharedLibrary("lib", "lib.zig", .unversioned); | 10 | const lib = b.addSharedLibrary("lib", "lib.zig", .unversioned); |
| 11 | lib.setBuildMode(mode); | 11 | lib.setBuildMode(mode); |
| 12 | lib.setTarget(.{ .cpu_arch = .wasm32, .os_tag = .freestanding }); | 12 | lib.setTarget(.{ .cpu_arch = .wasm32, .os_tag = .freestanding }); |
| 13 | lib.import_symbols = true; // import `a` and `b` | ||
| 14 | lib.rdynamic = true; // export `foo` | ||
| 13 | lib.install(); | 15 | lib.install(); |
| 14 | 16 | ||
| 15 | const check_lib = lib.checkObject(.wasm); | 17 | const check_lib = lib.checkObject(.wasm); |