[0/2] Sync with binutils for building binutils with LTO:
Message ID | 20211113163353.5374-1-hjl.tools@gmail.com |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B5F593858413 for <patchwork@sourceware.org>; Sat, 13 Nov 2021 16:36:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B5F593858413 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1636821388; bh=1vMWFG1HcmXYrl3Vxt9RfPP7m9jl58YXNfV+9Hx6DUA=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=AqUGnoMfYxXJ8l5jYAvhfnNudfqDee0yHwaZBTebYyQOByug81gnrJQOaOPjohJ6+ DMoOTZW8l64iZab9nyDZA+UADT+8TwZJ+eVlqV6W5zQ/Nbp3a1NnVuwxMBYCBuxtLJ hctdGhTKWQOvaRnLe5j89wV9sxg+DvNa9DWFrhiI= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id E6D933858403 for <gcc-patches@gcc.gnu.org>; Sat, 13 Nov 2021 16:33:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E6D933858403 Received: by mail-pf1-x435.google.com with SMTP id b68so11120775pfg.11 for <gcc-patches@gcc.gnu.org>; Sat, 13 Nov 2021 08:33:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=1vMWFG1HcmXYrl3Vxt9RfPP7m9jl58YXNfV+9Hx6DUA=; b=k15SprjRWepJG0edVWUK7fJ3B2VFCvKCDl2Iji5IPW/rG6T1xa4PtH//3sszwjnAJk MM6+f+lyEjVhfxO5xZfCzD2Ka8F7Wazp/vQNzT8V2WArnNGqRZcS4U5mKmpQHHsjV9RP Z+N4xZac/DqwRzQ7ztMXD0f7iz9yrzIvRK5RBXozkaCkfymuFjSaavpNEL7pV4mTJyDl LcW//uj04gdkRq9wawqX/uc65uHv7yfbSLpqdMhpzSn1lNSjlkpdUMTCFSUY7zr0BNi2 g9qAbx00JjJEnmqjhktiDQMvOjLd310BU63t7gDFFZiyTn2MRUNCdBUWX0unm6xWAwfd 3/Hg== X-Gm-Message-State: AOAM532yZb46U5KyROltDLkkhcAJ6wYRKEDVkgihQhob1o8faqN4Bhtv YNO4O2dVGkx9bB6D4j5ajNV9YmjFzx8= X-Google-Smtp-Source: ABdhPJxg+ETHrHlWVIpPpALyjBCtgXcJbACRWfEI62lIqQTjQH9ypG3DWoqYAXZBab9LIMkI/47dJg== X-Received: by 2002:aa7:81c2:0:b0:47c:1d4:67f5 with SMTP id c2-20020aa781c2000000b0047c01d467f5mr21270894pfn.38.1636821235561; Sat, 13 Nov 2021 08:33:55 -0800 (PST) Received: from gnu-cfl-2.localdomain ([2607:fb90:a63f:468b:b937:402b:0:c66]) by smtp.gmail.com with ESMTPSA id f19sm10110087pfc.122.2021.11.13.08.33.55 for <gcc-patches@gcc.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Nov 2021 08:33:55 -0800 (PST) Received: from gnu-cfl-2.lan (localhost [IPv6:::1]) by gnu-cfl-2.localdomain (Postfix) with ESMTP id E386D1A09E0 for <gcc-patches@gcc.gnu.org>; Sat, 13 Nov 2021 08:33:53 -0800 (PST) To: gcc-patches@gcc.gnu.org Subject: [PATCH 0/2] Sync with binutils for building binutils with LTO: Date: Sat, 13 Nov 2021 08:33:51 -0800 Message-Id: <20211113163353.5374-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3025.6 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.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: "H.J. Lu via Gcc-patches" <gcc-patches@gcc.gnu.org> Reply-To: "H.J. Lu" <hjl.tools@gmail.com> Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> |
Message
H.J. Lu
Nov. 13, 2021, 4:33 p.m. UTC
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(-)