From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by sourceware.org (Postfix) with ESMTPS id 8D502386F42A for ; Thu, 29 Oct 2020 19:11:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8D502386F42A Received: by mail-pg1-x541.google.com with SMTP id g12so3131822pgm.8 for ; Thu, 29 Oct 2020 12:11:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gmQLjmLkTD9V+Qw29c2XrvXZz5RpYApxPEWYV4Xw8YI=; b=bNd2RzOUWSXNnmVGgEY+acXK5KBYCXR/h6t6dt6lGsSZQfBNYwwJIs+1sL0qefcytc 1oZtmD8Fc1agKgj+XEP+ShsBmBFpiMbiZ8e+nIfBOidH49kOXF4fLItQJIPiWInhEiFI 0fWBMbmsjy858PBz0gnJL++b70ttBXGpf6LzD1MOBUw7ma87HtRBV8HvWF6e5URvjB3m +yTQ3LKRjd5ISqhbxC+r77sVu8s5mxGNmK7j1b/F1OsP53pploCaoowSD8EksIKOGUzy fN3wD4WrvtskyxE7Wwwwa0YnbsV51JbINndxSQ+gpIhuyU3oJAiL1+//tgVM+DSzMhpi kNJw== X-Gm-Message-State: AOAM5337WIaCmL2olgM4ptEKjMjCvEesSzqmnnIHdqeg3hnMearyMRBu 2EqGy3rB1XnYQoa3P+e6vtWln/JymGI= X-Google-Smtp-Source: ABdhPJwiuS0rVQlHMcqcGt/OAM9L6VcEqEOHBrCXj++8vZW0M0QFDS1LCUe5ijqbT656h2pWBRZAUw== X-Received: by 2002:a17:90a:1903:: with SMTP id 3mr1316700pjg.74.1603998699751; Thu, 29 Oct 2020 12:11:39 -0700 (PDT) Received: from gnu-cfl-2.localdomain (c-69-181-90-243.hsd1.ca.comcast.net. [69.181.90.243]) by smtp.gmail.com with ESMTPSA id q84sm3795954pfq.144.2020.10.29.12.11.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 12:11:38 -0700 (PDT) Received: from gnu-cfl-2.localdomain (localhost [IPv6:::1]) by gnu-cfl-2.localdomain (Postfix) with ESMTP id 04F561A0423; Thu, 29 Oct 2020 12:11:35 -0700 (PDT) From: "H.J. Lu" To: binutils@sourceware.org Cc: gcc-patches@gcc.gnu.org, Martin Liska Subject: [PATCH 0/3] Enable PGO/LTO build for binutils+gdb Date: Thu, 29 Oct 2020 12:11:29 -0700 Message-Id: <20201029191132.137382-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3035.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Oct 2020 19:11:43 -0000 Add the --enable-pgo-build[=lto] configure option. When binutils+gdb is not built together with GCC, --enable-pgo-build enables the PGO build: 0. Pass --plugin to AR and RANLIB. 1. First build with -fprofile-generate. 2. Use "make maybe-check-*" to generate profiling data. 3. Use "make clean" to remove the previous build. 4. Rebuild with -fprofile-use. H.J. Lu (3): GCC: Pass --plugin to AR and RANLIB Binutils: Pass --plugin to AR and RANLIB Support the PGO build for binutils+gdb Makefile.in | 63 ++++++++++++- Makefile.tpl | 63 ++++++++++++- bfd/configure | 27 +++++- binutils/configure | 27 +++++- config/gcc-plugin.m4 | 28 ++++++ configure | 139 ++++++++++++++++++++++++++- configure.ac | 80 ++++++++++++++++ gas/configure | 27 +++++- 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 ++++++++++++++++++++++++++++++++++++++++- 18 files changed, 818 insertions(+), 30 deletions(-) -- 2.28.0