]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/typebits: relax alignment check
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 16 Sep 2022 03:41:15 +0000 (10:41 +0700)
committerGopher Robot <gobot@golang.org>
Mon, 19 Sep 2022 13:55:28 +0000 (13:55 +0000)
commit00bee6d9a4c3ed6168350fc6551043ff7a1895f2
treeb821d922790d06980ce2b388dad6d47f4a2f8490
parent638c9aad5f88f96d9aa525bbe403c8a5d3b743e8
cmd/compile/internal/typebits: relax alignment check

Now we have 8-byte alignment types on 32-bit system, so in some rare
case, e.g, generated wrapper for embedded interface, the function
argument may need more than 4 byte alignment. We could pad somehow, but
this is a rare case which makes it hard to ensure that we've got it right.

So relaxing the check for argument and return value region of the stack.

Fixes #54991

Change-Id: I34986e17a920254392a39439ad3dcb323da2ea8d
Reviewed-on: https://go-review.googlesource.com/c/go/+/431098
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/liveness/plive.go
src/cmd/compile/internal/typebits/typebits.go
test/fixedbugs/issue54991.go [new file with mode: 0644]