commit 4bc4c9584a13736c20855cdea2203d3bd0a259a3
parent 5af33410f6faa6c0f7d97af5b802b2608b228bc2
Author: Quentin Carbonneaux <quentin@c9x.me>
Date: Tue, 2 Jan 2024 11:16:08 +0100
revert 5af33410
Causes errors with stock toolchain
on OpenBSD.
Diffstat:
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/amd64/emit.c b/amd64/emit.c
@@ -581,7 +581,7 @@ amd64_emitfn(Fn *fn, FILE *f)
uint64_t fs;
emitfnlnk(fn->name, &fn->lnk, f);
- fputs("\tendbr64\n\tpushq %rbp\n\tmovq %rsp, %rbp\n", f);
+ fputs("\tpushq %rbp\n\tmovq %rsp, %rbp\n", f);
fs = framesz(fn);
if (fs)
fprintf(f, "\tsubq $%"PRIu64", %%rsp\n", fs);
diff --git a/arm64/emit.c b/arm64/emit.c
@@ -514,7 +514,6 @@ arm64_emitfn(Fn *fn, FILE *out)
if (T.apple)
e->fn->lnk.align = 4;
emitfnlnk(e->fn->name, &e->fn->lnk, e->f);
- fputs("\thint\t#34\n", e->f);
framelayout(e);
if (e->fn->vararg && !T.apple) {