diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-06-27 21:59:45 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-07-04 15:47:07 -0700 |
| commit | 78eb3c561746a4dd86a67f927d244a3e8f46ad00 (patch) | |
| tree | 74030f8599dd7d134935a3cd610e0ebd74a34ff1 /src/codegen/c.zig | |
| parent | 8ae92fd17ee9a3d46e4f441864a8544b440c0b2d (diff) | |
| download | zig-78eb3c561746a4dd86a67f927d244a3e8f46ad00.tar.gz zig-78eb3c561746a4dd86a67f927d244a3e8f46ad00.zip | |
bootstrap: support aarch64 in 32-bit mode
* `CMakeLists.txt`: support the weird `uname -m` output.
* `CMakeLists.txt`: detect and use the C compiler's default arm mode.
* cbe: support gcc with both `f128` and `u128` emulated.
* std.os.linux.thumb: fix incorrectly passed asm inputs.
Diffstat (limited to 'src/codegen/c.zig')
| -rw-r--r-- | src/codegen/c.zig | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig index 06c81c4e34..34f3143f09 100644 --- a/src/codegen/c.zig +++ b/src/codegen/c.zig @@ -732,9 +732,7 @@ pub const DeclGen = struct { // All unsigned ints matching float types are pre-allocated. const repr_ty = mod.intType(.unsigned, bits) catch unreachable; - try writer.writeAll("zig_cast_"); - try dg.renderTypeForBuiltinFnName(writer, ty); - try writer.writeAll(" zig_make_"); + try writer.writeAll("zig_make_"); try dg.renderTypeForBuiltinFnName(writer, ty); try writer.writeByte('('); switch (bits) { @@ -1049,9 +1047,6 @@ pub const DeclGen = struct { const repr_val = try mod.intValue_big(repr_ty, repr_val_big.toConst()); - try writer.writeAll("zig_cast_"); - try dg.renderTypeForBuiltinFnName(writer, ty); - try writer.writeByte(' '); var empty = true; if (std.math.isFinite(f128_val)) { try writer.writeAll("zig_make_"); |
