On Thu, Oct 31, 2024 at 12:36:28PM +0100, Jakub Jelinek wrote: > 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. Are the *.gcda files portable or must they be consumed by the exact same source / GCC combination? What I'm asking is, can those be created "offline" and included later in the RPM build, even if the code changes in between? Rich. > 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 -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW -- _______________________________________________ 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