qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit c8ffe7262f28022854a504cb8260e0cfdd8c55ed
parent 84b889c6ef536de35ac0360d28c057c8548a42c1
Author: Quentin Carbonneaux <quentin@c9x.me>
Date:   Fri,  3 May 2019 00:09:40 +0200

gas: use .balign instead of .align

.align N can either mean align to
the next multiple of N or align to
the next multiple of 1<<N.

Credit goes to Jorge Acereda MaciĆ”
for reporting this issue.

Diffstat:
Mgas.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gas.c b/gas.c @@ -8,7 +8,7 @@ gasemitdat(Dat *d, FILE *f) { static int align; static char *dtoa[] = { - [DAlign] = ".align", + [DAlign] = ".balign", [DB] = "\t.byte", [DH] = "\t.short", [DW] = "\t.int", @@ -24,7 +24,7 @@ gasemitdat(Dat *d, FILE *f) break; case DName: if (!align) - fprintf(f, ".align 8\n"); + fprintf(f, ".balign 8\n"); if (d->export) fprintf(f, ".globl %s%s\n", gassym, d->u.str); fprintf(f, "%s%s:\n", gassym, d->u.str); @@ -98,7 +98,7 @@ gasemitfin(FILE *f) for (b=stash, i=0; b; b=b->link, i++) { if (b->size == sz) { fprintf(f, - ".align %d\n" + ".balign %d\n" "%sfp%d:", sz, gasloc, i );