[binutils-gdb] libiberty: sync with GCC

Pietro Monteiro pietro@sourceware.org
Thu Nov 12 01:13:54 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c79376a262328164cdf81eddfcc5518314b1856a

commit c79376a262328164cdf81eddfcc5518314b1856a
Author: Pietro Monteiro <pietro@sociotechnical.xyz>
Date:   Wed Nov 11 20:13:29 2026 -0500

    libiberty: sync with GCC
    
    Sync the libiberty/ directory with gcc commit
    cdab94a53bbe481af689bcc0cd89ea690c4202f3.  This pulls in the following
    gcc commits and the associated updates to 'libiberty/ChangeLog':
    
    cdab94a53bb libiberty: Fix docs typo
    33ed38d4ee0 libiberty: Simplify finding libiberty_topdir
    aa4d1d5481d configury: replace obsolete macro AC_CONFIG_HEADER [PR103459]
    
    Signed-off-by: Pietro Monteiro <pietro@sociotechnical.xyz>

Diff:
---
 libiberty/ChangeLog      | 15 ++++++++++
 libiberty/configure      | 75 +++++++++++++++++++-----------------------------
 libiberty/configure.ac   | 20 +------------
 libiberty/functions.texi |  2 +-
 libiberty/strtoll.c      |  2 +-
 5 files changed, 48 insertions(+), 66 deletions(-)

diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 8f962f9020e..e25d746a8e9 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,18 @@
+2026-11-12  Pietro Monteiro  <pietro@sociotechnical.xyz>
+
+	* functions.texi: Regenerate.
+	* strtoll.c: Replace strtoul with strtoull in the documentation comment.
+
+2026-11-10  Pietro Monteiro  <pietro@sociotechnical.xyz>
+
+	* configure: Regenerate.
+	* configure.ac: Set libiberty_topdir to "${srcdir}/.." and remove AC_CONFIG_AUX_DIR.
+
+2026-11-04  Pietro Monteiro  <pietro@sociotechnical.xyz>
+
+	PR bootstrap/103459
+	* configure.ac: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS.
+
 2026-11-02  Pietro Monteiro  <pietro@sociotechnical.xyz>
 
 	* Makefile.in (aclocal_deps): Depend on
diff --git a/libiberty/configure b/libiberty/configure
index 228cfd4740a..16a9b04609c 100755
--- a/libiberty/configure
+++ b/libiberty/configure
@@ -2503,51 +2503,7 @@ if test "${with_newlib+set}" = set; then :
 fi
 
 
-if test "${srcdir}" = "."; then
-  if test -n "${with_build_subdir}"; then
-    libiberty_topdir="${srcdir}/../.."
-    with_target_subdir=
-  elif test -z "${with_target_subdir}"; then
-    libiberty_topdir="${srcdir}/.."
-  else
-    if test "${with_target_subdir}" != "."; then
-      libiberty_topdir="${srcdir}/${with_multisrctop}../.."
-    else
-      libiberty_topdir="${srcdir}/${with_multisrctop}.."
-    fi
-  fi
-else
-  libiberty_topdir="${srcdir}/.."
-fi
-
-ac_aux_dir=
-for ac_dir in $libiberty_topdir "$srcdir"/$libiberty_topdir; do
-  if test -f "$ac_dir/install-sh"; then
-    ac_aux_dir=$ac_dir
-    ac_install_sh="$ac_aux_dir/install-sh -c"
-    break
-  elif test -f "$ac_dir/install.sh"; then
-    ac_aux_dir=$ac_dir
-    ac_install_sh="$ac_aux_dir/install.sh -c"
-    break
-  elif test -f "$ac_dir/shtool"; then
-    ac_aux_dir=$ac_dir
-    ac_install_sh="$ac_aux_dir/shtool install -c"
-    break
-  fi
-done
-if test -z "$ac_aux_dir"; then
-  as_fn_error $? "cannot find install-sh, install.sh, or shtool in $libiberty_topdir \"$srcdir\"/$libiberty_topdir" "$LINENO" 5
-fi
-
-# These three variables are undocumented and unsupported,
-# and are intended to be withdrawn in a future Autoconf release.
-# They can cause serious problems if a builder's source tree is in a directory
-# whose full name contains unusual characters.
-ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
-ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
-ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
-
+libiberty_topdir="${srcdir}/.."
 
 
 
@@ -2690,6 +2646,35 @@ else
 fi
 
 
+ac_aux_dir=
+for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
+  if test -f "$ac_dir/install-sh"; then
+    ac_aux_dir=$ac_dir
+    ac_install_sh="$ac_aux_dir/install-sh -c"
+    break
+  elif test -f "$ac_dir/install.sh"; then
+    ac_aux_dir=$ac_dir
+    ac_install_sh="$ac_aux_dir/install.sh -c"
+    break
+  elif test -f "$ac_dir/shtool"; then
+    ac_aux_dir=$ac_dir
+    ac_install_sh="$ac_aux_dir/shtool install -c"
+    break
+  fi
+done
+if test -z "$ac_aux_dir"; then
+  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
+fi
+
+# These three variables are undocumented and unsupported,
+# and are intended to be withdrawn in a future Autoconf release.
+# They can cause serious problems if a builder's source tree is in a directory
+# whose full name contains unusual characters.
+ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
+ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
+ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
+
+
 # Make sure we can run config.sub.
 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
diff --git a/libiberty/configure.ac b/libiberty/configure.ac
index a56a1017f1a..f9bba96d59a 100644
--- a/libiberty/configure.ac
+++ b/libiberty/configure.ac
@@ -20,24 +20,8 @@ AC_ARG_WITH(cross-host,
 AC_ARG_WITH(newlib,
 [  --with-newlib                    Configuring with newlib])
 
-if test "${srcdir}" = "."; then
-  if test -n "${with_build_subdir}"; then
-    libiberty_topdir="${srcdir}/../.."
-    with_target_subdir=
-  elif test -z "${with_target_subdir}"; then
-    libiberty_topdir="${srcdir}/.."
-  else
-    if test "${with_target_subdir}" != "."; then
-      libiberty_topdir="${srcdir}/${with_multisrctop}../.."
-    else
-      libiberty_topdir="${srcdir}/${with_multisrctop}.."
-    fi
-  fi
-else
-  libiberty_topdir="${srcdir}/.."
-fi
+libiberty_topdir="${srcdir}/.."
 AC_SUBST(libiberty_topdir)
-AC_CONFIG_AUX_DIR($libiberty_topdir)
 
 dnl Very limited version of automake's enable-maintainer-mode
 
@@ -220,8 +204,6 @@ dnl AM_DISABLE_SHARED
 dnl When we start using libtool:
 dnl AM_PROG_LIBTOOL
 
-dnl When we start using automake:
-dnl AM_CONFIG_HEADER(config.h:config.in)
 AC_CONFIG_HEADERS([config.h:config.in])
 
 dnl When we start using automake:
diff --git a/libiberty/functions.texi b/libiberty/functions.texi
index 16a9d3ae4ac..98991367cf4 100644
--- a/libiberty/functions.texi
+++ b/libiberty/functions.texi
@@ -1785,7 +1785,7 @@ that the converted value is unsigned.
 @c strtoll.c:33
 @deftypefn Supplemental {long long int} strtoll (const char *@var{string}, @
   char **@var{endptr}, int @var{base})
-@deftypefnx Supplemental {unsigned long long int} strtoul (@
+@deftypefnx Supplemental {unsigned long long int} strtoull (@
   const char *@var{string}, char **@var{endptr}, int @var{base})
 
 The @code{strtoll} function converts the string in @var{string} to a
diff --git a/libiberty/strtoll.c b/libiberty/strtoll.c
index 37ff8cd3d4c..d8127211c54 100644
--- a/libiberty/strtoll.c
+++ b/libiberty/strtoll.c
@@ -32,7 +32,7 @@
 
 @deftypefn Supplemental {long long int} strtoll (const char *@var{string}, @
   char **@var{endptr}, int @var{base})
-@deftypefnx Supplemental {unsigned long long int} strtoul (@
+@deftypefnx Supplemental {unsigned long long int} strtoull (@
   const char *@var{string}, char **@var{endptr}, int @var{base})
 
 The @code{strtoll} function converts the string in @var{string} to a


More information about the Binutils-cvs mailing list