commit | 7aabaf8623cf88e2378057476a034093abbe5aab | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Mon Sep 16 21:15:43 2019 -0700 |
committer | Ian Lance Taylor <iant@golang.org> | Tue Sep 17 20:23:14 2019 +0000 |
tree | dabd57ef921a33693826755f8a059de870984e59 | |
parent | ff18e041624b8c23ffcd747f51e9dda945777d2a [diff] |
reflect: promote integer closure return to full word The libffi library expects an integer return type to be promoted to a full word. Implement that when returning from a closure written in Go. This only matters on big-endian systems when returning an integer smaller than the pointer size, which is why we didn't notice it until now. Fixes https://gcc.gnu.org/PR91781. Change-Id: I60ac5af4fc4a857ad0609db6db0ab1609bf543fa Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/195858 Reviewed-by: Than McIntosh <thanm@google.com>