The runtime/pprof package builds stack traces that skip runtime
functions. When libgo is compiled with -O0, the function profilealloc
appears on the stack trace, but the package doesn't know to skip it.
Rename the function so that it is skipped. This lets the
runtime/pprof test pass when libgo is
This patch to libgo fixes the runtime/pprof test to pass, and enables
it. it cleans up the runtime interface for profiling a little bit.
Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
Committed to mainline and 4.7 branch.
Ian
diff -r 55f2af449cde libgo/Makefile.am
--- a/libgo/Ma