Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-8509

sys-devel/gcc: Support PGO builds

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • Hide
      You can simulate this on a Funtoo system by making a `/etc/portage/env/sys-devel/gcc` containing:

      ```
      GCC_MAKE_TARGET=profiledbootstrap
      # Change this to match `emerge --info | grep CFLAGS`
      BOOT_CFLAGS='-march=native -O2 -pipe'
      ```
      Show
      You can simulate this on a Funtoo system by making a `/etc/portage/env/sys-devel/gcc` containing: ``` GCC_MAKE_TARGET=profiledbootstrap # Change this to match `emerge --info | grep CFLAGS` BOOT_CFLAGS='-march=native -O2 -pipe' ```
    • Hide
      While the data is old, upstream states:

      > Experiments done on x86 using gcc 3.3 showed approximately 7 percent speedup on compiling C programs.

      https://gcc.gnu.org/install/build.html

      Show
      While the data is old, upstream states: > Experiments done on x86 using gcc 3.3 showed approximately 7 percent speedup on compiling C programs. https://gcc.gnu.org/install/build.html

      PGO builds of GCC are known to lower compilation times of packages.

      Gentoo currently supports it via `USE=pgo` on sys-devel/gcc. Setting it requires setting both GCC_MAKE_TARGET=profiledbootstrap and BOOT_CFLAGS to the system CFLAGS. This has been done in Gentoo's toolchain.eclass since 2017:

      https://github.com/gentoo/gentoo/pull/5741

            ryao ryao
            ryao ryao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: