[PATCH 0/3] Enable PGO/LTO build for binutils+gdb

Matthias Klose doko@ubuntu.com
Sat Dec 19 09:27:17 GMT 2020


On 10/29/20 8:11 PM, H.J. Lu via Binutils wrote:
> Add the --enable-pgo-build[=lto] configure option.  When binutils+gdb
> is not built together with GCC, --enable-pgo-build enables the PGO build:

with this patch applied, and configuring with --enable-pgo-build=lto, I see some
regressions on ppc64el, sh4, hppa, sparc64 and riscv64:

Test results, compared with installed binutils:
W: [ld-bootstrap/bootstrap.exp] REGRESSION (PASS -> FAIL): bootstrap
W: [ld-bootstrap/bootstrap.exp] REGRESSION (PASS -> FAIL): bootstrap with strip
W: [ld-bootstrap/bootstrap.exp] REGRESSION (PASS -> FAIL): bootstrap with
-Wl,--traditional-format
W: [ld-bootstrap/bootstrap.exp] REGRESSION (PASS -> FAIL): bootstrap with
-Wl,--no-keep-memory
W: [ld-bootstrap/bootstrap.exp] REGRESSION (PASS -> FAIL): bootstrap with
-Wl,--relax

same on all these architectures (hppa doesn't show the first two). Checked for
ppc64el that these go away without a pgo+lto configuration.

Matthias


More information about the Binutils mailing list