1
0
mirror of https://github.com/golang/go synced 2024-11-22 08:24:41 -07:00

make alignment rules match 8g, just like 6c matches 6g.

R=ken2
CC=golang-dev
https://golang.org/cl/760042
This commit is contained in:
Russ Cox 2010-03-25 14:05:54 -07:00
parent 78c27ed650
commit 7fbf9fcba9

View File

@ -541,7 +541,7 @@ align(int32 i, Type *t, int op)
}
break;
case Aarg1: /* initial allign of parameter */
case Aarg1: /* initial align of parameter */
w = ewidth[t->etype];
if(w <= 0 || w >= SZ_LONG) {
w = SZ_LONG;
@ -552,7 +552,9 @@ align(int32 i, Type *t, int op)
case Aarg2: /* width of a parameter */
o += t->width;
w = SZ_LONG;
w = t->width;
if(w > SZ_LONG)
w = SZ_LONG;
break;
case Aaut3: /* total allign of automatic */