aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-18 17:53:55 +0100
committerlemon <lsof@mailbox.org>2025-12-18 17:53:55 +0100
commitcf95d1a9a9f9dacbe38dee2f753615c091ba6319 (patch)
treeec3f1226f24a669d2f97898224e4540586dc4243 /main.c
parenteed64a3a5d6aadccf35423e715fe8da90062300e (diff)
regalloc+emit: get rid of xsave/xrestore hack
Was used for situation where we needed to spill more than 1 temporary and have to use a register that is already used. Instead of push/pop, we can just allocate and set aside specific stack slots for this purpose. Also, reworked linearscan() interval sets to separate FPR/GPR intervals.
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index f84c106..b6b60f0 100644
--- a/main.c
+++ b/main.c
@@ -478,7 +478,7 @@ driver(void)
{
void cpp(struct wbuf *, const char *);
if (task.verbose)
- efmt("# Target: %s\n", task.targ);
+ efmt("# Target: %s\n", task.targ ? task.targ : "(host)");
if (task.outft == OFTobj) {
assert(task.ninf == 1);
if (*task.inft != IFTc)