From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1147) id F1B133858C39; Sun, 18 Dec 2022 19:39:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1B133858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671392397; bh=AOvSX1RrJQmnj0ofagwInknUjN6eAl85UJHS9Z3ksPQ=; h=From:To:Subject:Date:From; b=T38ESYte/4+PHmGr/uKALi5DMXV7TUHrM4CHIDGlMs0VAdLdrgnSC6mVIiVAFxx4x 7Rvl1kENLFDpK74EewJcCLlq1krN9uNAbZaYjw/FlImkn16ENs35VSc7oauAMGMKct oq2S/gV53l6Ry9OyVHPU6luoUZIH+kCIoeqHx70w= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Rainer Orth To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-4766] build: doc: Obsolete Solaris 11.3 support X-Act-Checkin: gcc X-Git-Author: Rainer Orth X-Git-Refname: refs/heads/master X-Git-Oldrev: 0b2428ee8305188500e4f08e088a430500f1ad9e X-Git-Newrev: fd69977febf399d1992bbf8d66ae9170e0a4dc9f Message-Id: <20221218193957.F1B133858C39@sourceware.org> Date: Sun, 18 Dec 2022 19:39:57 +0000 (GMT) List-Id: https://gcc.gnu.org/g:fd69977febf399d1992bbf8d66ae9170e0a4dc9f commit r13-4766-gfd69977febf399d1992bbf8d66ae9170e0a4dc9f Author: Rainer Orth Date: Sun Dec 18 20:39:14 2022 +0100 build: doc: Obsolete Solaris 11.3 support 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. 2022-12-09 Rainer Orth gcc: * config.gcc: Determine Solaris minor version. Obsolete *-*-solaris2.11.[0-3]*. * doc/install.texi (Specific, *-*-solaris2*): Document it. Diff: --- gcc/config.gcc | 21 ++++++++++++++++----- gcc/doc/install.texi | 2 ++ 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/gcc/config.gcc b/gcc/config.gcc index 95190233820..85ec1d88d16 100644 --- 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 index 6884a74936b..ec31f0ac43e 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -4867,6 +4867,8 @@ supported as cross-compilation target only. @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.