From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2124) id E623B384F6FB; Thu, 24 Nov 2022 12:31:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E623B384F6FB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669293109; bh=Y0xKGxOP+fMsc3Q4eFfvnw9u35yMxGwC2v83Y+dkCBw=; h=From:To:Subject:Date:From; b=wqg5n2Rm+eCprzA5/9zZguaH8dIXrE9XThnwdl/cd6VlORYJgRf3Pj4+uk4rrDnOG fb//jJwammgnrreIpzJzdOr7DRtVNY0g2ilgwDnVYKlzuQGhSxaqHbH5iJQNVgzWfQ 1l7eDy38iNABkEqC+8JlMvv8aMADxZCWN1n9vhe4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Nick Clifton To: bfd-cvs@sourceware.org, gdb-cvs@sourceware.org Subject: [binutils-gdb] Impport libiberty commit: 885b6660c17f from gcc mainline. Fix gas's acinclude.m4 to stop a potwntia X-Act-Checkin: binutils-gdb X-Git-Author: Nick Clifton X-Git-Refname: refs/heads/master X-Git-Oldrev: ffbbab0b3a1000f862b6d4ce3d9a76ed14f08801 X-Git-Newrev: 0075c53724f78c78aa1692cc8e3bf1433eeb0b9f Message-Id: <20221124123149.E623B384F6FB@sourceware.org> Date: Thu, 24 Nov 2022 12:31:49 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D0075c53724f7= 8c78aa1692cc8e3bf1433eeb0b9f commit 0075c53724f78c78aa1692cc8e3bf1433eeb0b9f Author: Nick Clifton Date: Thu Nov 24 12:30:22 2022 +0000 Impport libiberty commit: 885b6660c17f from gcc mainline. Fix gas's ac= include.m4 to stop a potwntial configure time warning message. Diff: --- gas/acinclude.m4 | 1 + gas/configure | 1 + libiberty/acinclude.m4 | 14 +++++++++++--- libiberty/configure | 14 +++++++++++--- 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/gas/acinclude.m4 b/gas/acinclude.m4 index 9864abe23eb..bf6dba6825f 100644 --- a/gas/acinclude.m4 +++ b/gas/acinclude.m4 @@ -23,6 +23,7 @@ AC_DEFUN([GAS_WORKING_ASSERT], [AC_MSG_CHECKING([for working assert macro]) AC_CACHE_VAL(gas_cv_assert_ok, AC_TRY_LINK([#include +#include #include ], [ /* check for requoting problems */ static int a, b, c, d; diff --git a/gas/configure b/gas/configure index d9800f8a53d..57c1fa3557e 100755 --- a/gas/configure +++ b/gas/configure @@ -13791,6 +13791,7 @@ else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include +#include #include int main () diff --git a/libiberty/acinclude.m4 b/libiberty/acinclude.m4 index 6bd127e9826..6bb690597bf 100644 --- a/libiberty/acinclude.m4 +++ b/libiberty/acinclude.m4 @@ -24,6 +24,8 @@ AC_CACHE_CHECK([for working strncmp], ac_cv_func_strncmp_= works, [AC_TRY_RUN([ /* Test by Jim Wilson and Kaveh Ghazi. Check whether strncmp reads past the end of its string parameters. */ +#include +#include #include =20 #ifdef HAVE_FCNTL_H @@ -51,7 +53,8 @@ AC_CACHE_CHECK([for working strncmp], ac_cv_func_strncmp_= works, =20 #define MAP_LEN 0x10000 =20 -main () +int +main (void) { #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE) char *p; @@ -157,7 +160,10 @@ if test $ac_cv_os_cray =3D yes; then fi =20 AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction, -[AC_TRY_RUN([find_stack_direction () +[AC_TRY_RUN([#include + +int +find_stack_direction (void) { static char *addr =3D 0; auto char dummy; @@ -169,7 +175,9 @@ AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_st= ack_direction, else return (&dummy > addr) ? 1 : -1; } -main () + +int +main (void) { exit (find_stack_direction() < 0); }], diff --git a/libiberty/configure b/libiberty/configure index 306c07bd37e..451af4978e7 100755 --- a/libiberty/configure +++ b/libiberty/configure @@ -6919,7 +6919,10 @@ else else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -find_stack_direction () +#include + +int +find_stack_direction (void) { static char *addr =3D 0; auto char dummy; @@ -6931,7 +6934,9 @@ find_stack_direction () else return (&dummy > addr) ? 1 : -1; } -main () + +int +main (void) { exit (find_stack_direction() < 0); } @@ -7756,6 +7761,8 @@ else =20 /* Test by Jim Wilson and Kaveh Ghazi. Check whether strncmp reads past the end of its string parameters. */ +#include +#include #include =20 #ifdef HAVE_FCNTL_H @@ -7783,7 +7790,8 @@ else =20 #define MAP_LEN 0x10000 =20 -main () +int +main (void) { #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE) char *p;