diff options
| author | Cody Tapscott <topolarity@tapscott.me> | 2022-10-22 13:31:09 -0700 |
|---|---|---|
| committer | Cody Tapscott <topolarity@tapscott.me> | 2022-10-22 17:19:33 -0700 |
| commit | c50f33b1118f2e81597bd9ef5976fcb3eb961dee (patch) | |
| tree | bddc809af52345f073502e9d8a7acf43ffd14d6c /lib/compiler_rt/multf3.zig | |
| parent | 94945864b9d8ffa7b707432fb877ae42e383db68 (diff) | |
| download | zig-c50f33b1118f2e81597bd9ef5976fcb3eb961dee.tar.gz zig-c50f33b1118f2e81597bd9ef5976fcb3eb961dee.zip | |
compiler_rt: Always export "standard" symbol names
The Zig LLVM backend emits calls to softfloat methods with the "standard
compiler-rt" names. Rather than add complexity to the backend and
have to synchronize the naming scheme across all targets, the simplest
fix is just to export these symbols under both the "standard" and the
platform-specific naming convention.
Diffstat (limited to 'lib/compiler_rt/multf3.zig')
| -rw-r--r-- | lib/compiler_rt/multf3.zig | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/compiler_rt/multf3.zig b/lib/compiler_rt/multf3.zig index d4449ab72e..878cd5c4ac 100644 --- a/lib/compiler_rt/multf3.zig +++ b/lib/compiler_rt/multf3.zig @@ -5,22 +5,17 @@ pub const panic = common.panic; comptime { if (common.want_ppc_abi) { - @export(__mulkf3, .{ .name = "__mulkf3", .linkage = common.linkage }); + @export(__multf3, .{ .name = "__mulkf3", .linkage = common.linkage }); } else if (common.want_sparc_abi) { @export(_Qp_mul, .{ .name = "_Qp_mul", .linkage = common.linkage }); - } else { - @export(__multf3, .{ .name = "__multf3", .linkage = common.linkage }); } + @export(__multf3, .{ .name = "__multf3", .linkage = common.linkage }); } pub fn __multf3(a: f128, b: f128) callconv(.C) f128 { return mulf3(f128, a, b); } -fn __mulkf3(a: f128, b: f128) callconv(.C) f128 { - return mulf3(f128, a, b); -} - fn _Qp_mul(c: *f128, a: *const f128, b: *const f128) callconv(.C) void { c.* = mulf3(f128, a.*, b.*); } |
