]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.power64] cc: 8-byte align argument size on power64
authorAustin Clements <austin@google.com>
Mon, 27 Oct 2014 19:10:54 +0000 (15:10 -0400)
committerAustin Clements <austin@google.com>
Mon, 27 Oct 2014 19:10:54 +0000 (15:10 -0400)
LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/163370043

src/cmd/cc/pgen.c

index 2687e05a91d363de5e39f6aa01f2cb59c812d01e..54cf0c5e11dd58e83b4cc4229f3f5c738d398c14 100644 (file)
@@ -72,7 +72,7 @@ argsize(int doret)
        if(doret && thisfn->link->etype != TVOID) {
                s = align(s, thisfn->link, Aarg1, nil);
                s = align(s, thisfn->link, Aarg2, nil);
-               if(thechar == '6')
+               if(thechar == '6' || thechar == '9')
                        s = (s+7) & ~7;
                else
                        s = (s+3) & ~3;