runtime: copy print/println support from Go 1.7

Programming / Compilers / GCC - ian [138bc75d-0d04-0410-961f-82ee72b054a4] - 10 October 2016 18:13 UTC

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


  • Share