runtime: copy print/println support from Go 1.7
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 10 Oct 2016 23:13:39 +0000 (23:13 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 10 Oct 2016 23:13:39 +0000 (23:13 +0000)
commit65180edc5661b1324a53ac9ebbe03f44cda524e4
tree661f2ef36aee0c3ee5866edd2bcf540260a98506
parent73f01cca846d729848e793689389bcaa0dec3045
runtime: copy print/println support from Go 1.7

    Update the compiler to use the new names.  Add calls to printlock and
    printunlock around print statements.  Move expression evaluation before
    the call to printlock.  Update g's writebuf field to a slice, and adjust
    C code accordingly.

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

From-SVN: r240956
13 files changed:
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/runtime.def
libgo/Makefile.am
libgo/Makefile.in
libgo/go/runtime/print.go
libgo/go/runtime/runtime2.go
libgo/go/runtime/stubs.go
libgo/runtime/mprof.goc
libgo/runtime/panic.c
libgo/runtime/print.c
libgo/runtime/proc.c
libgo/runtime/runtime.h