runtime: copy mprof code from Go 1.7 runtime
commitd0a50ed8f0895df299f8f89faf65dfad03bcb6a1
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Oct 2016 22:51:46 +0000 (14 22:51 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Oct 2016 22:51:46 +0000 (14 22:51 +0000)
tree584ab0cd64a2743fa7198ca34c7b13282c1c0ad7
parent2ab6420c162aa797001c079be817dbb56dfd3b0c
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

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