drop -G flag and add target amd64_apple
apple support is more than assembly syntax in case of arm64 machines, and apple syntax is currently useless in all cases but amd64; rather than having a -G option that only makes sense with amd64, we add a new target amd64_apple
This commit is contained in:
parent
5490268683
commit
8dddb971d9
14 changed files with 143 additions and 123 deletions
|
@ -415,7 +415,7 @@ rv64_emitfn(Fn *fn, FILE *f)
|
|||
Blk *b, *s;
|
||||
Ins *i;
|
||||
|
||||
gasemitlnk(fn->name, &fn->lnk, ".text", f);
|
||||
emitlnk(fn->name, &fn->lnk, ".text", f);
|
||||
|
||||
if (fn->vararg) {
|
||||
/* TODO: only need space for registers
|
||||
|
|
|
@ -41,7 +41,7 @@ fixarg(Ref *r, int k, Ins *i, Fn *fn)
|
|||
* immediates
|
||||
*/
|
||||
assert(c->type == CBits);
|
||||
n = gasstash(&c->bits, KWIDE(k) ? 8 : 4);
|
||||
n = stashbits(&c->bits, KWIDE(k) ? 8 : 4);
|
||||
vgrow(&fn->con, ++fn->ncon);
|
||||
c = &fn->con[fn->ncon-1];
|
||||
sprintf(buf, "fp%d", n);
|
||||
|
|
|
@ -47,6 +47,8 @@ Target T_rv64 = {
|
|||
.abi = rv64_abi,
|
||||
.isel = rv64_isel,
|
||||
.emitfn = rv64_emitfn,
|
||||
.emitfin = elf_emitfin,
|
||||
.asloc = ".L",
|
||||
};
|
||||
|
||||
MAKESURE(rsave_size_ok, sizeof rv64_rsave == (NGPS+NFPS+1) * sizeof(int));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue