public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Sync with binutils for building binutils with LTO:
@ 2021-11-13 16:33 H.J. Lu
  2021-11-13 16:33 ` [PATCH 1/2] Sync with binutils: GCC: Pass --plugin to AR and RANLIB H.J. Lu
  2021-11-13 16:33 ` [PATCH 2/2] Sync with binutils: Support the PGO build for binutils+gdb H.J. Lu
  0 siblings, 2 replies; 13+ messages in thread
From: H.J. Lu @ 2021-11-13 16:33 UTC (permalink / raw)
  To: gcc-patches

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.

H.J. Lu (2):
  Sync with binutils: GCC: Pass --plugin to AR and RANLIB
  Sync with binutils: Support the PGO build for binutils+gdb

 Makefile.in            |  68 ++++++++++++++++++--
 Makefile.tpl           |  63 +++++++++++++++++--
 config/gcc-plugin.m4   |  28 +++++++++
 configure              | 139 ++++++++++++++++++++++++++++++++++++++++-
 configure.ac           |  80 ++++++++++++++++++++++++
 libiberty/Makefile.in  |   5 +-
 libiberty/aclocal.m4   |   1 +
 libiberty/configure    |  37 +++++++++++
 libiberty/configure.ac |  12 ++++
 libtool.m4             |  25 +++++++-
 zlib/configure         |  29 ++++++++-
 11 files changed, 471 insertions(+), 16 deletions(-)

-- 
2.33.1


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

end of thread, other threads:[~2021-12-16  5:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-13 16:33 [PATCH 0/2] Sync with binutils for building binutils with LTO: H.J. Lu
2021-11-13 16:33 ` [PATCH 1/2] Sync with binutils: GCC: Pass --plugin to AR and RANLIB H.J. Lu
2021-11-23  0:29   ` Jeff Law
2021-11-23  2:29     ` H.J. Lu
2021-12-14 23:30       ` Jeff Law
2021-12-15  0:29         ` H.J. Lu
2021-12-15 17:33   ` Jeff Law
2021-12-16  3:37   ` Sandra Loosemore
2021-12-16  4:28     ` H.J. Lu
2021-12-16  4:38       ` H.J. Lu
2021-12-16  5:34       ` Sandra Loosemore
2021-11-13 16:33 ` [PATCH 2/2] Sync with binutils: Support the PGO build for binutils+gdb H.J. Lu
2021-12-15 20:25   ` Jeff Law

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).