compiler, runtime: copy string code from Go 1.7
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 12 Oct 2016 18:17:52 +0000 (18:17 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 12 Oct 2016 18:17:52 +0000 (18:17 +0000)
commit1ad16c52842e0513b96a0e02d2a431dc0f338c5d
treef6eaddf65fba9d031ed9b3008a3c3ba4ff0ebd0b
parent2ec69f566076547b618447ba5531260c25abed3e
compiler, runtime: copy string code from Go 1.7

    Add compiler support for turning concatenating strings into a call to
    a runtime function that takes the appropriate number of arguments.

    Rename some local variables in mgc0.c to avoid macros that the new
    rune.go causes to appear in runtime.inc.

    Reviewed-on: https://go-review.googlesource.com/30827

From-SVN: r241074
24 files changed:
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/escape.cc
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h
gcc/go/gofrontend/runtime.cc
gcc/go/gofrontend/runtime.def
libgo/Makefile.am
libgo/Makefile.in
libgo/go/runtime/error.go
libgo/go/runtime/rune.go [new file with mode: 0644]
libgo/go/runtime/string.go [new file with mode: 0644]
libgo/go/runtime/string_test.go
libgo/go/runtime/stubs.go
libgo/runtime/go-byte-array-to-string.c [deleted file]
libgo/runtime/go-int-array-to-string.c [deleted file]
libgo/runtime/go-int-to-string.c [deleted file]
libgo/runtime/go-rune.c [deleted file]
libgo/runtime/go-string-to-byte-array.c [deleted file]
libgo/runtime/go-string-to-int-array.c [deleted file]
libgo/runtime/go-strplus.c [deleted file]
libgo/runtime/malloc.h
libgo/runtime/mgc0.c
libgo/runtime/runtime.h
libgo/runtime/string.goc [deleted file]