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/exp.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/exp.zig')
| -rw-r--r-- | lib/compiler_rt/exp.zig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/compiler_rt/exp.zig b/lib/compiler_rt/exp.zig index f34f226be4..7dfac7328c 100644 --- a/lib/compiler_rt/exp.zig +++ b/lib/compiler_rt/exp.zig @@ -18,8 +18,10 @@ comptime { @export(expf, .{ .name = "expf", .linkage = common.linkage }); @export(exp, .{ .name = "exp", .linkage = common.linkage }); @export(__expx, .{ .name = "__expx", .linkage = common.linkage }); - const expq_sym_name = if (common.want_ppc_abi) "expf128" else "expq"; - @export(expq, .{ .name = expq_sym_name, .linkage = common.linkage }); + if (common.want_ppc_abi) { + @export(expq, .{ .name = "expf128", .linkage = common.linkage }); + } + @export(expq, .{ .name = "expq", .linkage = common.linkage }); @export(expl, .{ .name = "expl", .linkage = common.linkage }); } |
