libgo: break dependence on libgcc unwind-pe.h
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 2 May 2018 21:53:30 +0000 (21:53 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 2 May 2018 21:53:30 +0000 (21:53 +0000)
commit019808c95c540a830a64c132257bde018abf6a1e
treeb635fa4c3ee82a3c372d5ef01531c276fd59559f
parent27db01d8039a1a1664bcd1ebd1f66cedcfe72398
libgo: break dependence on libgcc unwind-pe.h

    The C portion of the Go runtime includes the header "unwind-pe.h" from
    libgcc, which contains some constants and a few small routines for
    decoding pointer values within unwind info. This patch gets rid of
    that include and instead adds a re-implementation of that
    functionality in the single file that uses it. The intent is to allow
    the C runtime portion of libgo to be built without a companion GCC
    installation.

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

From-SVN: r259861
libgo/runtime/go-unwind.c