On Thu, Oct 31, 2024 at 11:26:23AM +0000, Peter Robinson wrote: > I seem to remember firefox uses LTO+PGO for speed ups/ > > I wonder if we could provide some rpm macros and packaging guidelines > to assist packagers in this process to make things more straight > forward and less error prone? Is something like that a reasonable > idea? Depends. Some packages like gcc, firefox and a few others already have some configure or make (or whatever build system they use) options to do the PGO build. Those should just use what the upstream provides and don't need any new rpm macros. Others perhaps could make use of them, but I think only conversion of a dozens+ of packages for PGO would reveal how those macros should look like and what would be helpful and what wouldn't. The running of a -fprofile-generate instrumented program creates something.c.gcda etc. files and those need to be then in the tree built with -fprofile-use. See https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Instrumentation-Options.html#index-fprofile-generate and https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Optimize-Options.html#index-fprofile-use for some details. Jakub -- _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue