r245777 - in /trunk: gcc/go/gofrontend/MERGE li...

ian@gcc.gnu.org ian@gcc.gnu.org
Tue Feb 28 15:13:00 GMT 2017


Author: ian
Date: Tue Feb 28 15:13:16 2017
New Revision: 245777

URL: https://gcc.gnu.org/viewcvs?rev=245777&root=gcc&view=rev
Log:
    runtime: fix sigfwd to not allocate memory
    
    The use of &[1]uintptr{fn} was causing sigfwd to allocate memory, even
    though it is being compiled for the runtime package.  That is a bad
    idea for this function, which is invoked by a signal handler.  Rewrite
    it to use only constructs that do not allocate memory when compiled
    for the runtime package.
    
    The test for this is misc/cgo/testcarchive in the main repo, which we
    don't yet test.
    
    Reviewed-on: https://go-review.googlesource.com/37454

Modified:
    trunk/gcc/go/gofrontend/MERGE
    trunk/libgo/go/runtime/signal_gccgo.go



More information about the Gcc-cvs mailing list