Sync config.guess and config.sub with latest versions from the config project

Message ID 20251219111039.30647-1-tankut.baris.aktemur@intel.com
State New
Headers
Series Sync config.guess and config.sub with latest versions from the config project |

Commit Message

Aktemur, Tankut Baris Dec. 19, 2025, 11:10 a.m. UTC
  ---
 config.guess | 17 ++++++++++-------
 config.sub   | 28 +++++++++++++++++++---------
 2 files changed, 29 insertions(+), 16 deletions(-)
  

Comments

Jan Beulich Dec. 22, 2025, 3:55 p.m. UTC | #1
Nick,

On 19.12.2025 12:10, Tankut Baris Aktemur wrote:
> ---
>  config.guess | 17 ++++++++++-------
>  config.sub   | 28 +++++++++++++++++++---------
>  2 files changed, 29 insertions(+), 16 deletions(-)

what is the policy here? Generally my understanding is that top-level changes
would go into gcc first. However, ...

> diff --git a/config.guess b/config.guess
> index 48a684601bd..a9d01fde461 100755
> --- a/config.guess
> +++ b/config.guess
> @@ -1,10 +1,10 @@
>  #! /bin/sh
>  # Attempt to guess a canonical system name.
> -#   Copyright 1992-2024 Free Software Foundation, Inc.
> +#   Copyright 1992-2025 Free Software Foundation, Inc.
>  
>  # shellcheck disable=SC2006,SC2268 # see below for rationale
>  
> -timestamp='2024-07-27'
> +timestamp='2025-07-10'

... this alone already indicates that binutils is ahead of gcc by over three
years.

Jan
  
Maciej W. Rozycki Dec. 31, 2025, 2:47 a.m. UTC | #2
On Mon, 22 Dec 2025, Jan Beulich wrote:

> > ---
> >  config.guess | 17 ++++++++++-------
> >  config.sub   | 28 +++++++++++++++++++---------
> >  2 files changed, 29 insertions(+), 16 deletions(-)
> 
> what is the policy here? Generally my understanding is that top-level changes
> would go into gcc first. However, ...

 FWIW there's no mention of GCC in this context in top-level MAINTAINERS.

  Maciej
  
Aktemur, Tankut Baris Jan. 12, 2026, 10:33 a.m. UTC | #3
On Wednesday, December 31, 2025 3:47 AM, Maciej W. Rozycki wrote:
> On Mon, 22 Dec 2025, Jan Beulich wrote:
> 
> > > ---
> > >  config.guess | 17 ++++++++++-------
> > >  config.sub   | 28 +++++++++++++++++++---------
> > >  2 files changed, 29 insertions(+), 16 deletions(-)
> >
> > what is the policy here? Generally my understanding is that top-level
> changes
> > would go into gcc first. However, ...
> 
>  FWIW there's no mention of GCC in this context in top-level
> MAINTAINERS.
> 
>   Maciej

Nick has pushed config.guess and config.sub changes as commit
3021286472fafeda1452b402194bb3020673331b.

  https://sourceware.org/pipermail/binutils/2026-January/147022.html

The patch I submitted can be dropped.

Thanks,
-Baris


Intel Deutschland GmbH
Registered Address: Dornacher Straße 1, 85622 Feldkirchen, Germany
Tel: +49 89 991 430, www.intel.de
Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell
Chairperson of the Supervisory Board: Nicole Lau
Registered Seat: Munich
Commercial Register: Amtsgericht München HRB 186928
  

Patch

diff --git a/config.guess b/config.guess
index 48a684601bd..a9d01fde461 100755
--- a/config.guess
+++ b/config.guess
@@ -1,10 +1,10 @@ 
 #! /bin/sh
 # Attempt to guess a canonical system name.
-#   Copyright 1992-2024 Free Software Foundation, Inc.
+#   Copyright 1992-2025 Free Software Foundation, Inc.
 
 # shellcheck disable=SC2006,SC2268 # see below for rationale
 
-timestamp='2024-07-27'
+timestamp='2025-07-10'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -60,7 +60,7 @@  version="\
 GNU config.guess ($timestamp)
 
 Originally written by Per Bothner.
-Copyright 1992-2024 Free Software Foundation, Inc.
+Copyright 1992-2025 Free Software Foundation, Inc.
 
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -1597,8 +1597,11 @@  EOF
     *:Unleashed:*:*)
 	GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE
 	;;
-    *:Ironclad:*:*)
-	GUESS=$UNAME_MACHINE-unknown-ironclad
+    x86_64:[Ii]ronclad:*:*|i?86:[Ii]ronclad:*:*)
+	GUESS=$UNAME_MACHINE-pc-ironclad-mlibc
+	;;
+    *:[Ii]ronclad:*:*)
+	GUESS=$UNAME_MACHINE-unknown-ironclad-mlibc
 	;;
 esac
 
@@ -1808,8 +1811,8 @@  fi
 exit 1
 
 # Local variables:
-# eval: (add-hook 'before-save-hook 'time-stamp)
+# eval: (add-hook 'before-save-hook 'time-stamp nil t)
 # time-stamp-start: "timestamp='"
-# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-format: "%Y-%02m-%02d"
 # time-stamp-end: "'"
 # End:
diff --git a/config.sub b/config.sub
index 4aaae46f6f7..3d35cde174d 100755
--- a/config.sub
+++ b/config.sub
@@ -1,10 +1,10 @@ 
 #! /bin/sh
 # Configuration validation subroutine script.
-#   Copyright 1992-2024 Free Software Foundation, Inc.
+#   Copyright 1992-2025 Free Software Foundation, Inc.
 
 # shellcheck disable=SC2006,SC2268,SC2162 # see below for rationale
 
-timestamp='2024-05-27'
+timestamp='2025-07-10'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -76,7 +76,7 @@  Report bugs and patches to <config-patches@gnu.org>."
 version="\
 GNU config.sub ($timestamp)
 
-Copyright 1992-2024 Free Software Foundation, Inc.
+Copyright 1992-2025 Free Software Foundation, Inc.
 
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -145,6 +145,7 @@  case $1 in
 			| kfreebsd*-gnu* \
 			| knetbsd*-gnu* \
 			| kopensolaris*-gnu* \
+			| ironclad-* \
 			| linux-* \
 			| managarm-* \
 			| netbsd*-eabi* \
@@ -242,7 +243,6 @@  case $1 in
 					| rombug \
 					| semi \
 					| sequent* \
-					| siemens \
 					| sgi* \
 					| siemens \
 					| sim \
@@ -261,7 +261,7 @@  case $1 in
 						basic_machine=$field1-$field2
 						basic_os=
 						;;
-					zephyr*)
+					tock* | zephyr*)
 						basic_machine=$field1-unknown
 						basic_os=$field2
 						;;
@@ -1194,7 +1194,7 @@  case $cpu-$vendor in
 	xscale-* | xscalee[bl]-*)
 		cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
 		;;
-	arm64-* | aarch64le-*)
+	arm64-* | aarch64le-* | arm64_32-*)
 		cpu=aarch64
 		;;
 
@@ -1321,6 +1321,7 @@  case $cpu-$vendor in
 			| i960 \
 			| ia16 \
 			| ia64 \
+			| intelgt \
 			| ip2k \
 			| iq2000 \
 			| javascript \
@@ -1522,6 +1523,10 @@  EOF
 		kernel=nto
 		os=`echo "$basic_os" | sed -e 's|nto|qnx|'`
 		;;
+	ironclad*)
+		kernel=ironclad
+		os=`echo "$basic_os" | sed -e 's|ironclad|mlibc|'`
+		;;
 	linux*)
 		kernel=linux
 		os=`echo "$basic_os" | sed -e 's|linux|gnu|'`
@@ -1976,6 +1981,7 @@  case $os in
 	| atheos* \
 	| auroraux* \
 	| aux* \
+	| banan_os* \
 	| beos* \
 	| bitrig* \
 	| bme* \
@@ -2022,7 +2028,6 @@  case $os in
 	| ios* \
 	| iris* \
 	| irix* \
-	| ironclad* \
 	| isc* \
 	| its* \
 	| l4re* \
@@ -2118,6 +2123,7 @@  case $os in
 	| sysv* \
 	| tenex* \
 	| tirtos* \
+	| tock* \
 	| toppers* \
 	| tops10* \
 	| tops20* \
@@ -2214,6 +2220,8 @@  case $kernel-$os-$obj in
 		;;
 	uclinux-uclibc*- | uclinux-gnu*- )
 		;;
+	ironclad-mlibc*-)
+		;;
 	managarm-mlibc*- | managarm-kernel*- )
 		;;
 	windows*-msvc*-)
@@ -2249,6 +2257,8 @@  case $kernel-$os-$obj in
 		;;
 	*-eabi*- | *-gnueabi*-)
 		;;
+	ios*-simulator- | tvos*-simulator- | watchos*-simulator- )
+		;;
 	none--*)
 		# None (no kernel, i.e. freestanding / bare metal),
 		# can be paired with an machine code file format
@@ -2347,8 +2357,8 @@  echo "$cpu-$vendor${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}"
 exit
 
 # Local variables:
-# eval: (add-hook 'before-save-hook 'time-stamp)
+# eval: (add-hook 'before-save-hook 'time-stamp nil t)
 # time-stamp-start: "timestamp='"
-# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-format: "%Y-%02m-%02d"
 # time-stamp-end: "'"
 # End: