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

Issue 1153143004: Use --icf=all instead of --icf=safe (Closed)

Created:
5 years, 7 months ago by Nico
Modified:
5 years, 7 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use --icf=all instead of --icf=safe With --icf=safe, functions whose address is taken aren't folded. Folding could change the results of function pointer comparisons. However, on x86_64 with pie, --icf=safe disables almost all folding, for technical reasons. Since using --icf=all will save 7 MB on x86_64 and all tests seem to pass with it, switch to --icf=all. If we end up having a function where we absolutely need equality, we can pass --keep-unique,<symbol-name> for that symbol. And if this turns out to be some maintenance burden, we can switch back to --icf=safe. Change the flag on all platforms where we use gold, not just x86_64, for consistency so that if we end up having problems with this, we notice it faster. BUG=76280, 492177 Committed: https://crrev.com/45ab39af3cc293e150158bf06515a47319db9f79 Cr-Commit-Position: refs/heads/master@{#331474}

Patch Set 1 #

Patch Set 2 : gn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M build/common.gypi View 1 chunk +1 line, -1 line 0 comments Download
M build/config/compiler/BUILD.gn View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
Nico
5 years, 7 months ago (2015-05-26 20:40:55 UTC) #2
Lei Zhang
Do you have an unstripped chrome binary build with --ifc=all handy? I'm wondering if Breakpad's ...
5 years, 7 months ago (2015-05-26 21:26:34 UTC) #3
Nico
On 2015/05/26 21:26:34, Lei Zhang wrote: > Do you have an unstripped chrome binary build ...
5 years, 7 months ago (2015-05-26 21:27:49 UTC) #4
Lei Zhang
On 2015/05/26 21:27:49, Nico wrote: > On 2015/05/26 21:26:34, Lei Zhang wrote: > > Do ...
5 years, 7 months ago (2015-05-26 21:40:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1153143004/20001
5 years, 7 months ago (2015-05-26 23:13:35 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-26 23:19:57 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/45ab39af3cc293e150158bf06515a47319db9f79 Cr-Commit-Position: refs/heads/master@{#331474}
5 years, 7 months ago (2015-05-26 23:20:45 UTC) #9
Nico
5 years, 7 months ago (2015-05-28 02:24:21 UTC) #10
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/1153153003/ by thakis@chromium.org.

The reason for reverting is: Speculative, to see if it's related to
http://crbug.com/492809.

Powered by Google App Engine
This is Rietveld 408576698