runtime: copy mprof code from Go 1.7 runtime
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 14 Oct 2016 22:51:46 +0000 (22:51 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 14 Oct 2016 22:51:46 +0000 (22:51 +0000)
commit1f0be9ee86f63bac9c4541a9cfaf52cb5ae5e89a
tree584ab0cd64a2743fa7198ca34c7b13282c1c0ad7
parent2045acd902fd8028514a72c58c98dba11749b8ad
runtime: copy mprof code from Go 1.7 runtime

    Also create a gccgo version of some of the traceback code in
    traceback_gccgo.go, replacing some code currently in C.

    This required modifying the compiler so that when compiling the runtime
    package a slice expression does not cause a local array variable to
    escape to the heap.

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

From-SVN: r241189
16 files changed:
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
libgo/Makefile.am
libgo/Makefile.in
libgo/go/runtime/debug.go
libgo/go/runtime/mprof.go [new file with mode: 0644]
libgo/go/runtime/runtime2.go
libgo/go/runtime/stubs.go
libgo/go/runtime/traceback_gccgo.go [new file with mode: 0644]
libgo/runtime/go-traceback.c [deleted file]
libgo/runtime/malloc.h
libgo/runtime/mgc0.c
libgo/runtime/mprof.goc [deleted file]
libgo/runtime/proc.c
libgo/runtime/runtime.c
libgo/runtime/runtime.h