From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id E715C3858C36; Mon, 16 Jan 2023 09:47:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E715C3858C36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673862445; bh=O2ryVzYwq8a7Z13E9Ua7/nHbRUiqOk4mdjbkRoBXRPc=; h=From:To:Subject:Date:From; b=uqWSYrhtl3QZX34Z2+iRY69Cubi0l1mfFEwAGYB6G0xyahPRa+Ev/SObFra2e3MQQ klHTY3JReTyUjzWtjd96bFb9CSB0DWL3i1fm4Mc1OjXOrNnTadD8rRxSUV5jvlkfO8 edx8g2ixPn1VKnNmxc5gHPIVaTDJaT0Eh59dfUvQ= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim: build: stop probing system extensions (ourselves) X-Act-Checkin: binutils-gdb X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: 109a0a7e902f23e7167f89abbc0d8fa0ccca6594 X-Git-Newrev: e9bf6a4a20798cd495b2833112482ebc55bc5982 Message-Id: <20230116094725.E715C3858C36@sourceware.org> Date: Mon, 16 Jan 2023 09:47:25 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3De9bf6a4a2079= 8cd495b2833112482ebc55bc5982 commit e9bf6a4a20798cd495b2833112482ebc55bc5982 Author: Mike Frysinger Date: Mon Jan 16 04:22:10 2023 -0500 sim: build: stop probing system extensions (ourselves) =20 This logic was added in order to expose the strsignal prototype for nrun.c. Since then, we've migrated to gnulib as our portability layer, and it takes care of probing system extensions for us, so there's no need to duplicate the work. Diff: --- sim/config.h.in | 32 --------- sim/configure | 159 +----------------------------------------= ---- sim/m4/sim_ac_toolchain.m4 | 1 - 3 files changed, 3 insertions(+), 189 deletions(-) diff --git a/sim/config.h.in b/sim/config.h.in index fc4f3988d5a..c51b7bcb4aa 100644 --- a/sim/config.h.in +++ b/sim/config.h.in @@ -422,28 +422,6 @@ /* Define to 1 if your declares `struct tm'. */ #undef TM_IN_SYS_TIME =20 -/* Enable extensions on AIX 3, Interix. */ -#ifndef _ALL_SOURCE -# undef _ALL_SOURCE -#endif -/* Enable GNU extensions on systems that have them. */ -#ifndef _GNU_SOURCE -# undef _GNU_SOURCE -#endif -/* Enable threading extensions on Solaris. */ -#ifndef _POSIX_PTHREAD_SEMANTICS -# undef _POSIX_PTHREAD_SEMANTICS -#endif -/* Enable extensions on HP NonStop. */ -#ifndef _TANDEM_SOURCE -# undef _TANDEM_SOURCE -#endif -/* Enable general extensions on Solaris. */ -#ifndef __EXTENSIONS__ -# undef __EXTENSIONS__ -#endif - - /* Version number of package */ #undef VERSION =20 @@ -492,16 +470,6 @@ # endif #endif =20 -/* Define to 1 if on MINIX. */ -#undef _MINIX - -/* Define to 2 if the system does not provide POSIX.1 features except with - this defined. */ -#undef _POSIX_1_SOURCE - -/* Define to 1 if you need to in order for `stat' and other things to work= . */ -#undef _POSIX_SOURCE - /* Define to `int' if doesn't define. */ #undef gid_t =20 diff --git a/sim/configure b/sim/configure index 70f7c23acdb..c1333fc9880 100755 --- a/sim/configure +++ b/sim/configure @@ -2167,97 +2167,6 @@ fi =20 } # ac_fn_c_try_cpp =20 -# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES -# ------------------------------------------------------- -# Tests whether HEADER exists, giving a warning if it cannot be compiled u= sing -# the include files in INCLUDES and setting the cache variable VAR -# accordingly. -ac_fn_c_check_header_mongrel () -{ - as_lineno=3D${as_lineno-"$1"} as_lineno_stack=3Das_lineno_stack=3D$as_li= neno_stack - if eval \${$3+:} false; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -fi -eval ac_res=3D\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 -$as_echo_n "checking $2 usability... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -#include <$2> -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_header_compiler=3Dyes -else - ac_header_compiler=3Dno -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 -$as_echo_n "checking $2 presence... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <$2> -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - ac_header_preproc=3Dyes -else - ac_header_preproc=3Dno -fi -rm -f conftest.err conftest.i conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( - yes:no: ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the = compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the p= reprocessor!" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with = the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} - ;; - no:yes:* ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cann= ot be compiled" >&5 -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for mi= ssing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?= " >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf= documentation" >&5 -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Pr= esent But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compile= d\"" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with = the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} -( $as_echo "## -----------------------------------------------------------= --------------------------- ## -## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=3D= gdb&component=3Dsim ## -## -----------------------------------------------------------------------= --------------- ##" - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=3D\$ac_header_compiler" -fi -eval ac_res=3D\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_header_mongrel - # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes @@ -4092,7 +4001,6 @@ ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAG= S $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=3D$ac_cv_c_compiler_gnu =20 =20 - ac_ext=3Dc ac_cpp=3D'$CPP $CPPFLAGS' ac_compile=3D'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -4231,6 +4139,7 @@ ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAG= S $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=3D$ac_cv_c_compiler_gnu =20 =20 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles lo= ng lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : @@ -4490,67 +4399,6 @@ fi done =20 =20 - - ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_mi= nix_config_h" "$ac_includes_default" -if test "x$ac_cv_header_minix_config_h" =3D xyes; then : - MINIX=3Dyes -else - MINIX=3D -fi - - - if test "$MINIX" =3D yes; then - -$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h - - -$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h - - -$as_echo "#define _MINIX 1" >>confdefs.h - - fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to = define __EXTENSIONS__" >&5 -$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6;= } -if ${ac_cv_safe_to_define___extensions__+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -# define __EXTENSIONS__ 1 - $ac_includes_default -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_safe_to_define___extensions__=3Dyes -else - ac_cv_safe_to_define___extensions__=3Dno -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___e= xtensions__" >&5 -$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } - test $ac_cv_safe_to_define___extensions__ =3D yes && - $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h - - $as_echo "#define _ALL_SOURCE 1" >>confdefs.h - - $as_echo "#define _GNU_SOURCE 1" >>confdefs.h - - $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h - - $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h - - test "$program_prefix" !=3D NONE && program_transform_name=3D"s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. @@ -4657,7 +4505,6 @@ test -z "$INSTALL_DATA" && INSTALL_DATA=3D'${INSTALL}= -m 644' =20 =20 =20 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering i= s bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } if ${ac_cv_c_bigendian+:} false; then : @@ -12442,7 +12289,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12445 "configure" +#line 12292 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H @@ -12548,7 +12395,7 @@ else lt_dlunknown=3D0; lt_dlno_uscore=3D1; lt_dlneed_uscore=3D2 lt_status=3D$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12551 "configure" +#line 12398 "configure" #include "confdefs.h" =20 #if HAVE_DLFCN_H diff --git a/sim/m4/sim_ac_toolchain.m4 b/sim/m4/sim_ac_toolchain.m4 index 50f08f90d5d..cb145f78530 100644 --- a/sim/m4/sim_ac_toolchain.m4 +++ b/sim/m4/sim_ac_toolchain.m4 @@ -17,7 +17,6 @@ dnl Setup the toolchain variables. AC_DEFUN([SIM_AC_TOOLCHAIN], [dnl AC_CANONICAL_SYSTEM -AC_USE_SYSTEM_EXTENSIONS AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_PROG_CPP]) AC_C_BIGENDIAN