]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Use libiberty snprintf and vsnprintf on hppa*-*-hpux*.
authorJohn David Anglin <danglin@gcc.gnu.org>
Fri, 1 Oct 2021 17:18:32 +0000 (17:18 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Fri, 1 Oct 2021 17:18:32 +0000 (17:18 +0000)
libiberty/ChangeLog:

PR target/100734
* configure.ac: Use libiberty snprintf and vsnprintf on
hppa*-*-hpux*.
* configure: Regenerate.

libiberty/configure
libiberty/configure.ac

index 2ea7c119809845230f41741bbd6af5e46c5d1a42..821cfa8d26dea0292024238864291891ca33c5cc 100755 (executable)
@@ -6559,6 +6559,22 @@ if test -z "${setobjs}"; then
     ac_cv_func_getpagesize=yes
     ;;
 
+  hppa*-*-hpux*)
+    # Replace system snprintf and vsnprintf with libiberty implementations.
+    case " $LIBOBJS " in
+  *" snprintf.$ac_objext "* ) ;;
+  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
+ ;;
+esac
+
+    case " $LIBOBJS " in
+  *" vsnprintf.$ac_objext "* ) ;;
+  *) LIBOBJS="$LIBOBJS vsnprintf.$ac_objext"
+ ;;
+esac
+
+    ;;
+
   *-*-mingw32*)
     # Under mingw32, sys_nerr and sys_errlist exist, but they are
     # macros, so the test below won't find them.
index ad952963971a31968b5d109661b9cab0aa4b95fc..5faf48b8382af2f9978517ebca7b2755a0741063 100644 (file)
@@ -611,6 +611,12 @@ if test -z "${setobjs}"; then
     ac_cv_func_getpagesize=yes
     ;;
 
+  hppa*-*-hpux*)
+    # Replace system snprintf and vsnprintf with libiberty implementations.
+    AC_LIBOBJ([snprintf])
+    AC_LIBOBJ([vsnprintf])
+    ;;
+
   *-*-mingw32*)
     # Under mingw32, sys_nerr and sys_errlist exist, but they are
     # macros, so the test below won't find them.