gcc/libgo/go
Ian Lance Taylor fbe9724cc3 runtime: fixes for -buildmode=c-archive
With -buildmode=c-archive, initsig is called before the memory
    allocator has been initialized.  The code was doing a memory
    allocation because of the call to funcPC(sigtramp).  When escape
    analysis is fully implemented, that call should not allocate.  For
    now, finesse the issue by calling a C function to get the C function
    pointer value of sigtramp.
    
    When returning from a call from C to a Go function, a deferred
    function is run to go back to syscall mode.  When the call occurs on a
    non-Go thread, that call sets g to nil, making it impossible to add
    the _defer struct back to the pool.  Just drop it and let the garbage
    collector clean it up.
    
    Reviewed-on: https://go-review.googlesource.com/33675

From-SVN: r242992
2016-11-30 02:09:24 +00:00
..
archive Update libgo/configure to restore it to the master version. 2016-11-18 04:05:10 +00:00
bufio
builtin
bytes
cmd re PR go/77910 (go: open zversion.go: no such file or directory) 2016-11-22 21:04:27 +00:00
compress Update libgo/configure to restore it to the master version. 2016-11-18 04:05:10 +00:00
container
context runtime: copy channel code from Go 1.7 runtime 2016-10-10 16:52:09 +00:00
crypto libgo: update to Go 1.7.1 release 2016-09-10 13:14:00 +00:00
database/sql
debug debug/elf: add sparc64 relocations 2016-10-14 17:16:55 +00:00
encoding Update libgo/configure to restore it to the master version. 2016-11-18 04:05:10 +00:00
errors
exp Correct gcc/go/gofrontend/lex.cc and libgo/aclocal.m4 to the versions in the gofrontend repo... 2016-11-18 04:15:46 +00:00
expvar
flag
fmt
go
golang_org/x/net
hash libgo: update to Go 1.7.1 release 2016-09-10 13:14:00 +00:00
html
image
index/suffixarray
internal syscall, internal/syscall/unix: Fix getrandom, clone on sparc64 2016-10-12 14:28:05 +00:00
io libgo: update to Go 1.7.1 release 2016-09-10 13:14:00 +00:00
log
math
mime
net libgo: update to Go 1.7.1 release 2016-09-10 13:14:00 +00:00
os libgo: update to Go 1.7.1 release 2016-09-10 13:14:00 +00:00
path libgo: update to Go 1.7.1 release 2016-09-10 13:14:00 +00:00
reflect runtime: rewrite panic/defer code from C to Go 2016-11-22 17:58:04 +00:00
regexp
runtime runtime: fixes for -buildmode=c-archive 2016-11-30 02:09:24 +00:00
sort
strconv
strings
sync
syscall syscall: don't use pt_regs in clone_linux.c 2016-10-13 04:19:57 +00:00
testing
text
time re PR go/78144 (FAIL: time on systems with tzdata2016g installed) 2016-10-28 20:21:52 +00:00
unicode