From patchwork Thu Aug 13 17:49:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 40268 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 96F99386F80E; Thu, 13 Aug 2020 17:50:10 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 4363C3857C5B for ; Thu, 13 Aug 2020 17:50:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4363C3857C5B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=joseph_myers@mentor.com IronPort-SDR: 3cDEOGatkKJ3lezTwnMo5jCnAbp1kTtiS1uo+WEBnsWRtpWCYngpbqOdy0Cj5i3rE/x/5IcJoW wNRD3J+q3MgwB+6Oa+2wmPQMqyucwzselYh9mdBF91FqQ9rHt50FsEl5EUYY93Cq+lpUWMyhhD +npIyllL8pyAF+CuvoTocGSw1IJOO6lWVyn+quK8loN+IFsTREwL+5JObXKhPA6v0UWqKM3fRx i7wjKHTc4fde/i3EB4+D4rjk5UdRckTcfMC2qnmDGs2yQs8uOzFyl384QVUTkiFu9xzb4cEWrJ tfA= X-IronPort-AV: E=Sophos;i="5.76,309,1592899200"; d="scan'208";a="54074105" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 13 Aug 2020 09:50:00 -0800 IronPort-SDR: 7GG5AQsL71JaqP91sH/xRwR0TpoNuFO0X5gZt0SbGCnpuBmmhXBWIcvyd2GJ86rEmI0Xe4cvct wVSnCKF+GdHtKqSSMJ6mYP4L08wwMDo5fnOEoUQ5a/DBpRfb8Pe8J2DHyjUIIKGiNSpo1SzAu7 oLdKK4aolBE51aBOXpFh6jNx7kSNiA56G9h3ddPfIlYZxRGelU1Omhgf4fw8XMBa/HOFxN1Syo Nb/cXnsQEaricgMLWrOUnRZ9fFmX64H+NRRN3Ls57iGcjcDkMJvuqPy5q5BlcFTCds08cMq9dh CJY= Date: Thu, 13 Aug 2020 17:49:56 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Subject: Update build-many-glibcs.py for binutils ia64 obsoletion Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-06.mgc.mentorg.com (139.181.222.6) To SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) X-Spam-Status: No, score=-3133.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, 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: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Since binutils has obsoleted ia64 support, use --enable-obsolete for now when configuring binutils for ia64 in build-many-glibcs.py (which requires adding support for architecture-specific binutils configure options there). As with other obsoletions, the removal of support for ia64 in any of (binutils, GCC, Linux kernel) should imply its removal from glibc. Tested with build-many-glibcs.py for ia64-linux-gnu (compilers and glibcs build). diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index 325591b2c6..3bd5fd795e 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@ -212,7 +212,8 @@ class Context(object): os_name='gnu') self.add_config(arch='ia64', os_name='linux-gnu', - first_gcc_cfg=['--with-system-libunwind']) + first_gcc_cfg=['--with-system-libunwind'], + binutils_cfg=['--enable-obsolete']) self.add_config(arch='m68k', os_name='linux-gnu', gcc_cfg=['--disable-multilib']) @@ -1264,7 +1265,8 @@ class Config(object): """A configuration for building a compiler and associated libraries.""" def __init__(self, ctx, arch, os_name, variant=None, gcc_cfg=None, - first_gcc_cfg=None, glibcs=None, extra_glibcs=None): + first_gcc_cfg=None, binutils_cfg=None, glibcs=None, + extra_glibcs=None): """Initialize a Config object.""" self.ctx = ctx self.arch = arch @@ -1283,6 +1285,10 @@ class Config(object): self.first_gcc_cfg = [] else: self.first_gcc_cfg = first_gcc_cfg + if binutils_cfg is None: + self.binutils_cfg = [] + else: + self.binutils_cfg = binutils_cfg if glibcs is None: glibcs = [{'variant': variant}] if extra_glibcs is None: @@ -1316,7 +1322,7 @@ class Config(object): '--disable-gdbserver', '--disable-libdecnumber', '--disable-readline', - '--disable-sim']) + '--disable-sim'] + self.binutils_cfg) if self.os.startswith('linux'): install_linux_headers(LinuxHeadersPolicyForBuild(self), cmdlist) self.build_gcc(cmdlist, True)