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

Issue 156430044: code review 156430044: cmd/cgo: disable clang's integrated assembler (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 6 months ago by dfc
Modified:
9 years, 6 months ago
Reviewers:
gobot, iant
CC:
golang-codereviews, iant
Visibility:
Public.

Description

cmd/cgo: disable clang's integrated assembler Fixes issue 8348. Clang's internal assembler (introduced by default in clang 3.4) understands the .arch directive, but doesn't change the default value of -march. This causes the build to fail when we use BLX (armv5 and above) when clang is compiled for the default armv4t architecture (which appears to be the default on all the distros I've used). This is probably a clang bug, so work around it for the time being by disabling the integrated assembler when compiling the cgo assembly shim. This CL also includes a small change to ldelf.c which was required as clang 3.4 and above generate more weird symtab entries.

Patch Set 1 #

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

Total comments: 2

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M src/cmd/cgo/gcc.go View 1 1 chunk +7 lines, -1 line 0 comments Download
M src/cmd/ld/ldelf.c View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10
dfc
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
9 years, 6 months ago (2014-10-20 11:46:14 UTC) #1
iant
https://codereview.appspot.com/156430044/diff/20001/src/cmd/cgo/gcc.go File src/cmd/cgo/gcc.go (right): https://codereview.appspot.com/156430044/diff/20001/src/cmd/cgo/gcc.go#newcode750 src/cmd/cgo/gcc.go:750: // The clang integrated assembler understands the .arch directive ...
9 years, 6 months ago (2014-10-20 15:08:21 UTC) #2
dfc
On 2014/10/20 15:08:21, iant wrote: > https://codereview.appspot.com/156430044/diff/20001/src/cmd/cgo/gcc.go > File src/cmd/cgo/gcc.go (right): > > https://codereview.appspot.com/156430044/diff/20001/src/cmd/cgo/gcc.go#newcode750 > ...
9 years, 6 months ago (2014-10-20 20:57:20 UTC) #3
dfc
Hello golang-codereviews@googlegroups.com, iant@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
9 years, 6 months ago (2014-10-20 21:26:26 UTC) #4
iant
LGTM
9 years, 6 months ago (2014-10-20 23:14:51 UTC) #5
dfc
Thanks Ian On Tue, Oct 21, 2014 at 10:14 AM, <iant@golang.org> wrote: > LGTM > ...
9 years, 6 months ago (2014-10-20 23:16:03 UTC) #6
dfc
*** Submitted as https://code.google.com/p/go/source/detail?r=5d69cad4faaf *** cmd/cgo: disable clang's integrated assembler Fixes issue 8348. Clang's internal ...
9 years, 6 months ago (2014-10-20 23:30:46 UTC) #7
dfc
http://llvm.org/bugs/show_bug.cgi?id=21319 FWIW On Tue, Oct 21, 2014 at 10:30 AM, <dave@cheney.net> wrote: > *** Submitted ...
9 years, 6 months ago (2014-10-20 23:42:34 UTC) #8
gobot
This CL appears to have broken the nacl-arm-cheney builder. See http://build.golang.org/log/9ddd9d040b70b050da1c799df711908b0cc0b446
9 years, 6 months ago (2014-10-21 04:31:01 UTC) #9
dfc
9 years, 6 months ago (2014-10-21 04:42:17 UTC) #10
Not really, this builder crashed half way through the build.

On 21 Oct 2014 15:31, <gobot@golang.org> wrote:
>
> This CL appears to have broken the nacl-arm-cheney builder.
> See http://build.golang.org/log/9ddd9d040b70b050da1c799df711908b0cc0b446
>
> https://codereview.appspot.com/156430044/
Sign in to reply to this message.

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