Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#49129 - [gcc] Enable profiledbootstrap for GCC builds?

Attached to Project: Arch Linux
Opened by Jeff Bai (JeffBai) - Friday, 29 April 2016, 03:51 GMT
Last edited by Allan McRae (Allan) - Friday, 29 April 2016, 05:04 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No



It is not any news that building GCC with Profiled Guided Optimization (PGO) enabled can result in at least ~10% gain in C compiling performance (original document still refers to GCC 3.3 however).

Reference: (section "Building with profile feedback").

Simply append "profiledbootstrap" to the "make" command in PKGBUILD to enable this feature.

On a side note, it is also possible to build GCC with LTO enabled using:


However on GCC 6.1 this will lead to build failure when building libmpxwrapper (linking). And an upstream bug report was created just days ago.


Which is set to be fixed as the 6.2 milestone. This is also valuable - in my opinion of course - to look into.
This task depends upon

Closed by  Allan McRae (Allan)
Friday, 29 April 2016, 05:04 GMT
Reason for closing:  Won't implement
Additional comments about closing:  Profiled builds are non-reproducible.