Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(168)

Issue 142150043: code review 142150043: liblink: make GO_ARGS the default for functions beginni... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 8 months ago by rsc
Modified:
9 years, 8 months ago
Reviewers:
khr, iant
CC:
golang-codereviews, iant, khr, bradfitz, r, rlh
Visibility:
Public.

Description

liblink: make GO_ARGS the default for functions beginning with · If there is a leading ·, assume there is a Go prototype and attach the Go prototype information to the function. If the function is not called from Go and does not need a Go prototype, it can be made file-local instead (using name<>(SB)). This fixes the current BSD build failures, by giving functions like sync/atomic.StoreUint32 argument stack map information. Fixes issue 8753.

Patch Set 1 #

Patch Set 2 : diff -r d4fc8b60c5446b9f5fb9572f86ad5af1e426b261 https://code.google.com/p/go/ #

Patch Set 3 : diff -r d4fc8b60c5446b9f5fb9572f86ad5af1e426b261 https://code.google.com/p/go/ #

Total comments: 6

Patch Set 4 : diff -r 176596be1290d6193af2f9e39c2a85bb743ed09e https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -112 lines) Patch
M src/liblink/objfile.c View 1 2 chunks +22 lines, -1 line 0 comments Download
M src/runtime/asm_386.s View 1 2 chunks +3 lines, -6 lines 0 comments Download
M src/runtime/asm_amd64.s View 1 2 chunks +3 lines, -6 lines 0 comments Download
M src/runtime/asm_arm.s View 1 2 chunks +3 lines, -6 lines 0 comments Download
M src/syscall/asm_darwin_386.s View 1 5 chunks +0 lines, -5 lines 0 comments Download
M src/syscall/asm_darwin_amd64.s View 1 4 chunks +0 lines, -4 lines 0 comments Download
M src/syscall/asm_dragonfly_386.s View 1 5 chunks +0 lines, -5 lines 0 comments Download
M src/syscall/asm_dragonfly_amd64.s View 1 5 chunks +0 lines, -5 lines 0 comments Download
M src/syscall/asm_freebsd_386.s View 1 5 chunks +0 lines, -5 lines 0 comments Download
M src/syscall/asm_freebsd_amd64.s View 1 5 chunks +0 lines, -5 lines 0 comments Download
M src/syscall/asm_freebsd_arm.s View 1 5 chunks +0 lines, -5 lines 0 comments Download
M src/syscall/asm_linux_386.s View 1 7 chunks +0 lines, -7 lines 0 comments Download
M src/syscall/asm_linux_amd64.s View 1 5 chunks +0 lines, -5 lines 0 comments Download
M src/syscall/asm_linux_arm.s View 1 5 chunks +0 lines, -5 lines 0 comments Download
M src/syscall/asm_nacl_386.s View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/syscall/asm_nacl_amd64p32.s View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/syscall/asm_nacl_arm.s View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/syscall/asm_netbsd_386.s View 1 5 chunks +0 lines, -5 lines 0 comments Download
M src/syscall/asm_netbsd_amd64.s View 1 5 chunks +0 lines, -5 lines 0 comments Download
M src/syscall/asm_netbsd_arm.s View 1 5 chunks +0 lines, -5 lines 0 comments Download
M src/syscall/asm_openbsd_386.s View 1 5 chunks +0 lines, -5 lines 0 comments Download
M src/syscall/asm_openbsd_amd64.s View 1 5 chunks +0 lines, -5 lines 0 comments Download
M src/syscall/asm_plan9_386.s View 1 6 chunks +0 lines, -6 lines 0 comments Download
M src/syscall/asm_plan9_amd64.s View 1 6 chunks +0 lines, -6 lines 0 comments Download
M test/nosplit.go View 1 2 3 4 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 9
rsc
Hello golang-codereviews@googlegroups.com (cc: iant, khr, r, rlh), I'd like you to review this change to ...
9 years, 8 months ago (2014-09-16 17:16:21 UTC) #1
iant
https://codereview.appspot.com/142150043/diff/40001/src/liblink/objfile.c File src/liblink/objfile.c (right): https://codereview.appspot.com/142150043/diff/40001/src/liblink/objfile.c#newcode272 src/liblink/objfile.c:272: p->to.sym = linklookup(ctxt, smprint("%s.args_stackmap", s->name), s->version); What happens if ...
9 years, 8 months ago (2014-09-16 18:35:47 UTC) #2
rsc
https://codereview.appspot.com/142150043/diff/40001/src/liblink/objfile.c File src/liblink/objfile.c (right): https://codereview.appspot.com/142150043/diff/40001/src/liblink/objfile.c#newcode272 src/liblink/objfile.c:272: p->to.sym = linklookup(ctxt, smprint("%s.args_stackmap", s->name), s->version); On 2014/09/16 18:35:47, ...
9 years, 8 months ago (2014-09-16 18:53:56 UTC) #3
khr
LGTM. https://codereview.appspot.com/142150043/diff/40001/test/nosplit.go File test/nosplit.go (right): https://codereview.appspot.com/142150043/diff/40001/test/nosplit.go#newcode232 test/nosplit.go:232: var gobuf bytes.Buffer /gobuf/mainbuf/ ?
9 years, 8 months ago (2014-09-16 19:30:51 UTC) #4
bradfitz
https://codereview.appspot.com/142150043/diff/40001/test/nosplit.go File test/nosplit.go (right): https://codereview.appspot.com/142150043/diff/40001/test/nosplit.go#newcode288 test/nosplit.go:288: ioutil.WriteFile(filepath.Join(dir, "main.go"), gobuf.Bytes(), 0666) missing error checks on both ...
9 years, 8 months ago (2014-09-16 19:36:51 UTC) #5
iant
LGTM modulo comments from khr and bradfitz.
9 years, 8 months ago (2014-09-16 20:51:03 UTC) #6
rsc
https://codereview.appspot.com/142150043/diff/40001/test/nosplit.go File test/nosplit.go (right): https://codereview.appspot.com/142150043/diff/40001/test/nosplit.go#newcode232 test/nosplit.go:232: var gobuf bytes.Buffer On 2014/09/16 19:30:51, khr wrote: > ...
9 years, 8 months ago (2014-09-16 21:08:03 UTC) #7
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=421b47ad8cc8 *** liblink: make GO_ARGS the default for functions beginning with · ...
9 years, 8 months ago (2014-09-16 21:40:01 UTC) #8
rsc
9 years, 8 months ago (2014-09-16 21:45:38 UTC) #9
this fixed the widespread breakage introduced by rob's (innocent) sync CL.
it is wrong for arm. i will fix the arm in a few hours.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b