runtime: set up g early
authorIan Lance Taylor <ian@gcc.gnu.org>
Sat, 11 May 2019 01:12:37 +0000 (01:12 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Sat, 11 May 2019 01:12:37 +0000 (01:12 +0000)
commitc130ab6aad57e0309ec02f58f383aece584ac8cb
tree0a5fd2bf4f6ad9b59a03ff33d2758937064fc015
parentd7b9b0805d5ab514c43e1fe57e43a10394d5d965
runtime: set up g early

    runtime.throw needs a g to work properly. Set up g early, to
    ensure that if something goes wrong in the runtime startup (e.g.
    runtime.check fails), the program terminates in a reasonable way.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/176657

From-SVN: r271088
gcc/go/gofrontend/MERGE
libgo/go/runtime/proc.go
libgo/runtime/go-libmain.c
libgo/runtime/go-main.c
libgo/runtime/runtime.h