authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-09 15:06:22-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-09 15:06:37-04:00
loga5714ddb973305b38703a69093af066514bdd8f8
tree9078ec88a2093d39400c1e9af2c914cccb11043e
parent2286003666e8216d809b30e164963a52cdb2d4f8
signaturelock-open Commit is signed but in an unrecognized format.

add comments about why we choose pentium4 for i386 target

See #3389

1 files changed, 5 insertions(+), 0 deletions(-)

src/codegen.cpp+5
......@@ -8728,6 +8728,11 @@ static void init(CodeGen *g) {
87288728 target_specific_cpu_args = "";
87298729 target_specific_features = riscv_default_features;
87308730 } else if (g->zig_target->arch == ZigLLVM_x86) {
8731 // This is because we're really targeting i686 rather than i386.
8732 // It's pretty much impossible to use many of the language features
8733 // such as fp16 if you stick use the x87 only. This is also what clang
8734 // uses as base cpu.
8735 // TODO https://github.com/ziglang/zig/issues/2883
87318736 target_specific_cpu_args = "pentium4";
87328737 target_specific_features = "";
87338738 } else {