compiler, runtime: copy string code from Go 1.7
commit736a16ba1750bf113e895e88d7f7fa0fdcb4caa6
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Oct 2016 18:17:52 +0000 (12 18:17 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Oct 2016 18:17:52 +0000 (12 18:17 +0000)
treef6eaddf65fba9d031ed9b3008a3c3ba4ff0ebd0b
parent180b3926f8150c94b0a486b4321eeff34ee477ea
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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241074 138bc75d-0d04-0410-961f-82ee72b054a4
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]