mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
83a27ac5162cf15e1dca6de92f2debe452024d24
Takes a lot of inspiration from https://packages.altlinux.org/en/sisyphus/srpms/xz/specfiles/#line-80. IIRC at least one other distro does this for xz or gzip (was it Clear Linux?) The testsuite could do with better coverage so supplement it by creating a tar archive of a bunch of files made during the build, then repeatedly compress/decompress it to gather profiling data. That said, I don't get any binary differences at all for liblzma and xz for my usual flags (-O3 -march=znver2 ...). I do get some small differences for just -O2. Both tests were done with GCC 14.0.1 20240415. It would be nice if we could drop -fprofile-partial-training and that's perhaps the thing to try next. I see this commit as mostly a step towards being able to do that which should let PGO give smaller binaries with -O2 at least. Signed-off-by: Sam James <sam@gentoo.org>
…
…
…
…
…
…
…
…
…
…
…
Description
No description provided
9.8 GiB
Languages
Shell
98%
Roff
1.4%
Emacs Lisp
0.2%
C
0.1%