From 78eb3c561746a4dd86a67f927d244a3e8f46ad00 Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Tue, 27 Jun 2023 21:59:45 -0400 Subject: 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. --- src/codegen/c.zig | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/codegen/c.zig') 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_"); -- cgit v1.2.3