Commit 7fbf9fcb authored by Russ Cox's avatar Russ Cox

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

R=ken2
CC=golang-dev
https://golang.org/cl/760042
parent 78c27ed6
...@@ -541,7 +541,7 @@ align(int32 i, Type *t, int op) ...@@ -541,7 +541,7 @@ align(int32 i, Type *t, int op)
} }
break; break;
case Aarg1: /* initial allign of parameter */ case Aarg1: /* initial align of parameter */
w = ewidth[t->etype]; w = ewidth[t->etype];
if(w <= 0 || w >= SZ_LONG) { if(w <= 0 || w >= SZ_LONG) {
w = SZ_LONG; w = SZ_LONG;
...@@ -552,7 +552,9 @@ align(int32 i, Type *t, int op) ...@@ -552,7 +552,9 @@ align(int32 i, Type *t, int op)
case Aarg2: /* width of a parameter */ case Aarg2: /* width of a parameter */
o += t->width; o += t->width;
w = SZ_LONG; w = t->width;
if(w > SZ_LONG)
w = SZ_LONG;
break; break;
case Aaut3: /* total allign of automatic */ case Aaut3: /* total allign of automatic */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment