From efcb5465e597571820391bee450dd1e8def300b4 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Thu, 15 Aug 2024 23:11:20 +0200 Subject: [PATCH] align emitted code Functions are now aligned on 16-byte boundaries. This mimics gcc and should help reduce the maximum perf impact of cosmetic code changes. Previously, any change in the output of qbe could have far reaching implications on alignment. Thanks to Roland Paterson-Jones for pointing out the variability issue. --- parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/parse.c b/parse.c index a745779..caab452 100644 --- a/parse.c +++ b/parse.c @@ -1219,6 +1219,7 @@ parse(FILE *f, char *path, void dbgfile(char *), void data(Dat *), void func(Fn dbgfile(tokval.str); break; case Tfunc: + lnk.align = 16; func(parsefn(&lnk)); break; case Tdata: -- 2.11.4.GIT