From patchwork Tue Dec 13 12:35:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 32794 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp90788wrn; Tue, 13 Dec 2022 04:35:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf5BrmQusRlOvP122I2Z6V5FctLdHEVXtfWRFP2Eu5bxWRE12gdRki8thLmUQxH5nJsrogb8 X-Received: by 2002:a17:906:158f:b0:78d:f472:8e7a with SMTP id k15-20020a170906158f00b0078df4728e7amr19248423ejd.38.1670934938195; Tue, 13 Dec 2022 04:35:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670934938; cv=none; d=google.com; s=arc-20160816; b=K0tLEKqDS8/IEKHOZezlIbPnE7G3p5EzqPOB+IGPb4RROCoGeZfbHKHw3ZfZQ8ZFeT rO7zaGn3wxi0YSL2hrQKb6ZYQ21ANP4ZOb0MZcLLjIIN0ewctxe/7YZEOLoqERnqu3W/ 05Uc0VTjvsRbDsZ0PEKPuWFz7dfPP2gRp1Dmy3FW9tjOYkhTtuLZLWch0Ac9eEhAnZAV jSufNNwY+gCM/6N5HmiSnnh7r2un9GVizF2aH1h2Z0XP/SBLU7RKSni8bKB6z3xfN+n1 x/+3AnQrz/222PoH8t296dmKQlIxbjYv6iv1PE0StVfZ+K2aMEVj3SucpWJUN6C6t6B5 w2vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :message-id:date:subject:cc:to:from:dkim-signature:dmarc-filter :delivered-to; bh=6L6T3PX+vXZ7tE+ROC2s658Xh2dTshNcA2hoFgjIdDA=; b=GBM7xmBvRUpCpZWJl5BS38TIF30Q9+dRNNWBFvKMLxdz7e2Cd0b53JV6I2YZIinTSu SmXoUmmYFAbp93AtX356ohwf+/ojIegwpjMN5zFQzIOLJK+1C4SE0WroIDtm3HCPQS+7 rOGMtSKzSvN/OoOPb+93noPEJJhIF6AHgQrRDtzKFjwc6FB4YVZiiJCzGihJ/XJIiY4p gN3g+iB9dXxCMEwnItKBf0uRdUmi0RGgPLmDFfpDvsgNbHZY4KBbTETQC3DOIKyTwwE5 L64IM2lj3Lcz8DOIZnr0aVt6+xuOfiA/Oh+21or1q2d6Q+GchwLOzdobJFf3HYUMX3w1 QVwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CeBiTec.Uni-Bielefeld.DE header.s=20200306 header.b=gbFFl4Mh; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ho36-20020a1709070ea400b007ae0e8f697fsi8982320ejc.652.2022.12.13.04.35.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 04:35:38 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@CeBiTec.Uni-Bielefeld.DE header.s=20200306 header.b=gbFFl4Mh; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 12E9C3873CC6 for ; Tue, 13 Dec 2022 12:35:30 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id 63EC6383E433; Tue, 13 Dec 2022 12:35:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 63EC6383E433 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=none smtp.mailfrom=cebitec.uni-bielefeld.de Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 49E2AABD6F; Tue, 13 Dec 2022 13:35:04 +0100 (CET) X-Virus-Scanned: amavisd-new at CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EIwfGa4IkSLe; Tue, 13 Dec 2022 13:35:03 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p50854430.dip0.t-ipconnect.de [80.133.68.48]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 5E327AC1DA; Tue, 13 Dec 2022 13:35:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=CeBiTec.Uni-Bielefeld.DE; s=20200306; t=1670934903; bh=kbO8KCP98HAq458MjjYbijecI5p2PBotE9udxaWnb+Y=; h=From:To:Cc:Subject:Date:From; b=gbFFl4Mhf5a8lEcBOuj8rkjcxcnciBJK2/BX14TOnJRDfgkH1pw48h8v+k3tvMlIz bW+x6g+OkOa6hGEjU3zytFJUT6X6lru/isygiStjyEuuopLpDUb+A9IFiMSjySY0gM wqkvehVS4/pSvuMMiMtjHRxVPm0TxSzFOSCDMmGfWQ4c9FhrLymeVb2EpZfjCGbuow iqiee4DJQBq7nTd+8YDb+xHZnX9oK2GgElY5+E1dni5SS2IHCt+ug4qatg032GxCdm vCdMhgr039a/ONRYg3lLotEI5NhAvSQzpOblo0m58+rx2A3vPWDS9mGOARGBHywNtn 9htBrYX1upCtg== From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Alexandre Oliva Subject: [PATCH] build: doc: Obsolete Solaris 11.3 support Date: Tue, 13 Dec 2022 13:35:02 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (usg-unix-v) MIME-Version: 1.0 X-Spam-Status: No, score=-3794.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, KAM_SHORT, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752102274087463122?= X-GMAIL-MSGID: =?utf-8?q?1752102274087463122?= This patch implements the Solaris 11.[0-3] obsoletion just announced in https://gcc.gnu.org/pipermail/gcc/2022-December/240322.html Bootstrapped without regressions on Solaris 11.3 (i386-pc-solaris2.11, sparc-sun-solaris2.11 without and with --enable-obsolete) and 11.4. Ok for trunk? While I've been extra careful with the config.gcc part to make it work correctly in native and cross configurations, it would be good if some build maintainer could check. The trouble is that config.guess doesn't include the minor version in the triple and even if that were to change now, it's guaranteed to break lots of code that doesn't expect this, so I'm doing the determination locally. Thanks. Rainer # HG changeset patch # Parent 224d7e66257de134e767773473a133a1e4372118 build: doc: Obsolete Solaris 11.3 support diff --git a/gcc/config.gcc b/gcc/config.gcc --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -246,14 +246,25 @@ target_type_format_char='@' xm_file= md_file= +# Determine Solaris minor version +case ${target}:`uname -v` in + # Only do this on Solaris. Illumos uses illumos-* instead. + *-*-solaris2.11*:11.*) + # Restrict to native configurations. + if test x$host = x$target; then + uname_version="`uname -v`" + # Prepend dot as needed below. + target_min=".`expr "$uname_version" : '11\.\([0-9]*\)'`" + fi + ;; +esac + # Obsolete configurations. -case ${target} in - *) - ;; - obsoleted-target \ +case ${target}${target_min} in + *-*-solaris2.11.[0-3]* \ ) if test "x$enable_obsolete" != xyes; then - echo "*** Configuration ${target} is obsolete." >&2 + echo "*** Configuration ${target}${target_min} is obsolete." >&2 echo "*** Specify --enable-obsolete to build it anyway." >&2 echo "*** Support will be REMOVED in the next major release of GCC," >&2 echo "*** unless a maintainer comes forward." >&2 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -4825,6 +4825,8 @@ supported as cross-compilation target on @c alone is too unspecific and must be avoided. @anchor{x-x-solaris2} @heading *-*-solaris2* +Support for Solaris 11.3 and earlier has been obsoleted in GCC 13, but +can still be enabled by configuring with @option{--enable-obsolete}. Support for Solaris 10 has been removed in GCC 10. Support for Solaris 9 has been removed in GCC 5. Support for Solaris 8 has been removed in GCC 4.8. Support for Solaris 7 has been removed in GCC 4.6.