Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Issue 2410233002: android: Use gold in arm64 builds too. (Closed)

Created:
4 years, 2 months ago by Nico
Modified:
4 years, 1 month ago
CC:
chromium-reviews, pasko
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

android: Use gold in arm64 builds too. Reduces hot-cache link time from 49s to 23s (gcc) and binary size from 72M to 67M (gcc) -- faster links and a 5MB smaller binary. (With clang, it's 36s to 19.5s and 75M to 69M.) It also makes the chrome/android/arm64 config more similar to most other build configs. We used to not use this because of https://sourceware.org/bugzilla/show_bug.cgi?id=18348 , but the gold binary in NDK r12b (which we currently use) has the flags added in the patches on that bug, so it should be fine now. BUG=481855 Committed: https://crrev.com/a4baf802f3058b66976a2085278f13ab3bcd8092 Cr-Commit-Position: refs/heads/master@{#424747}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M build/config/compiler/compiler.gni View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 32 (14 generated)
Nico
Since I lack arm64 hardware, I haven't actually tried running the resulting binary.
4 years, 2 months ago (2016-10-11 15:50:18 UTC) #4
Torne
I can't recall why we weren't using gold for arm64 in the first place. Do ...
4 years, 2 months ago (2016-10-11 16:03:50 UTC) #7
Nico
If you means me, then no. I'd guess we just forgot to add arm64 to ...
4 years, 2 months ago (2016-10-11 16:10:41 UTC) #8
Torne
I am fairly sure it was intentionally disabled a long time ago, but I can't ...
4 years, 2 months ago (2016-10-11 16:28:39 UTC) #9
Primiano Tucci (use gerrit)
On 2016/10/11 16:10:41, Nico wrote: > If you means me, then no. I'd guess we ...
4 years, 2 months ago (2016-10-11 16:29:46 UTC) #10
Nico
Ooooh I vaguely remember that, thanks! I'll check if the compiler passes the right flags ...
4 years, 2 months ago (2016-10-11 16:35:02 UTC) #11
Nico
I passed -### to the libchrome.so link command for {gcc, clang} x {bfd ld, gold}. ...
4 years, 2 months ago (2016-10-11 18:45:07 UTC) #12
Nico
On 2016/10/11 18:45:07, Nico wrote: > I passed -### to the libchrome.so link command for ...
4 years, 2 months ago (2016-10-11 19:06:26 UTC) #15
Primiano Tucci (use gerrit)
Thanks a lot for checking. So my understanding from your comments is that the toolchain ...
4 years, 2 months ago (2016-10-11 19:29:16 UTC) #17
Nico
On 2016/10/11 19:29:16, Primiano Tucci wrote: > Thanks a lot for checking. > So my ...
4 years, 2 months ago (2016-10-11 20:13:46 UTC) #18
Torne
From back when I used to work with ARM errata and the ARM commercial toolchain, ...
4 years, 2 months ago (2016-10-12 12:30:02 UTC) #22
Nico
On 2016/10/12 12:30:02, Torne wrote: > From back when I used to work with ARM ...
4 years, 2 months ago (2016-10-12 14:37:46 UTC) #23
Torne
On 2016/10/12 14:37:46, Nico (mostly afk until Oct 23) wrote: > I find this fairly ...
4 years, 2 months ago (2016-10-12 15:30:25 UTC) #24
Torne
Oh, haha. Actually I must just have been searching very badly in crbug; the bug ...
4 years, 2 months ago (2016-10-12 15:34:44 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2410233002/1
4 years, 2 months ago (2016-10-12 15:38:25 UTC) #27
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-12 15:44:37 UTC) #29
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/a4baf802f3058b66976a2085278f13ab3bcd8092 Cr-Commit-Position: refs/heads/master@{#424747}
4 years, 2 months ago (2016-10-12 15:49:07 UTC) #31
Nico
4 years, 1 month ago (2016-10-26 15:18:24 UTC) #32
Message was sent while issue was closed.
To follow-up on the somewhat off-topic sidethread on this review: clang now
passes the 843419 flag as of today, as a result of the discussion started in
this bug (https://reviews.llvm.org/rL285127). It was missing that part.  For the
other erratum it already tries to not emit broken code as discussed above (which
may or may not be sufficient)

Powered by Google App Engine
This is Rietveld 408576698