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/trunctfdf2.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/trunctfdf2.zig')
| -rw-r--r-- | lib/compiler_rt/trunctfdf2.zig | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/compiler_rt/trunctfdf2.zig b/lib/compiler_rt/trunctfdf2.zig index e084d63d88..02be252856 100644 --- a/lib/compiler_rt/trunctfdf2.zig +++ b/lib/compiler_rt/trunctfdf2.zig @@ -5,22 +5,17 @@ pub const panic = common.panic; comptime { if (common.want_ppc_abi) { - @export(__trunckfdf2, .{ .name = "__trunckfdf2", .linkage = common.linkage }); + @export(__trunctfdf2, .{ .name = "__trunckfdf2", .linkage = common.linkage }); } else if (common.want_sparc_abi) { @export(_Qp_qtod, .{ .name = "_Qp_qtod", .linkage = common.linkage }); - } else { - @export(__trunctfdf2, .{ .name = "__trunctfdf2", .linkage = common.linkage }); } + @export(__trunctfdf2, .{ .name = "__trunctfdf2", .linkage = common.linkage }); } pub fn __trunctfdf2(a: f128) callconv(.C) f64 { return truncf(f64, f128, a); } -fn __trunckfdf2(a: f128) callconv(.C) f64 { - return truncf(f64, f128, a); -} - fn _Qp_qtod(a: *const f128) callconv(.C) f64 { return truncf(f64, f128, a.*); } |
