gcc/libgo
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
..
config
go runtime: fixes for -buildmode=c-archive 2016-11-30 02:09:24 +00:00
runtime runtime: fixes for -buildmode=c-archive 2016-11-30 02:09:24 +00:00
testsuite runtime/internal/sys: new package, API copied from Go 1.7 2016-09-11 13:23:27 +00:00
aclocal.m4 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
config.h.in runtime: copy netpoll code from Go 1.7 runtime 2016-10-18 14:38:29 +00:00
configure Update libgo/configure to restore it to the master version. 2016-11-18 04:05:10 +00:00
configure.ac runtime, reflect: rewrite Go to FFI type conversion in Go 2016-11-18 00:15:38 +00:00
godeps.sh libgo: change build procedure to use build tags 2016-08-06 00:36:33 +00:00
LICENSE
Makefile.am runtime: rewrite panic/defer code from C to Go 2016-11-22 17:58:04 +00:00
Makefile.in runtime: rewrite panic/defer code from C to Go 2016-11-22 17:58:04 +00:00
match.sh libgo: don't unset in shell script 2016-08-13 02:52:42 +00:00
MERGE libgo: update to Go 1.7.1 release 2016-09-10 13:14:00 +00:00
merge.sh
mkrsysinfo.sh runtime, reflect: rewrite Go to FFI type conversion in Go 2016-11-18 00:15:38 +00:00
mksigtab.sh runtime: copy signal code from Go 1.7 runtime 2016-11-10 22:53:23 +00:00
mksysinfo.sh re PR go/78172 (gen-sysinfo.go vs AIX cred.h) 2016-11-05 00:21:33 +00:00
mvifdiff.sh
PATENTS
README
README.gcc
sysinfo.c runtime, reflect: rewrite Go to FFI type conversion in Go 2016-11-18 00:15:38 +00:00
VERSION libgo: update to Go 1.7.1 release 2016-09-10 13:14:00 +00:00

See ../README.

This is the runtime support library for the Go programming language.
This library is intended for use with the Go frontend.

This library should not be stripped when it is installed.  Go code
relies on being able to look up file/line information, which comes
from the debugging info using the libbacktrace library.

The library has only been tested on GNU/Linux using glibc, and on
Solaris.  It should not be difficult to port to other operating
systems.

Directories:

go
  A copy of the Go library from http://golang.org/, with several
  changes for gccgo.

runtime
  Runtime functions, written in C, which are called directly by the
  compiler or by the library.

Contributing
============

To contribute patches to the files in this directory, please see
http://golang.org/doc/gccgo_contribute.html .

The master copy of these files is hosted at
http://code.google.com/p/gofrontend .  Changes to these files require
signing a Google contributor license agreement.  If you are the
copyright holder, you will need to agree to the individual contributor
license agreement at
http://code.google.com/legal/individual-cla-v1.0.html.  This agreement
can be completed online.

If your organization is the copyright holder, the organization will
need to agree to the corporate contributor license agreement at
http://code.google.com/legal/corporate-cla-v1.0.html.

If the copyright holder for your code has already completed the
agreement in connection with another Google open source project, it
does not need to be completed again.