Don't attempt to use thin LTO with gcc
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox-esr78 unaffected, firefox84 wontfix, firefox85 fixed, firefox86 fixed)
Tracking | Status | |
---|---|---|
firefox-esr78 | --- | unaffected |
firefox84 | --- | wontfix |
firefox85 | --- | fixed |
firefox86 | --- | fixed |
People
(Reporter: mhentges, Assigned: sheehan)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details | Review |
-flto=thin
doesn't work with GCC 10+ (though It didn't work on GCC <10 either, but GCC would just ignore the thin
part).
This is forcing GCC users to provide --enable-lto=full
in their mozconfig
s.
Reporter | ||
Updated•3 years ago
|
Updated•3 years ago
|
Reporter | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
This is essentially just a backout of D84773. Passing -flto=thin
worked
previously but the value passed was just ignored and full lto was performed.
On newer versions of gcc passing an unknown value causes failure. So just
revert to the old behaviour.
Updated•3 years ago
|
Pushed by cosheehan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/129bc6a92cbb stop passing `-flto=thin` to gcc since it doesn't actually work r=glandium,mhentges
Comment 3•3 years ago
|
||
bugherder |
can this possibly be uplifted to beta-85, or is it too late for that?
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 5•3 years ago
|
||
Comment on attachment 9195724 [details]
Bug 1684914: stop passing -flto=thin
to gcc since it doesn't actually work r?#build
Beta/Release Uplift Approval Request
- User impact if declined: Downstream consumers attempting to build with thin LTO and gcc will hit failures during the build. gcc only supports full LTO.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Only impacts building Firefox using gcc and requesting thin LTO
- String changes made/needed:
Comment 6•3 years ago
|
||
Comment on attachment 9195724 [details]
Bug 1684914: stop passing -flto=thin
to gcc since it doesn't actually work r?#build
Approved for 85.0rc1.
Comment 7•3 years ago
|
||
bugherder uplift |
Description
•