From 1b7770e271252cf01ec2e13b97c82922387e3e41 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 20 Mar 2024 23:29:33 -0700 Subject: [PATCH] Drop quotes around floating point constant labels This is incompatible with binutils gas older than 2.26. --- amd64/isel.c | 2 +- arm64/isel.c | 2 +- rv64/isel.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/amd64/isel.c b/amd64/isel.c index e29c8bf..2b81afd 100644 --- a/amd64/isel.c +++ b/amd64/isel.c @@ -95,7 +95,7 @@ fixarg(Ref *r, int k, Ins *i, Fn *fn) memset(&a, 0, sizeof a); a.offset.type = CAddr; n = stashbits(&fn->con[r0.val].bits, KWIDE(k) ? 8 : 4); - sprintf(buf, "\"%sfp%d\"", T.asloc, n); + sprintf(buf, "%sfp%d", T.asloc, n); a.offset.sym.id = intern(buf); fn->mem[fn->nmem-1] = a; } diff --git a/arm64/isel.c b/arm64/isel.c index 062beb3..870a121 100644 --- a/arm64/isel.c +++ b/arm64/isel.c @@ -112,7 +112,7 @@ fixarg(Ref *pr, int k, int phi, Fn *fn) n = stashbits(&c->bits, KWIDE(k) ? 8 : 4); vgrow(&fn->con, ++fn->ncon); c = &fn->con[fn->ncon-1]; - sprintf(buf, "\"%sfp%d\"", T.asloc, n); + sprintf(buf, "%sfp%d", T.asloc, n); *c = (Con){.type = CAddr}; c->sym.id = intern(buf); r2 = newtmp("isel", Kl, fn); diff --git a/rv64/isel.c b/rv64/isel.c index 8921a07..1fcf60c 100644 --- a/rv64/isel.c +++ b/rv64/isel.c @@ -44,7 +44,7 @@ fixarg(Ref *r, int k, Ins *i, Fn *fn) n = stashbits(&c->bits, KWIDE(k) ? 8 : 4); vgrow(&fn->con, ++fn->ncon); c = &fn->con[fn->ncon-1]; - sprintf(buf, "\"%sfp%d\"", T.asloc, n); + sprintf(buf, "%sfp%d", T.asloc, n); *c = (Con){.type = CAddr}; c->sym.id = intern(buf); emit(Oload, k, r1, CON(c-fn->con), R);