diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-02-28 15:13:16 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-02-28 15:13:16 +0000 |
commit | eadc1843c4fa57f844ff4d7a676de52b1c9de241 (patch) | |
tree | fc4c1d5e48b8405527572ac35f9bbf74d5e442f7 /gcc/go | |
parent | 3b19971bd35cef7da2effc364e7b6eae06d7fdf4 (diff) | |
download | gcc-eadc1843c4fa57f844ff4d7a676de52b1c9de241.tar.gz |
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
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245777 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/gofrontend/MERGE | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 46b0d1cd3e1..3f3dddeb5e7 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -0bcc1bc98dca48af40d9f54f4eacbbafaa30beb1 +e1502234b5011a1ab859519f1f217dbf4369ec9b The first line of this file holds the git revision number of the last merge done from the gofrontend repository. |