compiler, runtime: implement shifts by signed amounts

Programming / Compilers / GCC - ian [138bc75d-0d04-0410-961f-82ee72b054a4] - 20 August 2019 21:15 EDT

Shifting by signed types is a new language feature in Go 1.13.

This requires a patch to the testsuite.

Updates golang/go#19113

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/190977

- go.test/test/fixedbugs/bug073.go: Update for language changes.

16ac1e7c117 compiler, runtime: implement shifts by signed amounts
gcc/go/gofrontend/MERGE | 2 +-
gcc/go/gofrontend/expressions.cc | 28 +++++++++++++++++++++-----
gcc/go/gofrontend/gogo.h | 3 +++
gcc/testsuite/ChangeLog | 4 ++++
gcc/testsuite/go.test/test/fixedbugs/bug073.go | 10 ++++-----
libgo/runtime/go-runtime-error.c | 8 +++++++-
6 files changed, 43 insertions(+), 12 deletions(-)

Upstream: gcc.gnu.org


  • Share