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
88b03a7 runtime: copy print/println support from Go 1.7
gcc/go/gofrontend/MERGE | 2 +-
gcc/go/gofrontend/expressions.cc | 71 +++++----
gcc/go/gofrontend/runtime.def | 31 ++--
libgo/Makefile.am | 1 -
libgo/Makefile.in | 11 +-
libgo/go/runtime/print.go | 28 +++-
libgo/go/runtime/runtime2.go | 22 +--
libgo/go/runtime/stubs.go | 3 -
libgo/runtime/mprof.goc | 12 +-
libgo/runtime/panic.c | 9 +-
libgo/runtime/print.c | 301 +++++++++-----------------------------
libgo/runtime/proc.c | 5 +-
libgo/runtime/runtime.h | 29 ----
13 files changed, 174 insertions(+), 351 deletions(-)
Upstream: gcc.gnu.org