public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r10-9652] libstdc++: Test errno macros directly for all targets [PR 93151] Date: Thu, 1 Apr 2021 15:01:56 +0000 (GMT) [thread overview] Message-ID: <20210401150156.44EEF3858028@sourceware.org> (raw) https://gcc.gnu.org/g:03a430a55093d2ea5b80db3273c3a7134367272a commit r10-9652-g03a430a55093d2ea5b80db3273c3a7134367272a Author: Jonathan Wakely <jwakely@redhat.com> Date: Thu Dec 17 13:27:04 2020 +0000 libstdc++: Test errno macros directly for all targets [PR 93151] This applies the same changes to the djgpp and mingw versions of error_constants.h as r11-6137 did for the generic version. All of these constants are defined as macros by <errno.h> on these targets, so we can just test the macro directly instead of checking for it at configure time. libstdc++-v3/ChangeLog: * config.h.in: Regenerate. * config/os/djgpp/error_constants.h: Test POSIX errno macros directly, instead of corresponding _GLIBCXX_HAVE_EXXX macros. * config/os/mingw32-w64/error_constants.h: Likewise. * config/os/mingw32/error_constants.h: Likewise. * configure: Regenerate. (cherry picked from commit 217d5beaff9987a9845155fc796322b5f8bb876d) Diff: --- libstdc++-v3/config.h.in | 57 -- libstdc++-v3/config/os/djgpp/error_constants.h | 28 +- .../config/os/mingw32-w64/error_constants.h | 36 +- libstdc++-v3/config/os/mingw32/error_constants.h | 14 +- libstdc++-v3/configure | 631 --------------------- 5 files changed, 39 insertions(+), 727 deletions(-) diff --git a/libstdc++-v3/config.h.in b/libstdc++-v3/config.h.in index 8940e0c7acd..3ad2d34828b 100644 --- a/libstdc++-v3/config.h.in +++ b/libstdc++-v3/config.h.in @@ -69,66 +69,9 @@ /* Define to 1 if you have the <dlfcn.h> header file. */ #undef HAVE_DLFCN_H -/* Define if EBADMSG exists. */ -#undef HAVE_EBADMSG - -/* Define if ECANCELED exists. */ -#undef HAVE_ECANCELED - -/* Define if ECHILD exists. */ -#undef HAVE_ECHILD - -/* Define if EIDRM exists. */ -#undef HAVE_EIDRM - /* Define to 1 if you have the <endian.h> header file. */ #undef HAVE_ENDIAN_H -/* Define if ENODATA exists. */ -#undef HAVE_ENODATA - -/* Define if ENOLINK exists. */ -#undef HAVE_ENOLINK - -/* Define if ENOSPC exists. */ -#undef HAVE_ENOSPC - -/* Define if ENOSR exists. */ -#undef HAVE_ENOSR - -/* Define if ENOSTR exists. */ -#undef HAVE_ENOSTR - -/* Define if ENOTRECOVERABLE exists. */ -#undef HAVE_ENOTRECOVERABLE - -/* Define if ENOTSUP exists. */ -#undef HAVE_ENOTSUP - -/* Define if EOVERFLOW exists. */ -#undef HAVE_EOVERFLOW - -/* Define if EOWNERDEAD exists. */ -#undef HAVE_EOWNERDEAD - -/* Define if EPERM exists. */ -#undef HAVE_EPERM - -/* Define if EPROTO exists. */ -#undef HAVE_EPROTO - -/* Define if ETIME exists. */ -#undef HAVE_ETIME - -/* Define if ETIMEDOUT exists. */ -#undef HAVE_ETIMEDOUT - -/* Define if ETXTBSY exists. */ -#undef HAVE_ETXTBSY - -/* Define if EWOULDBLOCK exists. */ -#undef HAVE_EWOULDBLOCK - /* Define to 1 if GCC 4.6 supported std::exception_ptr for the target */ #undef HAVE_EXCEPTION_PTR_SINCE_GCC46 diff --git a/libstdc++-v3/config/os/djgpp/error_constants.h b/libstdc++-v3/config/os/djgpp/error_constants.h index e0a67bc8d6d..8f947e69e37 100644 --- a/libstdc++-v3/config/os/djgpp/error_constants.h +++ b/libstdc++-v3/config/os/djgpp/error_constants.h @@ -48,7 +48,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION bad_address = EFAULT, bad_file_descriptor = EBADF, -#ifdef _GLIBCXX_HAVE_EBADMSG +#ifdef EBADMSG bad_message = EBADMSG, #endif @@ -68,7 +68,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION function_not_supported = ENOSYS, // host_unreachable = EHOSTUNREACH, -#ifdef _GLIBCXX_HAVE_EIDRM +#ifdef EIDRM identifier_removed = EIDRM, #endif @@ -86,13 +86,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // no_buffer_space = ENOBUFS, no_child_process = ECHILD, -#ifdef _GLIBCXX_HAVE_ENOLINK +#ifdef ENOLINK no_link = ENOLINK, #endif no_lock_available = ENOLCK, -#ifdef _GLIBCXX_HAVE_ENODATA +#ifdef ENODATA no_message_available = ENODATA, #endif @@ -100,7 +100,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // no_protocol_option = ENOPROTOOPT, no_space_on_device = ENOSPC, -#ifdef _GLIBCXX_HAVE_ENOSR +#ifdef ENOSR no_stream_resources = ENOSR, #endif @@ -111,18 +111,18 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION not_a_directory = ENOTDIR, // not_a_socket = ENOTSOCK, -#ifdef _GLIBCXX_HAVE_ENOSTR +#ifdef ENOSTR not_a_stream = ENOSTR, #endif // not_connected = ENOTCONN, not_enough_memory = ENOMEM, -#ifdef _GLIBCXX_HAVE_ENOTSUP +#ifdef ENOTSUP not_supported = ENOTSUP, #endif -#ifdef _GLIBCXX_HAVE_ECANCELED +#ifdef ECANCELED operation_canceled = ECANCELED, #endif @@ -131,13 +131,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // operation_not_supported = EOPNOTSUPP, // operation_would_block = EWOULDBLOCK, -#ifdef _GLIBCXX_HAVE_EOWNERDEAD +#ifdef EOWNERDEAD owner_dead = EOWNERDEAD, #endif permission_denied = EACCES, -#ifdef _GLIBCXX_HAVE_EPROTO +#ifdef EPROTO protocol_error = EPROTO, #endif @@ -147,15 +147,15 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION resource_unavailable_try_again = EAGAIN, result_out_of_range = ERANGE, -#ifdef _GLIBCXX_HAVE_ENOTRECOVERABLE +#ifdef ENOTRECOVERABLE state_not_recoverable = ENOTRECOVERABLE, #endif -#ifdef _GLIBCXX_HAVE_ETIME +#ifdef ETIME stream_timeout = ETIME, #endif -#ifdef _GLIBCXX_HAVE_ETXTBSY +#ifdef ETXTBSY text_file_busy = ETXTBSY, #endif @@ -165,7 +165,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION too_many_links = EMLINK, too_many_symbolic_link_levels = ELOOP, -#ifdef _GLIBCXX_HAVE_EOVERFLOW +#ifdef EOVERFLOW value_too_large = EOVERFLOW, #endif diff --git a/libstdc++-v3/config/os/mingw32-w64/error_constants.h b/libstdc++-v3/config/os/mingw32-w64/error_constants.h index 72422299def..3534c3e11b7 100644 --- a/libstdc++-v3/config/os/mingw32-w64/error_constants.h +++ b/libstdc++-v3/config/os/mingw32-w64/error_constants.h @@ -49,7 +49,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION argument_out_of_domain = EDOM, bad_address = EFAULT, bad_file_descriptor = EBADF, -#ifdef _GLIBCXX_HAVE_EBADMSG +#ifdef EBADMSG bad_message = EBADMSG, #endif broken_pipe = EPIPE, @@ -67,7 +67,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION filename_too_long = ENAMETOOLONG, function_not_supported = ENOSYS, host_unreachable = EHOSTUNREACH, -#ifdef _GLIBCXX_HAVE_EIDRM +#ifdef EIDRM identifier_removed = EIDRM, #endif illegal_byte_sequence = EILSEQ, @@ -82,24 +82,24 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION network_reset = ENETRESET, network_unreachable = ENETUNREACH, no_buffer_space = ENOBUFS, -#ifdef _GLIBCXX_HAVE_ECHILD +#ifdef ECHILD no_child_process = ECHILD, #endif -#ifdef _GLIBCXX_HAVE_ENOLINK +#ifdef ENOLINK no_link = ENOLINK, #endif no_lock_available = ENOLCK, -#ifdef _GLIBCXX_HAVE_ENODATA +#ifdef ENODATA no_message_available = ENODATA, #endif -#ifdef _GLIBCXX_HAVE_ENOMSG +#ifdef ENOMSG no_message = ENOMSG, #endif no_protocol_option = ENOPROTOOPT, -#ifdef _GLIBCXX_HAVE_ENOSPC +#ifdef ENOSPC no_space_on_device = ENOSPC, #endif -#ifdef _GLIBCXX_HAVE_ENOSR +#ifdef ENOSR no_stream_resources = ENOSR, #endif no_such_device_or_address = ENXIO, @@ -108,24 +108,24 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION no_such_process = ESRCH, not_a_directory = ENOTDIR, not_a_socket = ENOTSOCK, -#ifdef _GLIBCXX_HAVE_ENOSTR +#ifdef ENOSTR not_a_stream = ENOSTR, #endif not_connected = ENOTCONN, not_enough_memory = ENOMEM, -#ifdef _GLIBCXX_HAVE_ENOTSUP +#ifdef ENOTSUP not_supported = ENOTSUP, #endif operation_canceled = ECANCELED, operation_in_progress = EINPROGRESS, -#ifdef _GLIBCXX_HAVE_EPERM +#ifdef EPERM operation_not_permitted = EPERM, #endif operation_not_supported = EOPNOTSUPP, -#ifdef _GLIBCXX_HAVE_EWOULDBLOCK +#ifdef EWOULDBLOCK operation_would_block = EWOULDBLOCK, #endif -#ifdef _GLIBCXX_HAVE_EOWNERDEAD +#ifdef EOWNERDEAD owner_dead = EOWNERDEAD, #endif permission_denied = EACCES, @@ -135,23 +135,23 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION resource_deadlock_would_occur = EDEADLK, resource_unavailable_try_again = EAGAIN, result_out_of_range = ERANGE, -#ifdef _GLIBCXX_HAVE_ENOTRECOVERABLE +#ifdef ENOTRECOVERABLE state_not_recoverable = ENOTRECOVERABLE, #endif -#ifdef _GLIBCXX_HAVE_ETIME +#ifdef ETIME stream_timeout = ETIME, #endif -#ifdef _GLIBCXX_HAVE_ETXTBSY +#ifdef ETXTBSY text_file_busy = ETXTBSY, #endif -#ifdef _GLIBCXX_HAVE_ETIMEDOUT +#ifdef ETIMEDOUT timed_out = ETIMEDOUT, #endif too_many_files_open_in_system = ENFILE, too_many_files_open = EMFILE, too_many_links = EMLINK, too_many_symbolic_link_levels = ELOOP, -#ifdef _GLIBCXX_HAVE_EOVERFLOW +#ifdef EOVERFLOW value_too_large = EOVERFLOW, #endif wrong_protocol_type = EPROTOTYPE diff --git a/libstdc++-v3/config/os/mingw32/error_constants.h b/libstdc++-v3/config/os/mingw32/error_constants.h index 68ac72a78fb..2222c5227c4 100644 --- a/libstdc++-v3/config/os/mingw32/error_constants.h +++ b/libstdc++-v3/config/os/mingw32/error_constants.h @@ -78,7 +78,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // network_reset = ENETRESET, // network_unreachable = ENETUNREACH, // no_buffer_space = ENOBUFS, -#ifdef _GLIBCXX_HAVE_ECHILD +#ifdef ECHILD no_child_process = ECHILD, #endif // no_link = ENOLINK, @@ -86,7 +86,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // no_message_available = ENODATA, // no_message = ENOMSG, // no_protocol_option = ENOPROTOOPT, -#ifdef _GLIBCXX_HAVE_ENOSPC +#ifdef ENOSPC no_space_on_device = ENOSPC, #endif // no_stream_resources = ENOSR, @@ -99,16 +99,16 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // not_a_stream = ENOSTR, // not_connected = ENOTCONN, not_enough_memory = ENOMEM, -#ifdef _GLIBCXX_HAVE_ENOTSUP +#ifdef ENOTSUP not_supported = ENOTSUP, #endif // operation_canceled = ECANCELED, // operation_in_progress = EINPROGRESS, -#ifdef _GLIBCXX_HAVE_EPERM +#ifdef EPERM operation_not_permitted = EPERM, #endif // operation_not_supported = EOPNOTSUPP, -#ifdef _GLIBCXX_HAVE_EWOULDBLOCK +#ifdef EWOULDBLOCK operation_would_block = EWOULDBLOCK, #endif // owner_dead = EOWNERDEAD, @@ -122,14 +122,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // state_not_recoverable = ENOTRECOVERABLE, // stream_timeout = ETIME, // text_file_busy = ETXTBSY, -#ifdef _GLIBCXX_HAVE_ETIMEDOUT +#ifdef ETIMEDOUT timed_out = ETIMEDOUT, #endif too_many_files_open_in_system = ENFILE, too_many_files_open = EMFILE, too_many_links = EMLINK // too_many_symbolic_link_levels = ELOOP, -#ifdef _GLIBCXX_HAVE_EOVERFLOW +#ifdef EOVERFLOW , value_too_large = EOVERFLOW #endif diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index e7a069c567e..766a0a8d504 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -18971,637 +18971,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOWNERDEAD" >&5 -$as_echo_n "checking for EOWNERDEAD... " >&6; } -if ${glibcxx_cv_system_error1+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = EOWNERDEAD; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error1=yes -else - glibcxx_cv_system_error1=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error1" >&5 -$as_echo "$glibcxx_cv_system_error1" >&6; } -if test x"$glibcxx_cv_system_error1" = x"yes"; then - -$as_echo "#define HAVE_EOWNERDEAD 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOTRECOVERABLE" >&5 -$as_echo_n "checking for ENOTRECOVERABLE... " >&6; } -if ${glibcxx_cv_system_error2+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = ENOTRECOVERABLE; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error2=yes -else - glibcxx_cv_system_error2=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error2" >&5 -$as_echo "$glibcxx_cv_system_error2" >&6; } -if test x"$glibcxx_cv_system_error2" = x"yes"; then - -$as_echo "#define HAVE_ENOTRECOVERABLE 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK" >&5 -$as_echo_n "checking for ENOLINK... " >&6; } -if ${glibcxx_cv_system_error3+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = ENOLINK; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error3=yes -else - glibcxx_cv_system_error3=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error3" >&5 -$as_echo "$glibcxx_cv_system_error3" >&6; } -if test x"$glibcxx_cv_system_error3" = x"yes"; then - -$as_echo "#define HAVE_ENOLINK 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EPROTO" >&5 -$as_echo_n "checking for EPROTO... " >&6; } -if ${glibcxx_cv_system_error4+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = EPROTO; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error4=yes -else - glibcxx_cv_system_error4=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error4" >&5 -$as_echo "$glibcxx_cv_system_error4" >&6; } -if test x"$glibcxx_cv_system_error4" = x"yes"; then - -$as_echo "#define HAVE_EPROTO 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENODATA" >&5 -$as_echo_n "checking for ENODATA... " >&6; } -if ${glibcxx_cv_system_error5+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = ENODATA; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error5=yes -else - glibcxx_cv_system_error5=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error5" >&5 -$as_echo "$glibcxx_cv_system_error5" >&6; } -if test x"$glibcxx_cv_system_error5" = x"yes"; then - -$as_echo "#define HAVE_ENODATA 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOSR" >&5 -$as_echo_n "checking for ENOSR... " >&6; } -if ${glibcxx_cv_system_error6+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = ENOSR; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error6=yes -else - glibcxx_cv_system_error6=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error6" >&5 -$as_echo "$glibcxx_cv_system_error6" >&6; } -if test x"$glibcxx_cv_system_error6" = x"yes"; then - -$as_echo "#define HAVE_ENOSR 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOSTR" >&5 -$as_echo_n "checking for ENOSTR... " >&6; } -if ${glibcxx_cv_system_error7+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = ENOSTR; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error7=yes -else - glibcxx_cv_system_error7=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error7" >&5 -$as_echo "$glibcxx_cv_system_error7" >&6; } -if test x"$glibcxx_cv_system_error7" = x"yes"; then - -$as_echo "#define HAVE_ENOSTR 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ETIME" >&5 -$as_echo_n "checking for ETIME... " >&6; } -if ${glibcxx_cv_system_error8+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = ETIME; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error8=yes -else - glibcxx_cv_system_error8=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error8" >&5 -$as_echo "$glibcxx_cv_system_error8" >&6; } -if test x"$glibcxx_cv_system_error8" = x"yes"; then - -$as_echo "#define HAVE_ETIME 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBADMSG" >&5 -$as_echo_n "checking for EBADMSG... " >&6; } -if ${glibcxx_cv_system_error9+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = EBADMSG; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error9=yes -else - glibcxx_cv_system_error9=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error9" >&5 -$as_echo "$glibcxx_cv_system_error9" >&6; } -if test x"$glibcxx_cv_system_error9" = x"yes"; then - -$as_echo "#define HAVE_EBADMSG 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECANCELED" >&5 -$as_echo_n "checking for ECANCELED... " >&6; } -if ${glibcxx_cv_system_error10+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = ECANCELED; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error10=yes -else - glibcxx_cv_system_error10=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error10" >&5 -$as_echo "$glibcxx_cv_system_error10" >&6; } -if test x"$glibcxx_cv_system_error10" = x"yes"; then - -$as_echo "#define HAVE_ECANCELED 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW" >&5 -$as_echo_n "checking for EOVERFLOW... " >&6; } -if ${glibcxx_cv_system_error11+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = EOVERFLOW; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error11=yes -else - glibcxx_cv_system_error11=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error11" >&5 -$as_echo "$glibcxx_cv_system_error11" >&6; } -if test x"$glibcxx_cv_system_error11" = x"yes"; then - -$as_echo "#define HAVE_EOVERFLOW 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOTSUP" >&5 -$as_echo_n "checking for ENOTSUP... " >&6; } -if ${glibcxx_cv_system_error12+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = ENOTSUP; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error12=yes -else - glibcxx_cv_system_error12=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error12" >&5 -$as_echo "$glibcxx_cv_system_error12" >&6; } -if test x"$glibcxx_cv_system_error12" = x"yes"; then - -$as_echo "#define HAVE_ENOTSUP 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EIDRM" >&5 -$as_echo_n "checking for EIDRM... " >&6; } -if ${glibcxx_cv_system_error13+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = EIDRM; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error13=yes -else - glibcxx_cv_system_error13=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error13" >&5 -$as_echo "$glibcxx_cv_system_error13" >&6; } -if test x"$glibcxx_cv_system_error13" = x"yes"; then - -$as_echo "#define HAVE_EIDRM 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ETXTBSY" >&5 -$as_echo_n "checking for ETXTBSY... " >&6; } -if ${glibcxx_cv_system_error14+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = ETXTBSY; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error14=yes -else - glibcxx_cv_system_error14=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error14" >&5 -$as_echo "$glibcxx_cv_system_error14" >&6; } -if test x"$glibcxx_cv_system_error14" = x"yes"; then - -$as_echo "#define HAVE_ETXTBSY 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHILD" >&5 -$as_echo_n "checking for ECHILD... " >&6; } -if ${glibcxx_cv_system_error15+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = ECHILD; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error15=yes -else - glibcxx_cv_system_error15=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error15" >&5 -$as_echo "$glibcxx_cv_system_error15" >&6; } -if test x"$glibcxx_cv_system_error15" = x"yes"; then - -$as_echo "#define HAVE_ECHILD 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOSPC" >&5 -$as_echo_n "checking for ENOSPC... " >&6; } -if ${glibcxx_cv_system_error16+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = ENOSPC; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error16=yes -else - glibcxx_cv_system_error16=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error16" >&5 -$as_echo "$glibcxx_cv_system_error16" >&6; } -if test x"$glibcxx_cv_system_error16" = x"yes"; then - -$as_echo "#define HAVE_ENOSPC 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EPERM" >&5 -$as_echo_n "checking for EPERM... " >&6; } -if ${glibcxx_cv_system_error17+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = EPERM; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error17=yes -else - glibcxx_cv_system_error17=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error17" >&5 -$as_echo "$glibcxx_cv_system_error17" >&6; } -if test x"$glibcxx_cv_system_error17" = x"yes"; then - -$as_echo "#define HAVE_EPERM 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ETIMEDOUT" >&5 -$as_echo_n "checking for ETIMEDOUT... " >&6; } -if ${glibcxx_cv_system_error18+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = ETIMEDOUT; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error18=yes -else - glibcxx_cv_system_error18=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error18" >&5 -$as_echo "$glibcxx_cv_system_error18" >&6; } -if test x"$glibcxx_cv_system_error18" = x"yes"; then - -$as_echo "#define HAVE_ETIMEDOUT 1" >>confdefs.h - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EWOULDBLOCK" >&5 -$as_echo_n "checking for EWOULDBLOCK... " >&6; } -if ${glibcxx_cv_system_error19+:} false; then : - $as_echo_n "(cached) " >&6 -else - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <errno.h> -int -main () -{ -int i = EWOULDBLOCK; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - glibcxx_cv_system_error19=yes -else - glibcxx_cv_system_error19=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_system_error19" >&5 -$as_echo "$glibcxx_cv_system_error19" >&6; } -if test x"$glibcxx_cv_system_error19" = x"yes"; then - -$as_echo "#define HAVE_EWOULDBLOCK 1" >>confdefs.h - -fi - - - - # Test uchar.h. for ac_header in uchar.h do :
reply other threads:[~2021-04-01 15:01 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210401150156.44EEF3858028@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).