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.
This commit is contained in:
parent
e8fa27bcdb
commit
efcb5465e5
1 changed files with 1 additions and 0 deletions
1
parse.c
1
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:
|
||||
|
|
Loading…
Add table
Reference in a new issue