public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* V3 [PATCH 0/5] Support the PGO build for binutils+gdb
@ 2020-12-19 18:10 H.J. Lu
  2020-12-19 18:10 ` V3 [PATCH 1/5] GCC: Pass --plugin to AR and RANLIB H.J. Lu
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: H.J. Lu @ 2020-12-19 18:10 UTC (permalink / raw)
  To: binutils; +Cc: gcc-patches, gdb-patches, Matthias Klose, Martin Liska

Add the --enable-pgo-build[=lto] configure option.  When binutils+gdb
is not built together with GCC, --enable-pgo-build enables the PGO build:

1. First build with -fprofile-generate.
2. Use "make maybe-check-*" to generate profiling data and pass -i to make
to ignore errors when generating profiling data.
3. Use "make clean" to remove the previous build.
4. Rebuild with -fprofile-use.

Tested PGO/LTO builds for GDB and binutils with GCC 11 on Fedora 33.

Changes from V2:

1. Pass PGO_BUILD_TRAINING=yes for PGO build training.
2. Set TESTS to gdb.dwarf2/*.exp for GDB PGO build training.
3. gnulib: Support variables from the top level Makefile.

Changes from V1:

1. Pass -ffat-lto-objects together with -flto=jobserver.
2. Pass -i to make to ignore "make check" errors in PGO training runs.

H.J. Lu (5):
  GCC: Pass --plugin to AR and RANLIB
  Binutils: Pass --plugin to AR and RANLIB
  Support the PGO build for binutils+gdb
  Set TESTS to gdb.dwarf2/*.exp for PGO build training
  gnulib: Support variables from the top level Makefile

 Makefile.in               |  68 ++++++++++++-
 Makefile.tpl              |  63 +++++++++++-
 bfd/configure             |  27 ++++-
 binutils/configure        |  27 ++++-
 config/gcc-plugin.m4      |  28 ++++++
 configure                 | 139 ++++++++++++++++++++++++-
 configure.ac              |  80 +++++++++++++++
 gas/configure             |  27 ++++-
 gdb/testsuite/Makefile.in |   5 +
 gnulib/Makefile.am        |  39 ++++++++
 gnulib/Makefile.in        |  40 ++++++++
 gprof/configure           |  27 ++++-
 ld/configure              |  27 ++++-
 libctf/configure          |  27 ++++-
 libiberty/Makefile.in     |   5 +-
 libiberty/aclocal.m4      |   1 +
 libiberty/configure       |  37 +++++++
 libiberty/configure.ac    |  12 +++
 libtool.m4                |  25 ++++-
 opcodes/configure         |  27 ++++-
 zlib/configure            | 206 +++++++++++++++++++++++++++++++++++++-
 21 files changed, 907 insertions(+), 30 deletions(-)

-- 
2.29.2


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2021-02-28 12:45 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-19 18:10 V3 [PATCH 0/5] Support the PGO build for binutils+gdb H.J. Lu
2020-12-19 18:10 ` V3 [PATCH 1/5] GCC: Pass --plugin to AR and RANLIB H.J. Lu
2020-12-19 18:10 ` V3 [PATCH 2/5] Binutils: " H.J. Lu
2020-12-19 18:10 ` V3 [PATCH 3/5] Support the PGO build for binutils+gdb H.J. Lu
2021-02-28  7:01   ` Mike Frysinger
2021-02-28 12:44     ` [PATCH] Add missing changes to Makefile.tpl H.J. Lu
2020-12-19 18:10 ` V3 [PATCH 4/5] Set TESTS to gdb.dwarf2/*.exp for PGO build training H.J. Lu
2020-12-19 18:10 ` V3 [PATCH 5/5] gnulib: Support variables from the top level Makefile H.J. Lu
2020-12-31 23:50   ` Joseph Myers
2021-01-01  0:06     ` H.J. Lu
2021-01-05 13:26       ` Christian Biesinger
2021-01-05 14:06         ` H.J. Lu
2021-01-02 19:22 ` V3 [PATCH 0/5] Support the PGO build for binutils+gdb Segher Boessenkool
2021-01-02 19:46   ` H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).