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: 1715313 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=CeBiTec.Uni-Bielefeld.DE header.i=@CeBiTec.Uni-Bielefeld.DE header.a=rsa-sha256 header.s=20200306 header.b=gbFFl4Mh; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NWdHr4sF7z23yh for ; Tue, 13 Dec 2022 23:35:19 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A2A24383D8F2 for ; Tue, 13 Dec 2022 12:35:17 +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+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" 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.