From: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
To: gcc-patches@gcc.gnu.org
Cc: Alexandre Oliva <aoliva@gcc.gnu.org>
Subject: [PATCH] build: doc: Obsolete Solaris 11.3 support
Date: Tue, 13 Dec 2022 13:35:02 +0100 [thread overview]
Message-ID: <yddilifeb2h.fsf@CeBiTec.Uni-Bielefeld.DE> (raw)
[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]
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
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
2022-12-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
gcc:
* config.gcc: Determine Solaris minor version.
Obsolete *-*-solaris2.11.[0-3]*.
* doc/install.texi (Specific, *-*-solaris2*): Document it.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: sol113-obsolete.patch --]
[-- Type: text/x-patch, Size: 1818 bytes --]
# 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.
next reply other threads:[~2022-12-13 12:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-13 12:35 Rainer Orth [this message]
2022-12-17 0:22 ` Jeff Law
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yddilifeb2h.fsf@CeBiTec.Uni-Bielefeld.DE \
--to=ro@cebitec.uni-bielefeld.de \
--cc=aoliva@gcc.gnu.org \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).