From 9fe7e787adc4f41201c441014fbad318eaae6f80 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 31 Jul 2014 13:07:19 -0700 Subject: Use __builtin_trap for ABORT_INSTRUCTION. --- configure | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'configure') diff --git a/configure b/configure index c8d2967..646e0bc 100755 --- a/configure +++ b/configure @@ -7003,6 +7003,44 @@ if test $libc_cv_ehdr_start = yes; then fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5 +$as_echo_n "checking for __builtin_trap with no external dependencies... " >&6; } +if ${libc_cv_builtin_trap+:} false; then : + $as_echo_n "(cached) " >&6 +else + libc_cv_builtin_trap=no +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +__builtin_trap () + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +libc_undefs=`$NM -u conftest.o | + LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \ + 2>&5` || { + as_fn_error $? "confusing output from $NM -u" "$LINENO" 5 +} +echo >&5 "libc_undefs='$libc_undefs'" +if test -z "$libc_undefs"; then + libc_cv_builtin_trap=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5 +$as_echo "$libc_cv_builtin_trap" >&6; } +if test $libc_cv_builtin_trap = yes; then + $as_echo "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h + +fi + ### End of automated tests. ### Now run sysdeps configure fragments. -- cgit v1.1