From patchwork Fri Nov 12 08:07:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 47509 Return-Path: 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 A6955385800D for ; Fri, 12 Nov 2021 08:09:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A6955385800D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1636704576; bh=fy6y3Wq0TS2IHhmCQooy56I3xTCm5gkb9bbmNQbgDTE=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=RWqBHm1XGLH90AOMuw26hZVnQivzKNLO7YKeOavFV4H+aLveOLSkY/wMuMINK4OHG /VYxIv17AVeSsA1TUZya6mEQQRWOQ0JF/+lgDJ1hL17u3j0tstuGl+TORfsWRDudbX Iwo4wmWQ7sAP1g1DUVhuxUJoPkoMl1rZyVr4UBFM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by sourceware.org (Postfix) with ESMTPS id CC15D385840B for ; Fri, 12 Nov 2021 08:08:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CC15D385840B Received: by mail-pf1-x42b.google.com with SMTP id g19so7877351pfb.8 for ; Fri, 12 Nov 2021 00:08:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=fy6y3Wq0TS2IHhmCQooy56I3xTCm5gkb9bbmNQbgDTE=; b=3JvIDBiwDSxyc1SS66JzR3MRNS8tRWWU5u2MT3G6/Rht8zn4VRF9eFTnWA+vLvEXIn iKeL2qRj210en13oBvQLKkHeUslY1N88s+ey9WuJR3axjvvNr8Q6WOlYd8KF+aj5Dl0m K00cr6b3cv60fzuObzLNG4oJFIKF11zCNLCVp9PUqJf7tWYRV33oddTy1figTnUR1mWE re2g6cVx/4fE5jFlVUlns9XYTLzE6LGoqvwvML3uiwq2Am6MK+5CCAUVxMhC1wiNAsLJ GGLE58QdBs8O+Gn32nWZjmnZmZqbMql6vLQ0bGhLvb3BXZ3C2usNPCcTm2m0VLifseVd VylQ== X-Gm-Message-State: AOAM532e1xvkt8aOraEsrls0nNpFKAcHDjOD8CikNB0MK71jHqhOMotl ItonqP6THCjCnghzqUAtmzByMnmqdgU= X-Google-Smtp-Source: ABdhPJz9+AY+rYGRCG8gzyMZkF5gZrPRda4Kkd/Y9mTeXAFY0TbYd0UBPg4XMsMNHR2O62hx9wTywA== X-Received: by 2002:aa7:83cd:0:b0:480:9e79:fae5 with SMTP id j13-20020aa783cd000000b004809e79fae5mr12335314pfn.42.1636704482488; Fri, 12 Nov 2021 00:08:02 -0800 (PST) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:2e47:26d7:f94b:787d]) by smtp.gmail.com with ESMTPSA id k22sm5140788pfi.149.2021.11.12.00.08.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Nov 2021 00:08:01 -0800 (PST) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id E505E1140AFA; Fri, 12 Nov 2021 18:37:58 +1030 (ACDT) Date: Fri, 12 Nov 2021 18:37:58 +1030 To: gcc-patches@gcc.gnu.org Subject: Make opcodes configure depend on bfd configure Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-1022.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=unavailable 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alan Modra via Gcc-patches From: Alan Modra Reply-To: Alan Modra Cc: binutils@sourceware.org Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" The idea is for opcodes to be able to see whether bfd is compiled for 64-bit. A lot of --enable-targets=all libopcodes is wasted space if bfd can't load 64-bit target object files. * Makefile.def (configure-opcodes): Depend on configure-bfd. * Makefile.in: Regenerate. Applied to gcc. I'll be importing the gcc versions over to binutils. diff --git a/Makefile.def b/Makefile.def index 0abc42b1a1b..a504192e6d7 100644 --- a/Makefile.def +++ b/Makefile.def @@ -4,7 +4,7 @@ AutoGen definitions Makefile.tpl; // Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'. // This file was originally written by Nathanael Nerode. // -// Copyright 2002-2019 Free Software Foundation +// Copyright 2002-2021 Free Software Foundation // // This file is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -493,6 +493,7 @@ dependencies = { module=install-strip-ld; on=install-strip-bfd; }; dependencies = { module=install-strip-ld; on=install-strip-libctf; }; // libopcodes depends on libbfd +dependencies = { module=configure-opcodes; on=configure-bfd; hard=true; }; dependencies = { module=install-opcodes; on=install-bfd; }; dependencies = { module=install-strip-opcodes; on=install-strip-bfd; }; diff --git a/Makefile.in b/Makefile.in index d13f6c353ee..860cf8f067b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -62717,6 +62717,16 @@ install-ld: maybe-install-libctf install-strip-libctf: maybe-install-strip-bfd install-strip-ld: maybe-install-strip-bfd install-strip-ld: maybe-install-strip-libctf +configure-opcodes: configure-bfd +configure-stage1-opcodes: configure-stage1-bfd +configure-stage2-opcodes: configure-stage2-bfd +configure-stage3-opcodes: configure-stage3-bfd +configure-stage4-opcodes: configure-stage4-bfd +configure-stageprofile-opcodes: configure-stageprofile-bfd +configure-stagetrain-opcodes: configure-stagetrain-bfd +configure-stagefeedback-opcodes: configure-stagefeedback-bfd +configure-stageautoprofile-opcodes: configure-stageautoprofile-bfd +configure-stageautofeedback-opcodes: configure-stageautofeedback-bfd install-opcodes: maybe-install-bfd install-strip-opcodes: maybe-install-strip-bfd configure-gas: maybe-configure-intl