2003-08-06 01:32:23 +02:00
|
|
|
/* config.h.in. Generated from configure.ac by autoheader. */
|
2000-06-06 22:26:13 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `acosf' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_ACOSF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `acosl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_ACOSL
|
|
|
|
|
2016-09-09 23:22:15 +02:00
|
|
|
/* Define to 1 if you have the `aligned_alloc' function. */
|
|
|
|
#undef HAVE_ALIGNED_ALLOC
|
|
|
|
|
Use autoconf to check for features needed by Networking TS
* config.h.in: Regenerate.
* configure: Regenerate.
* configure.ac: Check for headers used by Networking TS.
* include/experimental/executor: Include <condition_variable>
instead of <mutex>.
* include/experimental/internet: Use autoconf macros for available
headers. Include <sys/socket.h> for. Remove <cstring> and use
__builtin_memcpy and __builtin_strchr.
(resolver_errc) [!_GLIBCXX_HAVE_NETDB_H]: Do not define.
(address_v4::to_string, address_v6::to_string)
[!_GLIBCXX_HAVE_ARPA_INET_H]: Likewise.
(basic_resolver_results) [!_GLIBCXX_HAVE_NETDB_H]: Make private
constructors report errors.
[!_GLIBCXX_HAVE_NETINET_TCP_H] (tcp::no_delay): Do not define.
* include/experimental/io_context: Likewise.
* include/experimental/socket: Likewise.
[!_GLIBCXX_HAVE_SYS_SOCKET_H, !_GLIBCXX_HAVE_POLL_H] (socket_base): Do
not define nested types when relevant header not available.
(__socket_impl::native_non_blocking) [!_GLIBCXX_HAVE_FCNTL_H]: Report
an error.
(__basic_socket_impl::open, __basic_socket_impl::local_endpoint)
(__basic_socket_impl::bind) [!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
(__basic_socket_impl::io_control) [!_GLIBCXX_HAVE_SYS_IOCTL_H]:
Likewise.
(basic_socket::at_mark, basic_socket::shutdown)
(basic_socket::remote_endpoint, basic_socket::connect)
(basic_socket::async_connect) [!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
(basic_socket::available) [_GLIBCXX_HAVE_SYS_IOCTL_H]: Check macro
for <sys/ioctl.h> availability.
(basic_socket::wait) [!_GLIBCXX_HAVE_POLL_H]: Likewise.
(basic_datagram_socket::receive, basic_datagram_socket::async_receive)
(basic_datagram_socket::receive_from)
(basic_datagram_socket::async_receive_from)
(basic_datagram_socket::send, basic_datagram_socket::async_send)
(basic_datagram_socket::send_to, basic_datagram_socket::async_send_to)
[!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
(basic_stream_socket::receive, basic_stream_socket::async_receive)
(basic_stream_socket::send, basic_stream_socket::async_send)
[!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
(basic_socket_acceptor::listen, basic_socket_acceptor::accept)
(basic_socket_acceptor::async_accept) [!_GLIBCXX_HAVE_SYS_SOCKET_H]:
Likewise.
(basic_socket_acceptor::wait) [!_GLIBCXX_HAVE_POLL_H]: Likewise.
From-SVN: r265203
2018-10-16 18:12:32 +02:00
|
|
|
/* Define to 1 if you have the <arpa/inet.h> header file. */
|
|
|
|
#undef HAVE_ARPA_INET_H
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `asinf' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_ASINF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `asinl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_ASINL
|
|
|
|
|
2009-01-07 23:49:29 +01:00
|
|
|
/* Define to 1 if the target assembler supports .symver directive. */
|
|
|
|
#undef HAVE_AS_SYMVER_DIRECTIVE
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `atan2f' function. */
|
2001-07-25 10:06:47 +02:00
|
|
|
#undef HAVE_ATAN2F
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `atan2l' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_ATAN2L
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `atanf' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_ATANF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `atanl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_ATANL
|
|
|
|
|
PR libstdc++/67843 set shared_ptr lock policy at build-time
This resolves a longstanding issue where the lock policy for shared_ptr
reference counting depends on compilation options when the header is
included, so that different -march options can cause ABI changes. For
example, objects compiled with -march=armv7 will use atomics to
synchronize reference counts, and objects compiled with -march=armv5t
will use a mutex. That means the shared_ptr control block will have a
different layout in different objects, causing ODR violations and
undefined behaviour. This was the root cause of PR libstdc++/42734 as
well as PR libstdc++/67843.
The solution is to decide on the lock policy at build time, when
libstdc++ is configured. The configure script checks for the
availability of the necessary atomic built-ins for the target and fixes
that choice permanently. Different -march flags used to compile user
code will not cause changes to the lock policy. This results in an ABI
change for certain compilations, but only where there was already an ABI
incompatibility between the libstdc++.so library and objects built with
an incompatible -march option. In general, this means a more stable ABI
that isn't silently altered when -march flags make addition atomic ops
available.
To force a target to use "atomic" or "mutex" the new configure option
--with-libstdcxx-lock-policy can be used.
In order to turn ODR violations into linker errors, the uses of
shared_ptr in filesystem directory iterators have been replaced
with __shared_ptr, and explicit instantiations are declared. This
ensures that object files using those types cannot link to libstdc++
libs unless they use the same lock policy.
PR libstdc++/67843
* acinclude.m4 (GLIBCXX_ENABLE_LOCK_POLICY): Add new macro
that defines _GLIBCXX_HAVE_ATOMIC_LOCK_POLICY.
* config.h.in: Regenerate.
* configure: Regenerate.
* configure.ac: Use GLIBCXX_ENABLE_LOCK_POLICY.
* doc/xml/manual/configure.xml: Document new configure option.
* include/bits/fs_dir.h (directory_iterator): Use __shared_ptr
instead of shared_ptr.
(recursive_directory_iterator): Likewise.
(__shared_ptr<_Dir>): Add explicit instantiation declaration.
(__shared_ptr<recursive_directory_iterator::_Dir_stack>): Likewise.
* include/bits/shared_ptr_base.h (__allocate_shared, __make_shared):
Add default template argument for _Lock_policy template parameter.
* include/ext/concurrence.h (__default_lock_policy): Check macro
_GLIBCXX_HAVE_ATOMIC_LOCK_POLICY instead of checking if the current
target supports the builtins for compare-and-swap.
* src/filesystem/std-dir.cc (__shared_ptr<_Dir>): Add explicit
instantiation definition.
(__shared_ptr<recursive_directory_iterator::_Dir_stack>): Likewise.
(directory_iterator, recursive_directory_iterator): Use __make_shared
instead of make_shared.
From-SVN: r266533
2018-11-28 00:25:56 +01:00
|
|
|
/* Defined if shared_ptr reference counting should use atomic operations. */
|
|
|
|
#undef HAVE_ATOMIC_LOCK_POLICY
|
|
|
|
|
2013-02-11 18:50:13 +01:00
|
|
|
/* Define to 1 if you have the `at_quick_exit' function. */
|
|
|
|
#undef HAVE_AT_QUICK_EXIT
|
|
|
|
|
2007-08-22 03:26:43 +02:00
|
|
|
/* Define to 1 if the target assembler supports thread-local storage. */
|
|
|
|
#undef HAVE_CC_TLS
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `ceilf' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_CEILF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `ceill' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_CEILL
|
|
|
|
|
2005-01-25 16:47:35 +01:00
|
|
|
/* Define to 1 if you have the <complex.h> header file. */
|
|
|
|
#undef HAVE_COMPLEX_H
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `cosf' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_COSF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `coshf' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_COSHF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `coshl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_COSHL
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `cosl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_COSL
|
|
|
|
|
2015-05-14 13:47:19 +02:00
|
|
|
/* Define to 1 if you have the <dirent.h> header file. */
|
2015-04-30 21:11:52 +02:00
|
|
|
#undef HAVE_DIRENT_H
|
|
|
|
|
2007-05-28 19:02:30 +02:00
|
|
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
|
|
|
#undef HAVE_DLFCN_H
|
|
|
|
|
2007-09-07 05:01:53 +02:00
|
|
|
/* Define if EBADMSG exists. */
|
|
|
|
#undef HAVE_EBADMSG
|
|
|
|
|
2007-09-12 00:32:51 +02:00
|
|
|
/* Define if ECANCELED exists. */
|
|
|
|
#undef HAVE_ECANCELED
|
|
|
|
|
configure: Regenerated.
* configure: Regenerated.
* config.h.in: Regenerated.
* acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR) Add
checks for ECHILD, ENOSPC, EPERM, ETIMEDOUT, and
EWOULDBLOCK.
* config/os/mingw32/error_constants.h (errc): Add
enumerator values no_child_process, no_space_on_device,
not_supported, operation_not_permitted, operation_would_block,
timed_out, and value_too_large,
From-SVN: r178257
2011-08-29 21:57:24 +02:00
|
|
|
/* Define if ECHILD exists. */
|
|
|
|
#undef HAVE_ECHILD
|
|
|
|
|
2008-03-16 18:13:04 +01:00
|
|
|
/* Define if EIDRM exists. */
|
|
|
|
#undef HAVE_EIDRM
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <endian.h> header file. */
|
|
|
|
#undef HAVE_ENDIAN_H
|
|
|
|
|
2007-08-29 21:53:50 +02:00
|
|
|
/* Define if ENODATA exists. */
|
|
|
|
#undef HAVE_ENODATA
|
|
|
|
|
2007-08-24 17:19:36 +02:00
|
|
|
/* Define if ENOLINK exists. */
|
|
|
|
#undef HAVE_ENOLINK
|
|
|
|
|
configure: Regenerated.
* configure: Regenerated.
* config.h.in: Regenerated.
* acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR) Add
checks for ECHILD, ENOSPC, EPERM, ETIMEDOUT, and
EWOULDBLOCK.
* config/os/mingw32/error_constants.h (errc): Add
enumerator values no_child_process, no_space_on_device,
not_supported, operation_not_permitted, operation_would_block,
timed_out, and value_too_large,
From-SVN: r178257
2011-08-29 21:57:24 +02:00
|
|
|
/* Define if ENOSPC exists. */
|
|
|
|
#undef HAVE_ENOSPC
|
|
|
|
|
2007-08-29 21:53:50 +02:00
|
|
|
/* Define if ENOSR exists. */
|
|
|
|
#undef HAVE_ENOSR
|
|
|
|
|
|
|
|
/* Define if ENOSTR exists. */
|
|
|
|
#undef HAVE_ENOSTR
|
|
|
|
|
2007-08-23 18:16:41 +02:00
|
|
|
/* Define if ENOTRECOVERABLE exists. */
|
|
|
|
#undef HAVE_ENOTRECOVERABLE
|
|
|
|
|
2008-02-14 18:03:02 +01:00
|
|
|
/* Define if ENOTSUP exists. */
|
|
|
|
#undef HAVE_ENOTSUP
|
|
|
|
|
2007-10-18 17:22:58 +02:00
|
|
|
/* Define if EOVERFLOW exists. */
|
|
|
|
#undef HAVE_EOVERFLOW
|
|
|
|
|
2007-08-23 18:16:41 +02:00
|
|
|
/* Define if EOWNERDEAD exists. */
|
|
|
|
#undef HAVE_EOWNERDEAD
|
|
|
|
|
configure: Regenerated.
* configure: Regenerated.
* config.h.in: Regenerated.
* acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR) Add
checks for ECHILD, ENOSPC, EPERM, ETIMEDOUT, and
EWOULDBLOCK.
* config/os/mingw32/error_constants.h (errc): Add
enumerator values no_child_process, no_space_on_device,
not_supported, operation_not_permitted, operation_would_block,
timed_out, and value_too_large,
From-SVN: r178257
2011-08-29 21:57:24 +02:00
|
|
|
/* Define if EPERM exists. */
|
|
|
|
#undef HAVE_EPERM
|
|
|
|
|
2007-08-24 17:19:36 +02:00
|
|
|
/* Define if EPROTO exists. */
|
|
|
|
#undef HAVE_EPROTO
|
|
|
|
|
2007-08-29 21:53:50 +02:00
|
|
|
/* Define if ETIME exists. */
|
|
|
|
#undef HAVE_ETIME
|
|
|
|
|
configure: Regenerated.
* configure: Regenerated.
* config.h.in: Regenerated.
* acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR) Add
checks for ECHILD, ENOSPC, EPERM, ETIMEDOUT, and
EWOULDBLOCK.
* config/os/mingw32/error_constants.h (errc): Add
enumerator values no_child_process, no_space_on_device,
not_supported, operation_not_permitted, operation_would_block,
timed_out, and value_too_large,
From-SVN: r178257
2011-08-29 21:57:24 +02:00
|
|
|
/* Define if ETIMEDOUT exists. */
|
|
|
|
#undef HAVE_ETIMEDOUT
|
|
|
|
|
2008-03-16 18:13:04 +01:00
|
|
|
/* Define if ETXTBSY exists. */
|
|
|
|
#undef HAVE_ETXTBSY
|
|
|
|
|
configure: Regenerated.
* configure: Regenerated.
* config.h.in: Regenerated.
* acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR) Add
checks for ECHILD, ENOSPC, EPERM, ETIMEDOUT, and
EWOULDBLOCK.
* config/os/mingw32/error_constants.h (errc): Add
enumerator values no_child_process, no_space_on_device,
not_supported, operation_not_permitted, operation_would_block,
timed_out, and value_too_large,
From-SVN: r178257
2011-08-29 21:57:24 +02:00
|
|
|
/* Define if EWOULDBLOCK exists. */
|
|
|
|
#undef HAVE_EWOULDBLOCK
|
|
|
|
|
2017-01-04 11:54:59 +01:00
|
|
|
/* Define to 1 if GCC 4.6 supported std::exception_ptr for the target */
|
|
|
|
#undef HAVE_EXCEPTION_PTR_SINCE_GCC46
|
|
|
|
|
2010-01-13 12:07:44 +01:00
|
|
|
/* Define to 1 if you have the <execinfo.h> header file. */
|
|
|
|
#undef HAVE_EXECINFO_H
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `expf' function. */
|
2002-03-23 04:19:03 +01:00
|
|
|
#undef HAVE_EXPF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `expl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_EXPL
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `fabsf' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_FABSF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `fabsl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_FABSL
|
|
|
|
|
2015-04-30 21:11:52 +02:00
|
|
|
/* Define to 1 if you have the <fcntl.h> header file. */
|
|
|
|
#undef HAVE_FCNTL_H
|
|
|
|
|
2006-01-26 12:29:20 +01:00
|
|
|
/* Define to 1 if you have the <fenv.h> header file. */
|
|
|
|
#undef HAVE_FENV_H
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `finite' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_FINITE
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `finitef' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_FINITEF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `finitel' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_FINITEL
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <float.h> header file. */
|
|
|
|
#undef HAVE_FLOAT_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `floorf' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_FLOORF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `floorl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_FLOORL
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `fmodf' function. */
|
2000-06-14 03:16:03 +02:00
|
|
|
#undef HAVE_FMODF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `fmodl' function. */
|
2000-06-14 03:16:03 +02:00
|
|
|
#undef HAVE_FMODL
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `fpclass' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_FPCLASS
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <fp.h> header file. */
|
|
|
|
#undef HAVE_FP_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `frexpf' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_FREXPF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `frexpl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_FREXPL
|
|
|
|
|
2006-07-21 23:11:46 +02:00
|
|
|
/* Define if _Unwind_GetIPInfo is available. */
|
|
|
|
#undef HAVE_GETIPINFO
|
|
|
|
|
2016-09-30 20:28:53 +02:00
|
|
|
/* Define if gets is available in <stdio.h> before C++14. */
|
2012-03-02 08:13:55 +01:00
|
|
|
#undef HAVE_GETS
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `hypot' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_HYPOT
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `hypotf' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_HYPOTF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `hypotl' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_HYPOTL
|
|
|
|
|
2007-01-29 19:22:37 +01:00
|
|
|
/* Define if you have the iconv() function. */
|
2000-06-02 09:24:15 +02:00
|
|
|
#undef HAVE_ICONV
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <ieeefp.h> header file. */
|
|
|
|
#undef HAVE_IEEEFP_H
|
|
|
|
|
acinclude.m4 (_GLIBCXX_USE_LONG_LONG, [...]): Use long form of AC_DEFINE ...
2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
* acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
_GLIBCXX_USE_WCHAR_T, _GLIBCXX_USE_C99, _GLIBCXX_USE_C99_MATH,
_GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_RES_LIMITS, _GLIBCXX_CONCEPT_CHECKS,
_GLIBCXX_SYMVER, _GLIBCXX_USE_LFS, _GLIBCXX_FULLY_DYNAMIC_STRING,
_GLIBCXX_USE_NLS, HAVE_GTHR_DEFAULT, HAVE_MBSTATE_T, HAVE_POLL,
HAVE_S_ISREG, HAVE_S_IFREG, HAVE_WRITEV, HAVE_INT64_T,
HAVE_LC_MESSAGES): Use long form of AC_DEFINE ...
* acconfig.h: ... to eliminate them from here.
(_GLIBCXX_ASM_SYMVER): Move definition below @BOTTOM@.
* config.h.in, configure: Regenerate.
From-SVN: r97685
2005-04-06 03:32:03 +02:00
|
|
|
/* Define if int64_t is available in <stdint.h>. */
|
|
|
|
#undef HAVE_INT64_T
|
|
|
|
|
2008-08-06 14:25:00 +02:00
|
|
|
/* Define if int64_t is a long. */
|
|
|
|
#undef HAVE_INT64_T_LONG
|
|
|
|
|
|
|
|
/* Define if int64_t is a long long. */
|
|
|
|
#undef HAVE_INT64_T_LONG_LONG
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
|
|
#undef HAVE_INTTYPES_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `isinf' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_ISINF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `isinff' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_ISINFF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `isinfl' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_ISINFL
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `isnan' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_ISNAN
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `isnanf' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_ISNANF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `isnanl' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_ISNANL
|
|
|
|
|
2005-03-24 06:45:45 +01:00
|
|
|
/* Defined if iswblank exists. */
|
2003-10-16 22:33:43 +02:00
|
|
|
#undef HAVE_ISWBLANK
|
|
|
|
|
acinclude.m4 (_GLIBCXX_USE_LONG_LONG, [...]): Use long form of AC_DEFINE ...
2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
* acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
_GLIBCXX_USE_WCHAR_T, _GLIBCXX_USE_C99, _GLIBCXX_USE_C99_MATH,
_GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_RES_LIMITS, _GLIBCXX_CONCEPT_CHECKS,
_GLIBCXX_SYMVER, _GLIBCXX_USE_LFS, _GLIBCXX_FULLY_DYNAMIC_STRING,
_GLIBCXX_USE_NLS, HAVE_GTHR_DEFAULT, HAVE_MBSTATE_T, HAVE_POLL,
HAVE_S_ISREG, HAVE_S_IFREG, HAVE_WRITEV, HAVE_INT64_T,
HAVE_LC_MESSAGES): Use long form of AC_DEFINE ...
* acconfig.h: ... to eliminate them from here.
(_GLIBCXX_ASM_SYMVER): Move definition below @BOTTOM@.
* config.h.in, configure: Regenerate.
From-SVN: r97685
2005-04-06 03:32:03 +02:00
|
|
|
/* Define if LC_MESSAGES is available in <locale.h>. */
|
|
|
|
#undef HAVE_LC_MESSAGES
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `ldexpf' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_LDEXPF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `ldexpl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_LDEXPL
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <libintl.h> header file. */
|
|
|
|
#undef HAVE_LIBINTL_H
|
|
|
|
|
2004-04-01 11:16:36 +02:00
|
|
|
/* Only used in build directory testsuite_hooks.h. */
|
|
|
|
#undef HAVE_LIMIT_AS
|
|
|
|
|
|
|
|
/* Only used in build directory testsuite_hooks.h. */
|
|
|
|
#undef HAVE_LIMIT_DATA
|
|
|
|
|
|
|
|
/* Only used in build directory testsuite_hooks.h. */
|
|
|
|
#undef HAVE_LIMIT_FSIZE
|
|
|
|
|
|
|
|
/* Only used in build directory testsuite_hooks.h. */
|
|
|
|
#undef HAVE_LIMIT_RSS
|
|
|
|
|
|
|
|
/* Only used in build directory testsuite_hooks.h. */
|
|
|
|
#undef HAVE_LIMIT_VMEM
|
|
|
|
|
2018-06-18 18:01:24 +02:00
|
|
|
/* Define if link is available in <unistd.h>. */
|
PR libstdc++/78870 support std::filesystem on Windows
PR libstdc++/78870 support std::filesystem on Windows
* config.h.in: Regenerate.
* configure: Regenerate.
* configure.ac: Check for link, readlink and symlink.
* include/bits/fs_path.h (path::operator/=(const path&)): Move
definition out of class body.
(path::is_absolute(), path::_M_append(path)): Likewise.
(operator<<(basic_ostream, const path&)): Use std::quoted directly.
(operator>>(basic_istream, path&)): Likewise.
(u8path): Reorder definitions and fix Windows implementation.
(path::is_absolute()): Define inline and fix for Windows.
[!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
Define POSIX version inline.
(path::_M_append(path)): Define inline.
* include/experimental/bits/fs_path.h (path::is_absolute()): Move
definition out of class body.
(operator<<(basic_ostream, const path&)): Fix type of delimiter and
escape characters.
(operator>>(basic_istream, path&)): Likewise.
(path::is_absolute()): Define inline and fix for Windows.
* src/filesystem/dir-common.h (__gnu_posix): New namespace.
(__gnu_posix::char_type, __gnu_posix::DIR, __gnu_posix::dirent)
(__gnu_posix::opendir, __gnu_posix::readdir, __gnu_posix::closedir):
Define as adaptors for Windows functions/types or as
using-declarations for POSIX functions/types.
(_Dir_base, get_file_type): Qualify names to use declarations from
__gnu_posix namespace.
(_Dir_base::is_dor_or_dotdot): New helper functions.
* src/filesystem/dir.cc (_Dir, recursive_directory_iterator): Qualify
names to use declarations from __gnu_posix namespace.
* src/filesystem/ops-common.h (__gnu_posix): New nested namespace.
(__gnu_posix::open, __gnu_posix::close, __gnu_posix::stat_type)
(__gnu_posix::stat, __gnu_posix::lstat, __gnu_posix::mode_t)
(__gnu_posix::chmod, __gnu_posix::mkdir, __gnu_posix::getcwd)
(__gnu_posix::chdir, __gnu_posix::utimbuf, __gnu_posix::utime)
(__gnu_posix::rename, __gnu_posix::truncate, __gnu_posix::char_type):
Define as adaptors for Windows functions/types or as
using-declarations for POSIX functions/types.
(stat_type, do_copy_file): Qualify names to use declarations from
__gnu_posix namespace.
(do_space): Declare new function.
(make_file_type): Only use S_ISLNK if defined.
* src/filesystem/ops.cc (char_ptr, filesystem::canonical): Use
path::value_type not char.
(filesystem::copy, create_dir, filesystem::create_directory): Qualify
names to use declarations from __gnu_posix namespace.
(filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
add implementation for Windows.
(filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
(filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
[!_PC_PATH_MAX]: Don't use pathconf.
[PATH_MAX]: Use if defined.
(filesystem::current_path(const path&, error_code&))
(filesystem::equivalent, do_stat, filesystem::hard_link_count)
(filesystem::last_write_time, filesystem::permissions): Use names
from __gnu_posix.
(filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
(filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
implementation for Windows.
(filesystem::rename, filesystem::resize_file): Use names from
__gnu_posix.
(filesystem::space): Use do_space.
[_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Get absolute path to directory.
(filesystem::status, filesystem::symlink_status): Use names from
__gnu_posix.
(filesystem::temp_directory_path): Add implementation for Windows.
* src/filesystem/path.cc (dot): Define constant.
(path::replace_extension): Use dot.
(path::_M_find_extension): Likewise. Use path::string_type not
std::string.
(path::_M_split_cmpts): Use dot.
(filesystem_error::_M_get_what): Use u8string() not native().
* src/filesystem/std-dir.cc (_Dir, recursive_directory_iterator):
Qualify names to use declarations from __gnu_posix namespace.
* src/filesystem/std-ops.cc (filesystem::absolute(const path&)): Use
correct error_code.
(filesystem::absolute(const path&, error_code&)): Add implementation
for Windows.
(char_ptr, filesystem::canonical): Use path::value_type not char.
(do_copy_file): Use names from __gnu_posix.
[_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Do not use fchmod, fchmodat or
sendfile.
(filesystem::copy, create_dir, filesystem::create_directory): Qualify
names to use declarations from __gnu_posix namespace.
(filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
add implementation for Windows.
(filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
(filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
[!_PC_PATH_MAX]: Don't use pathconf.
[PATH_MAX]: Use if defined.
(filesystem::current_path(const path&, error_code&))
(filesystem::equivalent, do_stat, filesystem::hard_link_count)
(filesystem::last_write_time, filesystem::permissions): Use names
from __gnu_posix.
(filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
(filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
implementation for Windows.
(filesystem::rename, filesystem::resize_file): Use names from
__gnu_posix.
(do_space): Define.
(filesystem::space): Use do_space.
(filesystem::status, filesystem::symlink_status): Use names from
__gnu_posix.
(filesystem::temp_directory_path): Add implementation for Windows.
* src/filesystem/std-path.cc
[_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
Define for Windows.
(dot): Define constant.
(path::replace_extension, is_dot): Use dot.
(path::lexically_normal): Check _M_type instead of calling
non-existent function.
(path::_M_find_extension): Use dot. Use path::string_type not
std::string.
(path::_M_split_cmpts): Use dot.
(filesystem_error::_M_get_what): Use u8string() not native().
* testsuite/27_io/filesystem/iterators/directory_iterator.cc: Do not
use symlinks.
* testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
Likewise.
* testsuite/27_io/filesystem/operations/absolute.cc: Use
__gnu_test::root_path() instead of "/" and add Windows-specific tests.
* testsuite/27_io/filesystem/operations/canonical.cc: Use
path::string() to get narrow string, not path::native().
* testsuite/27_io/filesystem/operations/copy.cc: Construct fstreams
with std::filesystem::path not std::basic_string.
* testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
* testsuite/27_io/filesystem/operations/exists.cc: Use
__gnu_test::root_path() instead of "/".
* testsuite/27_io/filesystem/operations/is_empty.cc: Construct
fstreams with std::filesystem::path not std::basic_string.
* testsuite/27_io/filesystem/operations/last_write_time.cc: Use
path::string() to get narrow string.
* testsuite/27_io/filesystem/operations/space.cc: Check results for
errors, expect sensible values otherwise.
* testsuite/27_io/filesystem/operations/temp_directory_path.cc: Add
helpers for adjusting the environment on Windows.
* testsuite/27_io/filesystem/path/append/path.cc: Test
Windows-specific behaviour.
* testsuite/27_io/filesystem/path/construct/format.cc: Fix creation
of path::string_type objects.
* testsuite/27_io/filesystem/path/construct/locale.cc: Compare native
string to wide string on Windows.
* testsuite/27_io/filesystem/path/decompose/root_directory.cc: Allow
for backslash as root-directory.
* testsuite/27_io/filesystem/path/decompose/stem.cc: Use
path::string() to get narrow string.
* testsuite/27_io/filesystem/path/itr/traversal.cc: Test Windows-style
paths.
* testsuite/27_io/filesystem/path/native/string.cc: Use string_type
not std::string.
* testsuite/27_io/filesystem/path/query/is_absolute.cc: Adjust for
different definintion of absolute paths on Windows.
* testsuite/experimental/filesystem/iterators/directory_iterator.cc:
Do not use symlinks.
* testsuite/experimental/filesystem/operations/absolute.cc: Test
Windows behaviour.
* testsuite/experimental/filesystem/operations/copy.cc: Construct
fstreams with NTCTS not std::basic_string.
* testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
* testsuite/experimental/filesystem/operations/exists.cc: Use
__gnu_test::root_path() instead of "/".
* testsuite/experimental/filesystem/operations/is_empty.cc: Construct
fstreams with NTCTS not std::basic_string.
* testsuite/experimental/filesystem/operations/last_write_time.cc:
Use path::string() to get narrow string.
* testsuite/experimental/filesystem/operations/space.cc: Use
__gnu_test::root_path() instead of "/".
* testsuite/experimental/filesystem/operations/temp_directory_path.cc:
Add helpers for adjusting the environment on Windows.
* testsuite/experimental/filesystem/path/append/path.cc: Use
path::string() to get narrow strings for comparisons.
* testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
* testsuite/experimental/filesystem/path/decompose/root_directory.cc:
Likewise.
* testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
* testsuite/experimental/filesystem/path/native/string.cc: Use
string_type not std::string.
* testsuite/experimental/filesystem/path/query/is_absolute.cc:
Adjust for different definintion of absolute paths on Windows.
* testsuite/util/testsuite_fs.h (__gnu_test::root_path()): New
function.
(__gnu_test::scoped_file): Construct fstreams with NTCTS not
std::basic_string.
From-SVN: r261034
2018-05-31 21:20:24 +02:00
|
|
|
#undef HAVE_LINK
|
|
|
|
|
2008-01-08 17:14:49 +01:00
|
|
|
/* Define if futex syscall is available. */
|
|
|
|
#undef HAVE_LINUX_FUTEX
|
|
|
|
|
2017-05-23 18:11:57 +02:00
|
|
|
/* Define to 1 if you have the <linux/random.h> header file. */
|
|
|
|
#undef HAVE_LINUX_RANDOM_H
|
|
|
|
|
2018-01-18 20:52:16 +01:00
|
|
|
/* Define to 1 if you have the <linux/types.h> header file. */
|
|
|
|
#undef HAVE_LINUX_TYPES_H
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <locale.h> header file. */
|
|
|
|
#undef HAVE_LOCALE_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `log10f' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_LOG10F
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `log10l' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_LOG10L
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `logf' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_LOGF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `logl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_LOGL
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <machine/endian.h> header file. */
|
|
|
|
#undef HAVE_MACHINE_ENDIAN_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <machine/param.h> header file. */
|
|
|
|
#undef HAVE_MACHINE_PARAM_H
|
|
|
|
|
acinclude.m4 (_GLIBCXX_USE_LONG_LONG, [...]): Use long form of AC_DEFINE ...
2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
* acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
_GLIBCXX_USE_WCHAR_T, _GLIBCXX_USE_C99, _GLIBCXX_USE_C99_MATH,
_GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_RES_LIMITS, _GLIBCXX_CONCEPT_CHECKS,
_GLIBCXX_SYMVER, _GLIBCXX_USE_LFS, _GLIBCXX_FULLY_DYNAMIC_STRING,
_GLIBCXX_USE_NLS, HAVE_GTHR_DEFAULT, HAVE_MBSTATE_T, HAVE_POLL,
HAVE_S_ISREG, HAVE_S_IFREG, HAVE_WRITEV, HAVE_INT64_T,
HAVE_LC_MESSAGES): Use long form of AC_DEFINE ...
* acconfig.h: ... to eliminate them from here.
(_GLIBCXX_ASM_SYMVER): Move definition below @BOTTOM@.
* config.h.in, configure: Regenerate.
From-SVN: r97685
2005-04-06 03:32:03 +02:00
|
|
|
/* Define if mbstate_t exists in wchar.h. */
|
|
|
|
#undef HAVE_MBSTATE_T
|
|
|
|
|
2016-09-09 23:22:15 +02:00
|
|
|
/* Define to 1 if you have the `memalign' function. */
|
|
|
|
#undef HAVE_MEMALIGN
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <memory.h> header file. */
|
|
|
|
#undef HAVE_MEMORY_H
|
|
|
|
|
2005-04-05 05:11:32 +02:00
|
|
|
/* Define to 1 if you have the `modf' function. */
|
|
|
|
#undef HAVE_MODF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `modff' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_MODFF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `modfl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_MODFL
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <nan.h> header file. */
|
|
|
|
#undef HAVE_NAN_H
|
|
|
|
|
Use autoconf to check for features needed by Networking TS
* config.h.in: Regenerate.
* configure: Regenerate.
* configure.ac: Check for headers used by Networking TS.
* include/experimental/executor: Include <condition_variable>
instead of <mutex>.
* include/experimental/internet: Use autoconf macros for available
headers. Include <sys/socket.h> for. Remove <cstring> and use
__builtin_memcpy and __builtin_strchr.
(resolver_errc) [!_GLIBCXX_HAVE_NETDB_H]: Do not define.
(address_v4::to_string, address_v6::to_string)
[!_GLIBCXX_HAVE_ARPA_INET_H]: Likewise.
(basic_resolver_results) [!_GLIBCXX_HAVE_NETDB_H]: Make private
constructors report errors.
[!_GLIBCXX_HAVE_NETINET_TCP_H] (tcp::no_delay): Do not define.
* include/experimental/io_context: Likewise.
* include/experimental/socket: Likewise.
[!_GLIBCXX_HAVE_SYS_SOCKET_H, !_GLIBCXX_HAVE_POLL_H] (socket_base): Do
not define nested types when relevant header not available.
(__socket_impl::native_non_blocking) [!_GLIBCXX_HAVE_FCNTL_H]: Report
an error.
(__basic_socket_impl::open, __basic_socket_impl::local_endpoint)
(__basic_socket_impl::bind) [!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
(__basic_socket_impl::io_control) [!_GLIBCXX_HAVE_SYS_IOCTL_H]:
Likewise.
(basic_socket::at_mark, basic_socket::shutdown)
(basic_socket::remote_endpoint, basic_socket::connect)
(basic_socket::async_connect) [!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
(basic_socket::available) [_GLIBCXX_HAVE_SYS_IOCTL_H]: Check macro
for <sys/ioctl.h> availability.
(basic_socket::wait) [!_GLIBCXX_HAVE_POLL_H]: Likewise.
(basic_datagram_socket::receive, basic_datagram_socket::async_receive)
(basic_datagram_socket::receive_from)
(basic_datagram_socket::async_receive_from)
(basic_datagram_socket::send, basic_datagram_socket::async_send)
(basic_datagram_socket::send_to, basic_datagram_socket::async_send_to)
[!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
(basic_stream_socket::receive, basic_stream_socket::async_receive)
(basic_stream_socket::send, basic_stream_socket::async_send)
[!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
(basic_socket_acceptor::listen, basic_socket_acceptor::accept)
(basic_socket_acceptor::async_accept) [!_GLIBCXX_HAVE_SYS_SOCKET_H]:
Likewise.
(basic_socket_acceptor::wait) [!_GLIBCXX_HAVE_POLL_H]: Likewise.
From-SVN: r265203
2018-10-16 18:12:32 +02:00
|
|
|
/* Define to 1 if you have the <netdb.h> header file. */
|
|
|
|
#undef HAVE_NETDB_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <netinet/in.h> header file. */
|
|
|
|
#undef HAVE_NETINET_IN_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <netinet/tcp.h> header file. */
|
|
|
|
#undef HAVE_NETINET_TCP_H
|
|
|
|
|
2016-01-28 14:09:23 +01:00
|
|
|
/* Define if <math.h> defines obsolete isinf function. */
|
|
|
|
#undef HAVE_OBSOLETE_ISINF
|
|
|
|
|
|
|
|
/* Define if <math.h> defines obsolete isnan function. */
|
|
|
|
#undef HAVE_OBSOLETE_ISNAN
|
2016-01-13 17:25:56 +01:00
|
|
|
|
acinclude.m4 (_GLIBCXX_USE_LONG_LONG, [...]): Use long form of AC_DEFINE ...
2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
* acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
_GLIBCXX_USE_WCHAR_T, _GLIBCXX_USE_C99, _GLIBCXX_USE_C99_MATH,
_GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_RES_LIMITS, _GLIBCXX_CONCEPT_CHECKS,
_GLIBCXX_SYMVER, _GLIBCXX_USE_LFS, _GLIBCXX_FULLY_DYNAMIC_STRING,
_GLIBCXX_USE_NLS, HAVE_GTHR_DEFAULT, HAVE_MBSTATE_T, HAVE_POLL,
HAVE_S_ISREG, HAVE_S_IFREG, HAVE_WRITEV, HAVE_INT64_T,
HAVE_LC_MESSAGES): Use long form of AC_DEFINE ...
* acconfig.h: ... to eliminate them from here.
(_GLIBCXX_ASM_SYMVER): Move definition below @BOTTOM@.
* config.h.in, configure: Regenerate.
From-SVN: r97685
2005-04-06 03:32:03 +02:00
|
|
|
/* Define if poll is available in <poll.h>. */
|
|
|
|
#undef HAVE_POLL
|
|
|
|
|
Use autoconf to check for features needed by Networking TS
* config.h.in: Regenerate.
* configure: Regenerate.
* configure.ac: Check for headers used by Networking TS.
* include/experimental/executor: Include <condition_variable>
instead of <mutex>.
* include/experimental/internet: Use autoconf macros for available
headers. Include <sys/socket.h> for. Remove <cstring> and use
__builtin_memcpy and __builtin_strchr.
(resolver_errc) [!_GLIBCXX_HAVE_NETDB_H]: Do not define.
(address_v4::to_string, address_v6::to_string)
[!_GLIBCXX_HAVE_ARPA_INET_H]: Likewise.
(basic_resolver_results) [!_GLIBCXX_HAVE_NETDB_H]: Make private
constructors report errors.
[!_GLIBCXX_HAVE_NETINET_TCP_H] (tcp::no_delay): Do not define.
* include/experimental/io_context: Likewise.
* include/experimental/socket: Likewise.
[!_GLIBCXX_HAVE_SYS_SOCKET_H, !_GLIBCXX_HAVE_POLL_H] (socket_base): Do
not define nested types when relevant header not available.
(__socket_impl::native_non_blocking) [!_GLIBCXX_HAVE_FCNTL_H]: Report
an error.
(__basic_socket_impl::open, __basic_socket_impl::local_endpoint)
(__basic_socket_impl::bind) [!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
(__basic_socket_impl::io_control) [!_GLIBCXX_HAVE_SYS_IOCTL_H]:
Likewise.
(basic_socket::at_mark, basic_socket::shutdown)
(basic_socket::remote_endpoint, basic_socket::connect)
(basic_socket::async_connect) [!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
(basic_socket::available) [_GLIBCXX_HAVE_SYS_IOCTL_H]: Check macro
for <sys/ioctl.h> availability.
(basic_socket::wait) [!_GLIBCXX_HAVE_POLL_H]: Likewise.
(basic_datagram_socket::receive, basic_datagram_socket::async_receive)
(basic_datagram_socket::receive_from)
(basic_datagram_socket::async_receive_from)
(basic_datagram_socket::send, basic_datagram_socket::async_send)
(basic_datagram_socket::send_to, basic_datagram_socket::async_send_to)
[!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
(basic_stream_socket::receive, basic_stream_socket::async_receive)
(basic_stream_socket::send, basic_stream_socket::async_send)
[!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
(basic_socket_acceptor::listen, basic_socket_acceptor::accept)
(basic_socket_acceptor::async_accept) [!_GLIBCXX_HAVE_SYS_SOCKET_H]:
Likewise.
(basic_socket_acceptor::wait) [!_GLIBCXX_HAVE_POLL_H]: Likewise.
From-SVN: r265203
2018-10-16 18:12:32 +02:00
|
|
|
/* Define to 1 if you have the <poll.h> header file. */
|
|
|
|
#undef HAVE_POLL_H
|
|
|
|
|
2016-09-09 23:22:15 +02:00
|
|
|
/* Define to 1 if you have the `posix_memalign' function. */
|
|
|
|
#undef HAVE_POSIX_MEMALIGN
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `powf' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_POWF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `powl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_POWL
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `qfpclass' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_QFPCLASS
|
|
|
|
|
2013-02-11 18:50:13 +01:00
|
|
|
/* Define to 1 if you have the `quick_exit' function. */
|
|
|
|
#undef HAVE_QUICK_EXIT
|
|
|
|
|
2018-06-18 18:01:24 +02:00
|
|
|
/* Define if readlink is available in <unistd.h>. */
|
PR libstdc++/78870 support std::filesystem on Windows
PR libstdc++/78870 support std::filesystem on Windows
* config.h.in: Regenerate.
* configure: Regenerate.
* configure.ac: Check for link, readlink and symlink.
* include/bits/fs_path.h (path::operator/=(const path&)): Move
definition out of class body.
(path::is_absolute(), path::_M_append(path)): Likewise.
(operator<<(basic_ostream, const path&)): Use std::quoted directly.
(operator>>(basic_istream, path&)): Likewise.
(u8path): Reorder definitions and fix Windows implementation.
(path::is_absolute()): Define inline and fix for Windows.
[!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
Define POSIX version inline.
(path::_M_append(path)): Define inline.
* include/experimental/bits/fs_path.h (path::is_absolute()): Move
definition out of class body.
(operator<<(basic_ostream, const path&)): Fix type of delimiter and
escape characters.
(operator>>(basic_istream, path&)): Likewise.
(path::is_absolute()): Define inline and fix for Windows.
* src/filesystem/dir-common.h (__gnu_posix): New namespace.
(__gnu_posix::char_type, __gnu_posix::DIR, __gnu_posix::dirent)
(__gnu_posix::opendir, __gnu_posix::readdir, __gnu_posix::closedir):
Define as adaptors for Windows functions/types or as
using-declarations for POSIX functions/types.
(_Dir_base, get_file_type): Qualify names to use declarations from
__gnu_posix namespace.
(_Dir_base::is_dor_or_dotdot): New helper functions.
* src/filesystem/dir.cc (_Dir, recursive_directory_iterator): Qualify
names to use declarations from __gnu_posix namespace.
* src/filesystem/ops-common.h (__gnu_posix): New nested namespace.
(__gnu_posix::open, __gnu_posix::close, __gnu_posix::stat_type)
(__gnu_posix::stat, __gnu_posix::lstat, __gnu_posix::mode_t)
(__gnu_posix::chmod, __gnu_posix::mkdir, __gnu_posix::getcwd)
(__gnu_posix::chdir, __gnu_posix::utimbuf, __gnu_posix::utime)
(__gnu_posix::rename, __gnu_posix::truncate, __gnu_posix::char_type):
Define as adaptors for Windows functions/types or as
using-declarations for POSIX functions/types.
(stat_type, do_copy_file): Qualify names to use declarations from
__gnu_posix namespace.
(do_space): Declare new function.
(make_file_type): Only use S_ISLNK if defined.
* src/filesystem/ops.cc (char_ptr, filesystem::canonical): Use
path::value_type not char.
(filesystem::copy, create_dir, filesystem::create_directory): Qualify
names to use declarations from __gnu_posix namespace.
(filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
add implementation for Windows.
(filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
(filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
[!_PC_PATH_MAX]: Don't use pathconf.
[PATH_MAX]: Use if defined.
(filesystem::current_path(const path&, error_code&))
(filesystem::equivalent, do_stat, filesystem::hard_link_count)
(filesystem::last_write_time, filesystem::permissions): Use names
from __gnu_posix.
(filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
(filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
implementation for Windows.
(filesystem::rename, filesystem::resize_file): Use names from
__gnu_posix.
(filesystem::space): Use do_space.
[_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Get absolute path to directory.
(filesystem::status, filesystem::symlink_status): Use names from
__gnu_posix.
(filesystem::temp_directory_path): Add implementation for Windows.
* src/filesystem/path.cc (dot): Define constant.
(path::replace_extension): Use dot.
(path::_M_find_extension): Likewise. Use path::string_type not
std::string.
(path::_M_split_cmpts): Use dot.
(filesystem_error::_M_get_what): Use u8string() not native().
* src/filesystem/std-dir.cc (_Dir, recursive_directory_iterator):
Qualify names to use declarations from __gnu_posix namespace.
* src/filesystem/std-ops.cc (filesystem::absolute(const path&)): Use
correct error_code.
(filesystem::absolute(const path&, error_code&)): Add implementation
for Windows.
(char_ptr, filesystem::canonical): Use path::value_type not char.
(do_copy_file): Use names from __gnu_posix.
[_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Do not use fchmod, fchmodat or
sendfile.
(filesystem::copy, create_dir, filesystem::create_directory): Qualify
names to use declarations from __gnu_posix namespace.
(filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
add implementation for Windows.
(filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
(filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
[!_PC_PATH_MAX]: Don't use pathconf.
[PATH_MAX]: Use if defined.
(filesystem::current_path(const path&, error_code&))
(filesystem::equivalent, do_stat, filesystem::hard_link_count)
(filesystem::last_write_time, filesystem::permissions): Use names
from __gnu_posix.
(filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
(filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
implementation for Windows.
(filesystem::rename, filesystem::resize_file): Use names from
__gnu_posix.
(do_space): Define.
(filesystem::space): Use do_space.
(filesystem::status, filesystem::symlink_status): Use names from
__gnu_posix.
(filesystem::temp_directory_path): Add implementation for Windows.
* src/filesystem/std-path.cc
[_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
Define for Windows.
(dot): Define constant.
(path::replace_extension, is_dot): Use dot.
(path::lexically_normal): Check _M_type instead of calling
non-existent function.
(path::_M_find_extension): Use dot. Use path::string_type not
std::string.
(path::_M_split_cmpts): Use dot.
(filesystem_error::_M_get_what): Use u8string() not native().
* testsuite/27_io/filesystem/iterators/directory_iterator.cc: Do not
use symlinks.
* testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
Likewise.
* testsuite/27_io/filesystem/operations/absolute.cc: Use
__gnu_test::root_path() instead of "/" and add Windows-specific tests.
* testsuite/27_io/filesystem/operations/canonical.cc: Use
path::string() to get narrow string, not path::native().
* testsuite/27_io/filesystem/operations/copy.cc: Construct fstreams
with std::filesystem::path not std::basic_string.
* testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
* testsuite/27_io/filesystem/operations/exists.cc: Use
__gnu_test::root_path() instead of "/".
* testsuite/27_io/filesystem/operations/is_empty.cc: Construct
fstreams with std::filesystem::path not std::basic_string.
* testsuite/27_io/filesystem/operations/last_write_time.cc: Use
path::string() to get narrow string.
* testsuite/27_io/filesystem/operations/space.cc: Check results for
errors, expect sensible values otherwise.
* testsuite/27_io/filesystem/operations/temp_directory_path.cc: Add
helpers for adjusting the environment on Windows.
* testsuite/27_io/filesystem/path/append/path.cc: Test
Windows-specific behaviour.
* testsuite/27_io/filesystem/path/construct/format.cc: Fix creation
of path::string_type objects.
* testsuite/27_io/filesystem/path/construct/locale.cc: Compare native
string to wide string on Windows.
* testsuite/27_io/filesystem/path/decompose/root_directory.cc: Allow
for backslash as root-directory.
* testsuite/27_io/filesystem/path/decompose/stem.cc: Use
path::string() to get narrow string.
* testsuite/27_io/filesystem/path/itr/traversal.cc: Test Windows-style
paths.
* testsuite/27_io/filesystem/path/native/string.cc: Use string_type
not std::string.
* testsuite/27_io/filesystem/path/query/is_absolute.cc: Adjust for
different definintion of absolute paths on Windows.
* testsuite/experimental/filesystem/iterators/directory_iterator.cc:
Do not use symlinks.
* testsuite/experimental/filesystem/operations/absolute.cc: Test
Windows behaviour.
* testsuite/experimental/filesystem/operations/copy.cc: Construct
fstreams with NTCTS not std::basic_string.
* testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
* testsuite/experimental/filesystem/operations/exists.cc: Use
__gnu_test::root_path() instead of "/".
* testsuite/experimental/filesystem/operations/is_empty.cc: Construct
fstreams with NTCTS not std::basic_string.
* testsuite/experimental/filesystem/operations/last_write_time.cc:
Use path::string() to get narrow string.
* testsuite/experimental/filesystem/operations/space.cc: Use
__gnu_test::root_path() instead of "/".
* testsuite/experimental/filesystem/operations/temp_directory_path.cc:
Add helpers for adjusting the environment on Windows.
* testsuite/experimental/filesystem/path/append/path.cc: Use
path::string() to get narrow strings for comparisons.
* testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
* testsuite/experimental/filesystem/path/decompose/root_directory.cc:
Likewise.
* testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
* testsuite/experimental/filesystem/path/native/string.cc: Use
string_type not std::string.
* testsuite/experimental/filesystem/path/query/is_absolute.cc:
Adjust for different definintion of absolute paths on Windows.
* testsuite/util/testsuite_fs.h (__gnu_test::root_path()): New
function.
(__gnu_test::scoped_file): Construct fstreams with NTCTS not
std::basic_string.
From-SVN: r261034
2018-05-31 21:20:24 +02:00
|
|
|
#undef HAVE_READLINK
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `setenv' function. */
|
2002-01-24 21:46:34 +01:00
|
|
|
#undef HAVE_SETENV
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `sincos' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_SINCOS
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `sincosf' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_SINCOSF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `sincosl' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_SINCOSL
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `sinf' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_SINF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `sinhf' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_SINHF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `sinhl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_SINHL
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `sinl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_SINL
|
|
|
|
|
2012-11-23 23:11:23 +01:00
|
|
|
/* Defined if sleep exists. */
|
|
|
|
#undef HAVE_SLEEP
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `sqrtf' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_SQRTF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `sqrtl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_SQRTL
|
|
|
|
|
2011-11-07 09:46:58 +01:00
|
|
|
/* Define to 1 if you have the <stdalign.h> header file. */
|
|
|
|
#undef HAVE_STDALIGN_H
|
|
|
|
|
2006-02-26 19:42:29 +01:00
|
|
|
/* Define to 1 if you have the <stdbool.h> header file. */
|
|
|
|
#undef HAVE_STDBOOL_H
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <stdint.h> header file. */
|
|
|
|
#undef HAVE_STDINT_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
|
|
#undef HAVE_STDLIB_H
|
|
|
|
|
2007-05-28 19:02:30 +02:00
|
|
|
/* Define if strerror_l is available in <string.h>. */
|
|
|
|
#undef HAVE_STRERROR_L
|
|
|
|
|
|
|
|
/* Define if strerror_r is available in <string.h>. */
|
|
|
|
#undef HAVE_STRERROR_R
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <strings.h> header file. */
|
|
|
|
#undef HAVE_STRINGS_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <string.h> header file. */
|
|
|
|
#undef HAVE_STRING_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `strtof' function. */
|
2002-02-06 18:31:43 +01:00
|
|
|
#undef HAVE_STRTOF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `strtold' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_STRTOLD
|
|
|
|
|
2015-09-23 13:26:45 +02:00
|
|
|
/* Define to 1 if `d_type' is a member of `struct dirent'. */
|
|
|
|
#undef HAVE_STRUCT_DIRENT_D_TYPE
|
|
|
|
|
2007-05-28 19:02:30 +02:00
|
|
|
/* Define if strxfrm_l is available in <string.h>. */
|
|
|
|
#undef HAVE_STRXFRM_L
|
|
|
|
|
2018-06-18 18:01:24 +02:00
|
|
|
/* Define if symlink is available in <unistd.h>. */
|
PR libstdc++/78870 support std::filesystem on Windows
PR libstdc++/78870 support std::filesystem on Windows
* config.h.in: Regenerate.
* configure: Regenerate.
* configure.ac: Check for link, readlink and symlink.
* include/bits/fs_path.h (path::operator/=(const path&)): Move
definition out of class body.
(path::is_absolute(), path::_M_append(path)): Likewise.
(operator<<(basic_ostream, const path&)): Use std::quoted directly.
(operator>>(basic_istream, path&)): Likewise.
(u8path): Reorder definitions and fix Windows implementation.
(path::is_absolute()): Define inline and fix for Windows.
[!_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
Define POSIX version inline.
(path::_M_append(path)): Define inline.
* include/experimental/bits/fs_path.h (path::is_absolute()): Move
definition out of class body.
(operator<<(basic_ostream, const path&)): Fix type of delimiter and
escape characters.
(operator>>(basic_istream, path&)): Likewise.
(path::is_absolute()): Define inline and fix for Windows.
* src/filesystem/dir-common.h (__gnu_posix): New namespace.
(__gnu_posix::char_type, __gnu_posix::DIR, __gnu_posix::dirent)
(__gnu_posix::opendir, __gnu_posix::readdir, __gnu_posix::closedir):
Define as adaptors for Windows functions/types or as
using-declarations for POSIX functions/types.
(_Dir_base, get_file_type): Qualify names to use declarations from
__gnu_posix namespace.
(_Dir_base::is_dor_or_dotdot): New helper functions.
* src/filesystem/dir.cc (_Dir, recursive_directory_iterator): Qualify
names to use declarations from __gnu_posix namespace.
* src/filesystem/ops-common.h (__gnu_posix): New nested namespace.
(__gnu_posix::open, __gnu_posix::close, __gnu_posix::stat_type)
(__gnu_posix::stat, __gnu_posix::lstat, __gnu_posix::mode_t)
(__gnu_posix::chmod, __gnu_posix::mkdir, __gnu_posix::getcwd)
(__gnu_posix::chdir, __gnu_posix::utimbuf, __gnu_posix::utime)
(__gnu_posix::rename, __gnu_posix::truncate, __gnu_posix::char_type):
Define as adaptors for Windows functions/types or as
using-declarations for POSIX functions/types.
(stat_type, do_copy_file): Qualify names to use declarations from
__gnu_posix namespace.
(do_space): Declare new function.
(make_file_type): Only use S_ISLNK if defined.
* src/filesystem/ops.cc (char_ptr, filesystem::canonical): Use
path::value_type not char.
(filesystem::copy, create_dir, filesystem::create_directory): Qualify
names to use declarations from __gnu_posix namespace.
(filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
add implementation for Windows.
(filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
(filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
[!_PC_PATH_MAX]: Don't use pathconf.
[PATH_MAX]: Use if defined.
(filesystem::current_path(const path&, error_code&))
(filesystem::equivalent, do_stat, filesystem::hard_link_count)
(filesystem::last_write_time, filesystem::permissions): Use names
from __gnu_posix.
(filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
(filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
implementation for Windows.
(filesystem::rename, filesystem::resize_file): Use names from
__gnu_posix.
(filesystem::space): Use do_space.
[_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Get absolute path to directory.
(filesystem::status, filesystem::symlink_status): Use names from
__gnu_posix.
(filesystem::temp_directory_path): Add implementation for Windows.
* src/filesystem/path.cc (dot): Define constant.
(path::replace_extension): Use dot.
(path::_M_find_extension): Likewise. Use path::string_type not
std::string.
(path::_M_split_cmpts): Use dot.
(filesystem_error::_M_get_what): Use u8string() not native().
* src/filesystem/std-dir.cc (_Dir, recursive_directory_iterator):
Qualify names to use declarations from __gnu_posix namespace.
* src/filesystem/std-ops.cc (filesystem::absolute(const path&)): Use
correct error_code.
(filesystem::absolute(const path&, error_code&)): Add implementation
for Windows.
(char_ptr, filesystem::canonical): Use path::value_type not char.
(do_copy_file): Use names from __gnu_posix.
[_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Do not use fchmod, fchmodat or
sendfile.
(filesystem::copy, create_dir, filesystem::create_directory): Qualify
names to use declarations from __gnu_posix namespace.
(filesystem::create_hard_link): Check HAVE_LINK autoconf macro and
add implementation for Windows.
(filesystem::create_symlink): Check HAVE_SYMLINK autoconf macro.
(filesystem::current_path(error_code&)): Use __gnu_posix::getcwd.
[!_PC_PATH_MAX]: Don't use pathconf.
[PATH_MAX]: Use if defined.
(filesystem::current_path(const path&, error_code&))
(filesystem::equivalent, do_stat, filesystem::hard_link_count)
(filesystem::last_write_time, filesystem::permissions): Use names
from __gnu_posix.
(filesystem::read_symlink): Check HAVE_READLINK autoconf macro.
(filesystem::remove) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Add
implementation for Windows.
(filesystem::rename, filesystem::resize_file): Use names from
__gnu_posix.
(do_space): Define.
(filesystem::space): Use do_space.
(filesystem::status, filesystem::symlink_status): Use names from
__gnu_posix.
(filesystem::temp_directory_path): Add implementation for Windows.
* src/filesystem/std-path.cc
[_GLIBCXX_FILESYSTEM_IS_WINDOWS] (path::operator/=(const path&)):
Define for Windows.
(dot): Define constant.
(path::replace_extension, is_dot): Use dot.
(path::lexically_normal): Check _M_type instead of calling
non-existent function.
(path::_M_find_extension): Use dot. Use path::string_type not
std::string.
(path::_M_split_cmpts): Use dot.
(filesystem_error::_M_get_what): Use u8string() not native().
* testsuite/27_io/filesystem/iterators/directory_iterator.cc: Do not
use symlinks.
* testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
Likewise.
* testsuite/27_io/filesystem/operations/absolute.cc: Use
__gnu_test::root_path() instead of "/" and add Windows-specific tests.
* testsuite/27_io/filesystem/operations/canonical.cc: Use
path::string() to get narrow string, not path::native().
* testsuite/27_io/filesystem/operations/copy.cc: Construct fstreams
with std::filesystem::path not std::basic_string.
* testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
* testsuite/27_io/filesystem/operations/exists.cc: Use
__gnu_test::root_path() instead of "/".
* testsuite/27_io/filesystem/operations/is_empty.cc: Construct
fstreams with std::filesystem::path not std::basic_string.
* testsuite/27_io/filesystem/operations/last_write_time.cc: Use
path::string() to get narrow string.
* testsuite/27_io/filesystem/operations/space.cc: Check results for
errors, expect sensible values otherwise.
* testsuite/27_io/filesystem/operations/temp_directory_path.cc: Add
helpers for adjusting the environment on Windows.
* testsuite/27_io/filesystem/path/append/path.cc: Test
Windows-specific behaviour.
* testsuite/27_io/filesystem/path/construct/format.cc: Fix creation
of path::string_type objects.
* testsuite/27_io/filesystem/path/construct/locale.cc: Compare native
string to wide string on Windows.
* testsuite/27_io/filesystem/path/decompose/root_directory.cc: Allow
for backslash as root-directory.
* testsuite/27_io/filesystem/path/decompose/stem.cc: Use
path::string() to get narrow string.
* testsuite/27_io/filesystem/path/itr/traversal.cc: Test Windows-style
paths.
* testsuite/27_io/filesystem/path/native/string.cc: Use string_type
not std::string.
* testsuite/27_io/filesystem/path/query/is_absolute.cc: Adjust for
different definintion of absolute paths on Windows.
* testsuite/experimental/filesystem/iterators/directory_iterator.cc:
Do not use symlinks.
* testsuite/experimental/filesystem/operations/absolute.cc: Test
Windows behaviour.
* testsuite/experimental/filesystem/operations/copy.cc: Construct
fstreams with NTCTS not std::basic_string.
* testsuite/experimental/filesystem/operations/copy_file.cc: Likewise.
* testsuite/experimental/filesystem/operations/exists.cc: Use
__gnu_test::root_path() instead of "/".
* testsuite/experimental/filesystem/operations/is_empty.cc: Construct
fstreams with NTCTS not std::basic_string.
* testsuite/experimental/filesystem/operations/last_write_time.cc:
Use path::string() to get narrow string.
* testsuite/experimental/filesystem/operations/space.cc: Use
__gnu_test::root_path() instead of "/".
* testsuite/experimental/filesystem/operations/temp_directory_path.cc:
Add helpers for adjusting the environment on Windows.
* testsuite/experimental/filesystem/path/append/path.cc: Use
path::string() to get narrow strings for comparisons.
* testsuite/experimental/filesystem/path/concat/path.cc: Likewise.
* testsuite/experimental/filesystem/path/decompose/root_directory.cc:
Likewise.
* testsuite/experimental/filesystem/path/decompose/stem.cc: Likewise.
* testsuite/experimental/filesystem/path/native/string.cc: Use
string_type not std::string.
* testsuite/experimental/filesystem/path/query/is_absolute.cc:
Adjust for different definintion of absolute paths on Windows.
* testsuite/util/testsuite_fs.h (__gnu_test::root_path()): New
function.
(__gnu_test::scoped_file): Construct fstreams with NTCTS not
std::basic_string.
From-SVN: r261034
2018-05-31 21:20:24 +02:00
|
|
|
#undef HAVE_SYMLINK
|
|
|
|
|
2010-07-02 14:09:29 +02:00
|
|
|
/* Define to 1 if the target runtime linker supports binding the same symbol
|
|
|
|
to different versions. */
|
|
|
|
#undef HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <sys/filio.h> header file. */
|
|
|
|
#undef HAVE_SYS_FILIO_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/ioctl.h> header file. */
|
|
|
|
#undef HAVE_SYS_IOCTL_H
|
|
|
|
|
2005-01-03 22:31:39 +01:00
|
|
|
/* Define to 1 if you have the <sys/ipc.h> header file. */
|
|
|
|
#undef HAVE_SYS_IPC_H
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <sys/isa_defs.h> header file. */
|
|
|
|
#undef HAVE_SYS_ISA_DEFS_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/machine.h> header file. */
|
|
|
|
#undef HAVE_SYS_MACHINE_H
|
|
|
|
|
2004-03-02 19:30:08 +01:00
|
|
|
/* Define to 1 if you have the <sys/param.h> header file. */
|
|
|
|
#undef HAVE_SYS_PARAM_H
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <sys/resource.h> header file. */
|
|
|
|
#undef HAVE_SYS_RESOURCE_H
|
|
|
|
|
2013-04-09 22:55:17 +02:00
|
|
|
/* Define to 1 if you have a suitable <sys/sdt.h> header file */
|
2013-03-15 09:55:07 +01:00
|
|
|
#undef HAVE_SYS_SDT_H
|
|
|
|
|
2005-01-03 22:31:39 +01:00
|
|
|
/* Define to 1 if you have the <sys/sem.h> header file. */
|
|
|
|
#undef HAVE_SYS_SEM_H
|
|
|
|
|
Use autoconf to check for features needed by Networking TS
* config.h.in: Regenerate.
* configure: Regenerate.
* configure.ac: Check for headers used by Networking TS.
* include/experimental/executor: Include <condition_variable>
instead of <mutex>.
* include/experimental/internet: Use autoconf macros for available
headers. Include <sys/socket.h> for. Remove <cstring> and use
__builtin_memcpy and __builtin_strchr.
(resolver_errc) [!_GLIBCXX_HAVE_NETDB_H]: Do not define.
(address_v4::to_string, address_v6::to_string)
[!_GLIBCXX_HAVE_ARPA_INET_H]: Likewise.
(basic_resolver_results) [!_GLIBCXX_HAVE_NETDB_H]: Make private
constructors report errors.
[!_GLIBCXX_HAVE_NETINET_TCP_H] (tcp::no_delay): Do not define.
* include/experimental/io_context: Likewise.
* include/experimental/socket: Likewise.
[!_GLIBCXX_HAVE_SYS_SOCKET_H, !_GLIBCXX_HAVE_POLL_H] (socket_base): Do
not define nested types when relevant header not available.
(__socket_impl::native_non_blocking) [!_GLIBCXX_HAVE_FCNTL_H]: Report
an error.
(__basic_socket_impl::open, __basic_socket_impl::local_endpoint)
(__basic_socket_impl::bind) [!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
(__basic_socket_impl::io_control) [!_GLIBCXX_HAVE_SYS_IOCTL_H]:
Likewise.
(basic_socket::at_mark, basic_socket::shutdown)
(basic_socket::remote_endpoint, basic_socket::connect)
(basic_socket::async_connect) [!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
(basic_socket::available) [_GLIBCXX_HAVE_SYS_IOCTL_H]: Check macro
for <sys/ioctl.h> availability.
(basic_socket::wait) [!_GLIBCXX_HAVE_POLL_H]: Likewise.
(basic_datagram_socket::receive, basic_datagram_socket::async_receive)
(basic_datagram_socket::receive_from)
(basic_datagram_socket::async_receive_from)
(basic_datagram_socket::send, basic_datagram_socket::async_send)
(basic_datagram_socket::send_to, basic_datagram_socket::async_send_to)
[!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
(basic_stream_socket::receive, basic_stream_socket::async_receive)
(basic_stream_socket::send, basic_stream_socket::async_send)
[!_GLIBCXX_HAVE_SYS_SOCKET_H]: Likewise.
(basic_socket_acceptor::listen, basic_socket_acceptor::accept)
(basic_socket_acceptor::async_accept) [!_GLIBCXX_HAVE_SYS_SOCKET_H]:
Likewise.
(basic_socket_acceptor::wait) [!_GLIBCXX_HAVE_POLL_H]: Likewise.
From-SVN: r265203
2018-10-16 18:12:32 +02:00
|
|
|
/* Define to 1 if you have the <sys/socket.h> header file. */
|
|
|
|
#undef HAVE_SYS_SOCKET_H
|
|
|
|
|
2015-04-30 21:11:52 +02:00
|
|
|
/* Define to 1 if you have the <sys/statvfs.h> header file. */
|
|
|
|
#undef HAVE_SYS_STATVFS_H
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
|
|
#undef HAVE_SYS_STAT_H
|
|
|
|
|
2011-05-28 19:27:01 +02:00
|
|
|
/* Define to 1 if you have the <sys/sysinfo.h> header file. */
|
|
|
|
#undef HAVE_SYS_SYSINFO_H
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <sys/time.h> header file. */
|
|
|
|
#undef HAVE_SYS_TIME_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
|
|
#undef HAVE_SYS_TYPES_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/uio.h> header file. */
|
|
|
|
#undef HAVE_SYS_UIO_H
|
|
|
|
|
acinclude.m4 (_GLIBCXX_USE_LONG_LONG, [...]): Use long form of AC_DEFINE ...
2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
* acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
_GLIBCXX_USE_WCHAR_T, _GLIBCXX_USE_C99, _GLIBCXX_USE_C99_MATH,
_GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_RES_LIMITS, _GLIBCXX_CONCEPT_CHECKS,
_GLIBCXX_SYMVER, _GLIBCXX_USE_LFS, _GLIBCXX_FULLY_DYNAMIC_STRING,
_GLIBCXX_USE_NLS, HAVE_GTHR_DEFAULT, HAVE_MBSTATE_T, HAVE_POLL,
HAVE_S_ISREG, HAVE_S_IFREG, HAVE_WRITEV, HAVE_INT64_T,
HAVE_LC_MESSAGES): Use long form of AC_DEFINE ...
* acconfig.h: ... to eliminate them from here.
(_GLIBCXX_ASM_SYMVER): Move definition below @BOTTOM@.
* config.h.in, configure: Regenerate.
From-SVN: r97685
2005-04-06 03:32:03 +02:00
|
|
|
/* Define if S_IFREG is available in <sys/stat.h>. */
|
|
|
|
#undef HAVE_S_IFREG
|
|
|
|
|
2017-03-15 16:23:44 +01:00
|
|
|
/* Define if S_ISREG is available in <sys/stat.h>. */
|
acinclude.m4 (_GLIBCXX_USE_LONG_LONG, [...]): Use long form of AC_DEFINE ...
2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
* acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
_GLIBCXX_USE_WCHAR_T, _GLIBCXX_USE_C99, _GLIBCXX_USE_C99_MATH,
_GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_RES_LIMITS, _GLIBCXX_CONCEPT_CHECKS,
_GLIBCXX_SYMVER, _GLIBCXX_USE_LFS, _GLIBCXX_FULLY_DYNAMIC_STRING,
_GLIBCXX_USE_NLS, HAVE_GTHR_DEFAULT, HAVE_MBSTATE_T, HAVE_POLL,
HAVE_S_ISREG, HAVE_S_IFREG, HAVE_WRITEV, HAVE_INT64_T,
HAVE_LC_MESSAGES): Use long form of AC_DEFINE ...
* acconfig.h: ... to eliminate them from here.
(_GLIBCXX_ASM_SYMVER): Move definition below @BOTTOM@.
* config.h.in, configure: Regenerate.
From-SVN: r97685
2005-04-06 03:32:03 +02:00
|
|
|
#undef HAVE_S_ISREG
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `tanf' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_TANF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `tanhf' function. */
|
2000-04-21 22:33:34 +02:00
|
|
|
#undef HAVE_TANHF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `tanhl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_TANHL
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `tanl' function. */
|
2000-06-06 22:26:13 +02:00
|
|
|
#undef HAVE_TANL
|
|
|
|
|
2007-03-26 12:41:41 +02:00
|
|
|
/* Define to 1 if you have the <tgmath.h> header file. */
|
|
|
|
#undef HAVE_TGMATH_H
|
|
|
|
|
2005-11-22 07:54:08 +01:00
|
|
|
/* Define to 1 if the target supports thread-local storage. */
|
|
|
|
#undef HAVE_TLS
|
|
|
|
|
2019-01-07 13:38:51 +01:00
|
|
|
/* Define if truncate is available in <unistd.h>. */
|
|
|
|
#undef HAVE_TRUNCATE
|
|
|
|
|
2015-09-04 13:13:34 +02:00
|
|
|
/* Define to 1 if you have the <uchar.h> header file. */
|
|
|
|
#undef HAVE_UCHAR_H
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
|
|
#undef HAVE_UNISTD_H
|
|
|
|
|
2012-11-23 23:11:23 +01:00
|
|
|
/* Defined if usleep exists. */
|
|
|
|
#undef HAVE_USLEEP
|
|
|
|
|
2015-05-01 21:48:00 +02:00
|
|
|
/* Define to 1 if you have the <utime.h> header file. */
|
|
|
|
#undef HAVE_UTIME_H
|
|
|
|
|
2005-03-24 06:45:45 +01:00
|
|
|
/* Defined if vfwscanf exists. */
|
2001-06-11 06:36:59 +02:00
|
|
|
#undef HAVE_VFWSCANF
|
|
|
|
|
2005-03-24 06:45:45 +01:00
|
|
|
/* Defined if vswscanf exists. */
|
2001-06-11 06:36:59 +02:00
|
|
|
#undef HAVE_VSWSCANF
|
|
|
|
|
2005-03-24 06:45:45 +01:00
|
|
|
/* Defined if vwscanf exists. */
|
2001-06-11 06:36:59 +02:00
|
|
|
#undef HAVE_VWSCANF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <wchar.h> header file. */
|
|
|
|
#undef HAVE_WCHAR_H
|
|
|
|
|
2005-03-24 06:45:45 +01:00
|
|
|
/* Defined if wcstof exists. */
|
2001-06-11 06:36:59 +02:00
|
|
|
#undef HAVE_WCSTOF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the <wctype.h> header file. */
|
|
|
|
#undef HAVE_WCTYPE_H
|
|
|
|
|
2012-12-20 15:36:56 +01:00
|
|
|
/* Defined if Sleep exists. */
|
|
|
|
#undef HAVE_WIN32_SLEEP
|
|
|
|
|
acinclude.m4 (_GLIBCXX_USE_LONG_LONG, [...]): Use long form of AC_DEFINE ...
2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
* acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
_GLIBCXX_USE_WCHAR_T, _GLIBCXX_USE_C99, _GLIBCXX_USE_C99_MATH,
_GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_RES_LIMITS, _GLIBCXX_CONCEPT_CHECKS,
_GLIBCXX_SYMVER, _GLIBCXX_USE_LFS, _GLIBCXX_FULLY_DYNAMIC_STRING,
_GLIBCXX_USE_NLS, HAVE_GTHR_DEFAULT, HAVE_MBSTATE_T, HAVE_POLL,
HAVE_S_ISREG, HAVE_S_IFREG, HAVE_WRITEV, HAVE_INT64_T,
HAVE_LC_MESSAGES): Use long form of AC_DEFINE ...
* acconfig.h: ... to eliminate them from here.
(_GLIBCXX_ASM_SYMVER): Move definition below @BOTTOM@.
* config.h.in, configure: Regenerate.
From-SVN: r97685
2005-04-06 03:32:03 +02:00
|
|
|
/* Define if writev is available in <sys/uio.h>. */
|
|
|
|
#undef HAVE_WRITEV
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_acosf' function. */
|
|
|
|
#undef HAVE__ACOSF
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_acosl' function. */
|
|
|
|
#undef HAVE__ACOSL
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2016-09-09 23:22:15 +02:00
|
|
|
/* Define to 1 if you have the `_aligned_malloc' function. */
|
|
|
|
#undef HAVE__ALIGNED_MALLOC
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_asinf' function. */
|
|
|
|
#undef HAVE__ASINF
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_asinl' function. */
|
|
|
|
#undef HAVE__ASINL
|
2000-10-25 18:54:47 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_atan2f' function. */
|
|
|
|
#undef HAVE__ATAN2F
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_atan2l' function. */
|
|
|
|
#undef HAVE__ATAN2L
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_atanf' function. */
|
|
|
|
#undef HAVE__ATANF
|
2003-04-28 23:03:19 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_atanl' function. */
|
|
|
|
#undef HAVE__ATANL
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_ceilf' function. */
|
|
|
|
#undef HAVE__CEILF
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_ceill' function. */
|
|
|
|
#undef HAVE__CEILL
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_cosf' function. */
|
|
|
|
#undef HAVE__COSF
|
2003-03-28 19:28:47 +01:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_coshf' function. */
|
|
|
|
#undef HAVE__COSHF
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_coshl' function. */
|
|
|
|
#undef HAVE__COSHL
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_cosl' function. */
|
|
|
|
#undef HAVE__COSL
|
2001-08-07 05:38:33 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_expf' function. */
|
|
|
|
#undef HAVE__EXPF
|
2002-05-27 16:55:57 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_expl' function. */
|
|
|
|
#undef HAVE__EXPL
|
2002-06-11 19:54:27 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_fabsf' function. */
|
|
|
|
#undef HAVE__FABSF
|
2001-08-18 04:53:13 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_fabsl' function. */
|
|
|
|
#undef HAVE__FABSL
|
2003-07-14 20:23:12 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_finite' function. */
|
|
|
|
#undef HAVE__FINITE
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_finitef' function. */
|
|
|
|
#undef HAVE__FINITEF
|
2001-01-02 08:38:47 +01:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_finitel' function. */
|
|
|
|
#undef HAVE__FINITEL
|
2002-03-12 03:42:11 +01:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_floorf' function. */
|
|
|
|
#undef HAVE__FLOORF
|
2000-10-30 22:30:30 +01:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_floorl' function. */
|
|
|
|
#undef HAVE__FLOORL
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_fmodf' function. */
|
|
|
|
#undef HAVE__FMODF
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_fmodl' function. */
|
|
|
|
#undef HAVE__FMODL
|
2001-03-28 13:04:51 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_fpclass' function. */
|
|
|
|
#undef HAVE__FPCLASS
|
2001-02-11 19:15:49 +01:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_frexpf' function. */
|
|
|
|
#undef HAVE__FREXPF
|
2001-08-07 05:38:33 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_frexpl' function. */
|
|
|
|
#undef HAVE__FREXPL
|
2001-08-07 05:38:33 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_hypot' function. */
|
|
|
|
#undef HAVE__HYPOT
|
2001-08-07 05:38:33 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_hypotf' function. */
|
|
|
|
#undef HAVE__HYPOTF
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_hypotl' function. */
|
|
|
|
#undef HAVE__HYPOTL
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_isinf' function. */
|
|
|
|
#undef HAVE__ISINF
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_isinff' function. */
|
|
|
|
#undef HAVE__ISINFF
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_isinfl' function. */
|
|
|
|
#undef HAVE__ISINFL
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_isnan' function. */
|
|
|
|
#undef HAVE__ISNAN
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_isnanf' function. */
|
|
|
|
#undef HAVE__ISNANF
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_isnanl' function. */
|
|
|
|
#undef HAVE__ISNANL
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_ldexpf' function. */
|
|
|
|
#undef HAVE__LDEXPF
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_ldexpl' function. */
|
|
|
|
#undef HAVE__LDEXPL
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_log10f' function. */
|
|
|
|
#undef HAVE__LOG10F
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_log10l' function. */
|
|
|
|
#undef HAVE__LOG10L
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_logf' function. */
|
|
|
|
#undef HAVE__LOGF
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_logl' function. */
|
|
|
|
#undef HAVE__LOGL
|
|
|
|
|
2005-04-05 05:11:32 +02:00
|
|
|
/* Define to 1 if you have the `_modf' function. */
|
|
|
|
#undef HAVE__MODF
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_modff' function. */
|
|
|
|
#undef HAVE__MODFF
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_modfl' function. */
|
|
|
|
#undef HAVE__MODFL
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_powf' function. */
|
|
|
|
#undef HAVE__POWF
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_powl' function. */
|
|
|
|
#undef HAVE__POWL
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_qfpclass' function. */
|
|
|
|
#undef HAVE__QFPCLASS
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_sincos' function. */
|
|
|
|
#undef HAVE__SINCOS
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_sincosf' function. */
|
|
|
|
#undef HAVE__SINCOSF
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_sincosl' function. */
|
|
|
|
#undef HAVE__SINCOSL
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_sinf' function. */
|
|
|
|
#undef HAVE__SINF
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_sinhf' function. */
|
|
|
|
#undef HAVE__SINHF
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_sinhl' function. */
|
|
|
|
#undef HAVE__SINHL
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_sinl' function. */
|
|
|
|
#undef HAVE__SINL
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_sqrtf' function. */
|
|
|
|
#undef HAVE__SQRTF
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_sqrtl' function. */
|
|
|
|
#undef HAVE__SQRTL
|
2001-08-07 05:38:33 +02:00
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the `_tanf' function. */
|
|
|
|
#undef HAVE__TANF
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_tanhf' function. */
|
|
|
|
#undef HAVE__TANHF
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_tanhl' function. */
|
|
|
|
#undef HAVE__TANHL
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `_tanl' function. */
|
|
|
|
#undef HAVE__TANL
|
|
|
|
|
Add support for opening file streams from wide character strings
C++17 added new overloads to <fstream> class templates to support
opening files from wide character strings "on systems where
filesystem::path::value_type is not char". This patch adds those
overloads conditional on _wfopen being available, and enables them for
pre-C++17 modes as well.
Add support for opening file streams from wide character strings.
* config/io/basic_file_stdio.cc [_GLIBCXX_HAVE__WFOPEN]
(__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
Define new overload.
* config/io/basic_file_stdio.h [_GLIBCXX_HAVE__WFOPEN]
(__basic_file<char>::open(const wchar_t*, ios_base::openmode)):
Declare new overload.
* configure.ac: Check for _wfopen.
* crossconfig.m4: Likewise.
* configure: Regenerate.
* config.h.in: Regenerate.
* include/bits/fstream.tcc [_GLIBCXX_HAVE__WFOPEN]
(basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
Define new overload.
* include/std/fstream [_GLIBCXX_HAVE__WFOPEN]
(basic_filebuf<C,T>::open(const wchar_t*, ios_base::openmode)):
Declare new overload.
[_GLIBCXX_HAVE__WFOPEN]
(basic_ifstream<C,T>::basic_ifstream(const wchar_t*, openmode))
(basic_ifstream<C,T>::basic_open(const wchar_t*, openmode))
(basic_ofstream<C,T>::basic_ifstream(const wchar_t*, openmode))
(basic_ofstream<C,T>::basic_open(const wchar_t*, openmode))
(basic_fstream<C,T>::basic_ifstream(const wchar_t*, openmode))
(basic_fstream<C,T>::basic_open(const wchar_t*, openmode)): Define
new overloads.
* testsuite/27_io/basic_filebuf/open/wchar_t/1.cc: New.
* testsuite/27_io/basic_ifstream/cons/wchar_t/1.cc: New.
* testsuite/27_io/basic_ifstream/open/wchar_t/1.cc: New.
* testsuite/27_io/basic_ofstream/cons/wchar_t/1.cc: New.
* testsuite/27_io/basic_ofstream/open/wchar_t/1.cc: New.
* testsuite/27_io/basic_fstream/cons/wchar_t/1.cc: New.
* testsuite/27_io/basic_fstream/open/wchar_t/1.cc: New.
From-SVN: r260479
2018-05-21 19:18:35 +02:00
|
|
|
/* Define to 1 if you have the `_wfopen' function. */
|
|
|
|
#undef HAVE__WFOPEN
|
|
|
|
|
2017-01-04 16:41:19 +01:00
|
|
|
/* Define to 1 if you have the `__cxa_thread_atexit' function. */
|
|
|
|
#undef HAVE___CXA_THREAD_ATEXIT
|
|
|
|
|
2013-02-26 05:39:04 +01:00
|
|
|
/* Define to 1 if you have the `__cxa_thread_atexit_impl' function. */
|
|
|
|
#undef HAVE___CXA_THREAD_ATEXIT_IMPL
|
|
|
|
|
2007-01-29 19:22:37 +01:00
|
|
|
/* Define as const if the declaration of iconv() needs const. */
|
|
|
|
#undef ICONV_CONST
|
|
|
|
|
2007-05-28 19:02:30 +02:00
|
|
|
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
|
|
*/
|
|
|
|
#undef LT_OBJDIR
|
|
|
|
|
2005-04-08 02:59:08 +02:00
|
|
|
/* Name of package */
|
|
|
|
#undef PACKAGE
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to the address where bug reports for this package should be sent. */
|
|
|
|
#undef PACKAGE_BUGREPORT
|
|
|
|
|
|
|
|
/* Define to the full name of this package. */
|
|
|
|
#undef PACKAGE_NAME
|
|
|
|
|
|
|
|
/* Define to the full name and version of this package. */
|
|
|
|
#undef PACKAGE_STRING
|
|
|
|
|
|
|
|
/* Define to the one symbol short name of this package. */
|
|
|
|
#undef PACKAGE_TARNAME
|
|
|
|
|
2009-08-22 15:22:20 +02:00
|
|
|
/* Define to the home page for this package. */
|
|
|
|
#undef PACKAGE_URL
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to the version of this package. */
|
|
|
|
#undef PACKAGE_VERSION
|
|
|
|
|
2009-08-22 15:22:20 +02:00
|
|
|
/* The size of `char', as computed by sizeof. */
|
2008-04-24 01:28:45 +02:00
|
|
|
#undef SIZEOF_CHAR
|
|
|
|
|
2009-08-22 15:22:20 +02:00
|
|
|
/* The size of `int', as computed by sizeof. */
|
2008-04-24 01:28:45 +02:00
|
|
|
#undef SIZEOF_INT
|
|
|
|
|
2009-08-22 15:22:20 +02:00
|
|
|
/* The size of `long', as computed by sizeof. */
|
2008-04-24 01:28:45 +02:00
|
|
|
#undef SIZEOF_LONG
|
|
|
|
|
2009-08-22 15:22:20 +02:00
|
|
|
/* The size of `short', as computed by sizeof. */
|
2008-04-24 01:28:45 +02:00
|
|
|
#undef SIZEOF_SHORT
|
|
|
|
|
2009-08-22 15:22:20 +02:00
|
|
|
/* The size of `void *', as computed by sizeof. */
|
2008-04-24 01:28:45 +02:00
|
|
|
#undef SIZEOF_VOID_P
|
|
|
|
|
2003-08-05 04:00:18 +02:00
|
|
|
/* Define to 1 if you have the ANSI C header files. */
|
|
|
|
#undef STDC_HEADERS
|
|
|
|
|
2005-04-08 02:59:08 +02:00
|
|
|
/* Version number of package */
|
|
|
|
#undef VERSION
|
|
|
|
|
More fine-grained autoconf checks for C99 library
2015-11-13 Jennifer Yao <jenny.hyphen.fa@gmail.com>
Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/58393
PR libstdc++/61580
* acinclude.m4 (GLIBCXX_ENABLE_C99): Perform tests twice, with
-std=c++11 as well as -std=c++98, and define separate macros for each.
Cache the results of checking for complex math and wide character
functions. Reformat for readability.
* config.h.in: Regenerate.
* include/bits/c++config: Define _GLIBCXX_USE_C99_XXX macros to
either _GLIBCXX98_USE_C99_XXX or _GLIBCXX11_USE_C99_XXX according to
language standard in use.
* config/locale/dragonfly/c_locale.h (std::__convert_from_v): Replace
_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
* config/locale/generic/c_locale.h (std::__convert_from_v): Likewise.
* config/locale/gnu/c_locale.h (std::__convert_from_v): Likewise.
* config/os/bsd/dragonfly/os_defines.h: Define _GLIBCXX_USE_C99_STDIO,
_GLIBCXX_USE_C99_STDLIB, and _GLIBCXX_USE_C99_WCHAR.
* configure: Regenerate.
* include/bits/basic_string.h: Make numeric conversion functions
depend on _GLIBCXX_USE_C99_STDIO, _GLIBCXX_USE_C99_STDLIB, or
_GLIBCXX_USE_C99_WCHAR, instead of _GLIBCXX_USE_C99.
* include/ext/vstring.h: Likewise.
* include/bits/locale_facets.tcc (std::num_put::_M_insert_float):
Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
* include/bits/locale_facets_nonio.tcc (std::money_put::do_put):
Likewise.
* include/c_compatibility/math.h: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_MATH.
* include/c_compatibility/wchar.h: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_WCHAR.
* include/c_global/cstdio: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_STDIO.
* include/c_global/cstdlib: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_STDLIB.
* include/c_global/cwchar: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_WCHAR.
* include/c_std/cstdio: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_STDIO.
* include/c_std/cstdlib: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_STDLIB.
* include/c_std/cwchar: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_WCHAR.
* include/tr1/cstdio: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_STDIO.
* include/tr1/cstdlib: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_STDLIB.
* include/tr1/cwchar: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_WCHAR.
* include/tr1/stdlib.h: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_STDLIB.
* src/c++98/locale_facets.cc (std::__num_base::_S_format_float):
Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
* testsuite/18_support/exception_ptr/60612-terminate.cc: Replace
_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
* testsuite/18_support/exception_ptr/60612-unexpected.cc: Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stod.cc
(test01): Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_WCHAR.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
stof.cc: Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
stoi.cc: Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
stol.cc: Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
stold.cc: Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
stoll.cc: Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
stoul.cc: Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
stoull.cc: Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
to_wstring.cc: Likewise.
* testsuite/26_numerics/headers/cstdlib/13943.cc: Replace
_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
* testsuite/26_numerics/headers/cstdlib/types_std_c++0x.cc: Likewise.
* testsuite/lib/libstdc++.exp (check_v3_target_string_conversions):
Change preprocessor #if conditional so that it uses
_GLIBCXX_USE_C99_STDIO, _GLIBCXX_USE_C99_STDLIB, and
_GLIBCXX_USE_C99_WCHAR, instead of _GLIBCXX_USE_C99.
* testsuite/tr1/8_c_compatibility/cmath/templates.cc: Replace
_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_MATH.
* testsuite/tr1/8_c_compatibility/cstdio/functions.cc: Replace
_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
* testsuite/tr1/8_c_compatibility/cstdlib/functions.cc: Replace
_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
* testsuite/tr1/8_c_compatibility/cstdlib/types_std_tr1.cc: Likewise.
* testsuite/tr1/8_c_compatibility/cwchar/functions.cc: Replace
_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_WCHAR.
* testsuite/util/testsuite_fs.h: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_STDIO.
Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>
From-SVN: r230324
2015-11-13 15:51:25 +01:00
|
|
|
/* Define if C99 functions in <complex.h> should be used in <complex> for
|
|
|
|
C++11. Using compiler builtins for these functions requires corresponding
|
|
|
|
C99 library functions to be present. */
|
|
|
|
#undef _GLIBCXX11_USE_C99_COMPLEX
|
|
|
|
|
|
|
|
/* Define if C99 functions or macros in <math.h> should be imported in <cmath>
|
|
|
|
in namespace std for C++11. */
|
|
|
|
#undef _GLIBCXX11_USE_C99_MATH
|
|
|
|
|
|
|
|
/* Define if C99 functions or macros in <stdio.h> should be imported in
|
|
|
|
<cstdio> in namespace std for C++11. */
|
|
|
|
#undef _GLIBCXX11_USE_C99_STDIO
|
|
|
|
|
|
|
|
/* Define if C99 functions or macros in <stdlib.h> should be imported in
|
|
|
|
<cstdlib> in namespace std for C++11. */
|
|
|
|
#undef _GLIBCXX11_USE_C99_STDLIB
|
|
|
|
|
|
|
|
/* Define if C99 functions or macros in <wchar.h> should be imported in
|
|
|
|
<cwchar> in namespace std for C++11. */
|
|
|
|
#undef _GLIBCXX11_USE_C99_WCHAR
|
|
|
|
|
|
|
|
/* Define if C99 functions in <complex.h> should be used in <complex> for
|
|
|
|
C++98. Using compiler builtins for these functions requires corresponding
|
|
|
|
C99 library functions to be present. */
|
|
|
|
#undef _GLIBCXX98_USE_C99_COMPLEX
|
|
|
|
|
|
|
|
/* Define if C99 functions or macros in <math.h> should be imported in <cmath>
|
|
|
|
in namespace std for C++98. */
|
|
|
|
#undef _GLIBCXX98_USE_C99_MATH
|
|
|
|
|
|
|
|
/* Define if C99 functions or macros in <stdio.h> should be imported in
|
|
|
|
<cstdio> in namespace std for C++98. */
|
|
|
|
#undef _GLIBCXX98_USE_C99_STDIO
|
|
|
|
|
2016-02-05 00:47:21 +01:00
|
|
|
/* Define if C99 functions or macros in <stdlib.h> should be imported in
|
|
|
|
<cstdlib> in namespace std for C++98. */
|
|
|
|
#undef _GLIBCXX98_USE_C99_STDLIB
|
|
|
|
|
More fine-grained autoconf checks for C99 library
2015-11-13 Jennifer Yao <jenny.hyphen.fa@gmail.com>
Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/58393
PR libstdc++/61580
* acinclude.m4 (GLIBCXX_ENABLE_C99): Perform tests twice, with
-std=c++11 as well as -std=c++98, and define separate macros for each.
Cache the results of checking for complex math and wide character
functions. Reformat for readability.
* config.h.in: Regenerate.
* include/bits/c++config: Define _GLIBCXX_USE_C99_XXX macros to
either _GLIBCXX98_USE_C99_XXX or _GLIBCXX11_USE_C99_XXX according to
language standard in use.
* config/locale/dragonfly/c_locale.h (std::__convert_from_v): Replace
_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
* config/locale/generic/c_locale.h (std::__convert_from_v): Likewise.
* config/locale/gnu/c_locale.h (std::__convert_from_v): Likewise.
* config/os/bsd/dragonfly/os_defines.h: Define _GLIBCXX_USE_C99_STDIO,
_GLIBCXX_USE_C99_STDLIB, and _GLIBCXX_USE_C99_WCHAR.
* configure: Regenerate.
* include/bits/basic_string.h: Make numeric conversion functions
depend on _GLIBCXX_USE_C99_STDIO, _GLIBCXX_USE_C99_STDLIB, or
_GLIBCXX_USE_C99_WCHAR, instead of _GLIBCXX_USE_C99.
* include/ext/vstring.h: Likewise.
* include/bits/locale_facets.tcc (std::num_put::_M_insert_float):
Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
* include/bits/locale_facets_nonio.tcc (std::money_put::do_put):
Likewise.
* include/c_compatibility/math.h: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_MATH.
* include/c_compatibility/wchar.h: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_WCHAR.
* include/c_global/cstdio: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_STDIO.
* include/c_global/cstdlib: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_STDLIB.
* include/c_global/cwchar: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_WCHAR.
* include/c_std/cstdio: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_STDIO.
* include/c_std/cstdlib: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_STDLIB.
* include/c_std/cwchar: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_WCHAR.
* include/tr1/cstdio: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_STDIO.
* include/tr1/cstdlib: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_STDLIB.
* include/tr1/cwchar: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_WCHAR.
* include/tr1/stdlib.h: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_STDLIB.
* src/c++98/locale_facets.cc (std::__num_base::_S_format_float):
Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
* testsuite/18_support/exception_ptr/60612-terminate.cc: Replace
_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
* testsuite/18_support/exception_ptr/60612-unexpected.cc: Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/stod.cc
(test01): Replace _GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_WCHAR.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
stof.cc: Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
stoi.cc: Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
stol.cc: Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
stold.cc: Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
stoll.cc: Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
stoul.cc: Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
stoull.cc: Likewise.
* testsuite/21_strings/basic_string/numeric_conversions/wchar_t/
to_wstring.cc: Likewise.
* testsuite/26_numerics/headers/cstdlib/13943.cc: Replace
_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
* testsuite/26_numerics/headers/cstdlib/types_std_c++0x.cc: Likewise.
* testsuite/lib/libstdc++.exp (check_v3_target_string_conversions):
Change preprocessor #if conditional so that it uses
_GLIBCXX_USE_C99_STDIO, _GLIBCXX_USE_C99_STDLIB, and
_GLIBCXX_USE_C99_WCHAR, instead of _GLIBCXX_USE_C99.
* testsuite/tr1/8_c_compatibility/cmath/templates.cc: Replace
_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_MATH.
* testsuite/tr1/8_c_compatibility/cstdio/functions.cc: Replace
_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDIO.
* testsuite/tr1/8_c_compatibility/cstdlib/functions.cc: Replace
_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_STDLIB.
* testsuite/tr1/8_c_compatibility/cstdlib/types_std_tr1.cc: Likewise.
* testsuite/tr1/8_c_compatibility/cwchar/functions.cc: Replace
_GLIBCXX_USE_C99 with _GLIBCXX_USE_C99_WCHAR.
* testsuite/util/testsuite_fs.h: Replace _GLIBCXX_USE_C99 with
_GLIBCXX_USE_C99_STDIO.
Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>
From-SVN: r230324
2015-11-13 15:51:25 +01:00
|
|
|
/* Define if C99 functions or macros in <wchar.h> should be imported in
|
|
|
|
<cwchar> in namespace std for C++98. */
|
|
|
|
#undef _GLIBCXX98_USE_C99_WCHAR
|
|
|
|
|
2011-12-01 03:20:32 +01:00
|
|
|
/* Define if the compiler supports C++11 atomics. */
|
|
|
|
#undef _GLIBCXX_ATOMIC_BUILTINS
|
2008-12-12 18:10:16 +01:00
|
|
|
|
acinclude.m4 (_GLIBCXX_USE_LONG_LONG, [...]): Use long form of AC_DEFINE ...
2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
* acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
_GLIBCXX_USE_WCHAR_T, _GLIBCXX_USE_C99, _GLIBCXX_USE_C99_MATH,
_GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_RES_LIMITS, _GLIBCXX_CONCEPT_CHECKS,
_GLIBCXX_SYMVER, _GLIBCXX_USE_LFS, _GLIBCXX_FULLY_DYNAMIC_STRING,
_GLIBCXX_USE_NLS, HAVE_GTHR_DEFAULT, HAVE_MBSTATE_T, HAVE_POLL,
HAVE_S_ISREG, HAVE_S_IFREG, HAVE_WRITEV, HAVE_INT64_T,
HAVE_LC_MESSAGES): Use long form of AC_DEFINE ...
* acconfig.h: ... to eliminate them from here.
(_GLIBCXX_ASM_SYMVER): Move definition below @BOTTOM@.
* config.h.in, configure: Regenerate.
From-SVN: r97685
2005-04-06 03:32:03 +02:00
|
|
|
/* Define to use concept checking code from the boost libraries. */
|
|
|
|
#undef _GLIBCXX_CONCEPT_CHECKS
|
|
|
|
|
2011-10-14 08:57:55 +02:00
|
|
|
/* Define to 1 if a fully dynamic basic_string is wanted, 0 to disable,
|
|
|
|
undefined for platform defaults */
|
acinclude.m4 (_GLIBCXX_USE_LONG_LONG, [...]): Use long form of AC_DEFINE ...
2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
* acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
_GLIBCXX_USE_WCHAR_T, _GLIBCXX_USE_C99, _GLIBCXX_USE_C99_MATH,
_GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_RES_LIMITS, _GLIBCXX_CONCEPT_CHECKS,
_GLIBCXX_SYMVER, _GLIBCXX_USE_LFS, _GLIBCXX_FULLY_DYNAMIC_STRING,
_GLIBCXX_USE_NLS, HAVE_GTHR_DEFAULT, HAVE_MBSTATE_T, HAVE_POLL,
HAVE_S_ISREG, HAVE_S_IFREG, HAVE_WRITEV, HAVE_INT64_T,
HAVE_LC_MESSAGES): Use long form of AC_DEFINE ...
* acconfig.h: ... to eliminate them from here.
(_GLIBCXX_ASM_SYMVER): Move definition below @BOTTOM@.
* config.h.in, configure: Regenerate.
From-SVN: r97685
2005-04-06 03:32:03 +02:00
|
|
|
#undef _GLIBCXX_FULLY_DYNAMIC_STRING
|
|
|
|
|
2008-08-28 12:22:19 +02:00
|
|
|
/* Define if gthreads library is available. */
|
|
|
|
#undef _GLIBCXX_HAS_GTHREADS
|
|
|
|
|
2003-09-02 20:46:54 +02:00
|
|
|
/* Define to 1 if a full hosted library is built, or 0 if freestanding. */
|
|
|
|
#undef _GLIBCXX_HOSTED
|
|
|
|
|
configure.ac (_GLIBCXX_LONG_DOUBLE_COMPAT): New check.
2006-02-07 Jakub Jelinek <jakub@redhat.com>
Benjamin Kosnik <bkoz@redhat.com>
* configure.ac (_GLIBCXX_LONG_DOUBLE_COMPAT): New check.
If true, set also port_specific_symbol_files and create
as_symver_specs.
(GLIBCXX_LDBL_COMPAT): New GLIBCXX_CONDITIONAL.
* configure: Rebuilt.
* config.h.in: Rebuilt.
* config/os/gnu-linux/ldbl-extra.ver: New file.
* config/abi/pre/gnu.ver: Make sure no __float128 symbols are
exported.
* include/bits/c++config (_GLIBCXX_LONG_DOUBLE_COMPAT,
_GLIBCXX_LDBL_NAMESPACE, _GLIBCXX_BEGIN_LDBL_NAMESPACE,
_GLIBCXX_END_LDBL_NAMESPACE): Define.
* include/bits/localefwd.h: Use them to conditionally scope facets.
* include/bits/locale_facets.h: Surround std::{money,num}_{get,put}
with _GLIBCXX_BEGIN_LDBL_NAMESPACE and _GLIBCXX_END_LDBL_NAMESPACE.
Surround std::{money,num}_{get,put}
with _GLIBCXX_BEGIN_LDBL_NAMESPACE and _GLIBCXX_END_LDBL_NAMESPACE.
[_GLIBCXX_LONG_DOUBLE_COMPAT] (std::money_get): Add __do_get method.
[_GLIBCXX_LONG_DOUBLE_COMPAT] (std::money_put): Add __do_put method.
[_GLIBCXX_LONG_DOUBLE_COMPAT] (std::num_get): Add __do_get method.
[_GLIBCXX_LONG_DOUBLE_COMPAT] (std::num_put): Add __do_put method.
* include/bits/locale_facets.tcc: Surround std::{money,num}_{get,put}
with _GLIBCXX_BEGIN_LDBL_NAMESPACE and _GLIBCXX_END_LDBL_NAMESPACE.
(std::money_get::__do_get, std::money_put::__do_put,
std::num_get::__do_get, std::num_put::__do_put): New
specializations.
* include/Makefile.am: Conditionally define
_GLIBCXX_LONG_DOUBLE_COMPAT in c++config.
* include/Makefile.in: Regenerate.
* src/locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT] (_GLIBCXX_LOC_ID,
_GLIBCXX_SYNC_ID): Define, use them.
* src/compatibility-ldbl.cc: New file.
* src/complex_io.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Add compatibility
symbols.
* src/limits.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
* src/locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
* src/locale-inst.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
* src/locale-misc-inst.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
* src/istream-inst.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
* src/ostream-inst.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
* src/locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
* src/wlocale-inst.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
* src/compatibility.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]: Likewise.
* config/locale/generic/c_locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]:
Likewise.
* config/locale/gnu/c_locale.cc [_GLIBCXX_LONG_DOUBLE_COMPAT]:
Likewise.
* src/Makefile.am (libstdc++-symbol.ver): Append instead of
insert in the middle if port specific symbol file requests it.
(ldbl_compat_sources): New variable.
(sources): Use it.
(compatibility-ldbl.lo, compatibility-ldbl.o): New rules.
* src/Makefile.in: Rebuilt.
* testsuite/testsuite_abi.cc: Recognize GLIBCXX_LDBL_3.4,
GLIBCXX_LDBL_3.4.7, CXXABI_LDBL_1.3.
Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r110725
2006-02-07 23:23:58 +01:00
|
|
|
/* Define if compatibility should be provided for -mlong-double-64. */
|
|
|
|
#undef _GLIBCXX_LONG_DOUBLE_COMPAT
|
|
|
|
|
2016-01-15 23:42:41 +01:00
|
|
|
/* Define to the letter to which size_t is mangled. */
|
|
|
|
#undef _GLIBCXX_MANGLE_SIZE_T
|
|
|
|
|
2017-01-09 18:15:58 +01:00
|
|
|
/* Define if C99 llrint and llround functions are missing from <math.h>. */
|
|
|
|
#undef _GLIBCXX_NO_C99_ROUNDING_FUNCS
|
|
|
|
|
2005-06-17 09:33:56 +02:00
|
|
|
/* Define if ptrdiff_t is int. */
|
|
|
|
#undef _GLIBCXX_PTRDIFF_T_IS_INT
|
|
|
|
|
acinclude.m4 (_GLIBCXX_USE_LONG_LONG, [...]): Use long form of AC_DEFINE ...
2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
* acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
_GLIBCXX_USE_WCHAR_T, _GLIBCXX_USE_C99, _GLIBCXX_USE_C99_MATH,
_GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_RES_LIMITS, _GLIBCXX_CONCEPT_CHECKS,
_GLIBCXX_SYMVER, _GLIBCXX_USE_LFS, _GLIBCXX_FULLY_DYNAMIC_STRING,
_GLIBCXX_USE_NLS, HAVE_GTHR_DEFAULT, HAVE_MBSTATE_T, HAVE_POLL,
HAVE_S_ISREG, HAVE_S_IFREG, HAVE_WRITEV, HAVE_INT64_T,
HAVE_LC_MESSAGES): Use long form of AC_DEFINE ...
* acconfig.h: ... to eliminate them from here.
(_GLIBCXX_ASM_SYMVER): Move definition below @BOTTOM@.
* config.h.in, configure: Regenerate.
From-SVN: r97685
2005-04-06 03:32:03 +02:00
|
|
|
/* Define if using setrlimit to set resource limits during "make check" */
|
|
|
|
#undef _GLIBCXX_RES_LIMITS
|
|
|
|
|
2005-06-17 09:33:56 +02:00
|
|
|
/* Define if size_t is unsigned int. */
|
|
|
|
#undef _GLIBCXX_SIZE_T_IS_UINT
|
|
|
|
|
2010-07-27 12:36:50 +02:00
|
|
|
/* Define to the value of the EOF integer constant. */
|
|
|
|
#undef _GLIBCXX_STDIO_EOF
|
|
|
|
|
|
|
|
/* Define to the value of the SEEK_CUR integer constant. */
|
|
|
|
#undef _GLIBCXX_STDIO_SEEK_CUR
|
|
|
|
|
|
|
|
/* Define to the value of the SEEK_END integer constant. */
|
|
|
|
#undef _GLIBCXX_STDIO_SEEK_END
|
2008-08-07 01:17:05 +02:00
|
|
|
|
2005-12-18 10:39:23 +01:00
|
|
|
/* Define to use symbol versioning in the shared library. */
|
acinclude.m4 (_GLIBCXX_USE_LONG_LONG, [...]): Use long form of AC_DEFINE ...
2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
* acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
_GLIBCXX_USE_WCHAR_T, _GLIBCXX_USE_C99, _GLIBCXX_USE_C99_MATH,
_GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_RES_LIMITS, _GLIBCXX_CONCEPT_CHECKS,
_GLIBCXX_SYMVER, _GLIBCXX_USE_LFS, _GLIBCXX_FULLY_DYNAMIC_STRING,
_GLIBCXX_USE_NLS, HAVE_GTHR_DEFAULT, HAVE_MBSTATE_T, HAVE_POLL,
HAVE_S_ISREG, HAVE_S_IFREG, HAVE_WRITEV, HAVE_INT64_T,
HAVE_LC_MESSAGES): Use long form of AC_DEFINE ...
* acconfig.h: ... to eliminate them from here.
(_GLIBCXX_ASM_SYMVER): Move definition below @BOTTOM@.
* config.h.in, configure: Regenerate.
From-SVN: r97685
2005-04-06 03:32:03 +02:00
|
|
|
#undef _GLIBCXX_SYMVER
|
|
|
|
|
2005-12-18 10:39:23 +01:00
|
|
|
/* Define to use darwin versioning in the shared library. */
|
|
|
|
#undef _GLIBCXX_SYMVER_DARWIN
|
|
|
|
|
|
|
|
/* Define to use GNU versioning in the shared library. */
|
|
|
|
#undef _GLIBCXX_SYMVER_GNU
|
|
|
|
|
2005-12-19 01:56:05 +01:00
|
|
|
/* Define to use GNU namespace versioning in the shared library. */
|
|
|
|
#undef _GLIBCXX_SYMVER_GNU_NAMESPACE
|
|
|
|
|
2010-07-02 12:05:49 +02:00
|
|
|
/* Define to use Sun versioning in the shared library. */
|
|
|
|
#undef _GLIBCXX_SYMVER_SUN
|
|
|
|
|
2015-09-04 13:13:34 +02:00
|
|
|
/* Define if C11 functions in <uchar.h> should be imported into namespace std
|
|
|
|
in <cuchar>. */
|
|
|
|
#undef _GLIBCXX_USE_C11_UCHAR_CXX11
|
|
|
|
|
acinclude.m4 (_GLIBCXX_USE_LONG_LONG, [...]): Use long form of AC_DEFINE ...
2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
* acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
_GLIBCXX_USE_WCHAR_T, _GLIBCXX_USE_C99, _GLIBCXX_USE_C99_MATH,
_GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_RES_LIMITS, _GLIBCXX_CONCEPT_CHECKS,
_GLIBCXX_SYMVER, _GLIBCXX_USE_LFS, _GLIBCXX_FULLY_DYNAMIC_STRING,
_GLIBCXX_USE_NLS, HAVE_GTHR_DEFAULT, HAVE_MBSTATE_T, HAVE_POLL,
HAVE_S_ISREG, HAVE_S_IFREG, HAVE_WRITEV, HAVE_INT64_T,
HAVE_LC_MESSAGES): Use long form of AC_DEFINE ...
* acconfig.h: ... to eliminate them from here.
(_GLIBCXX_ASM_SYMVER): Move definition below @BOTTOM@.
* config.h.in, configure: Regenerate.
From-SVN: r97685
2005-04-06 03:32:03 +02:00
|
|
|
/* Define if C99 functions or macros from <wchar.h>, <math.h>, <complex.h>,
|
|
|
|
<stdio.h>, and <stdlib.h> can be used or exposed. */
|
|
|
|
#undef _GLIBCXX_USE_C99
|
|
|
|
|
2006-01-25 20:29:40 +01:00
|
|
|
/* Define if C99 functions in <complex.h> should be used in <tr1/complex>.
|
|
|
|
Using compiler builtins for these functions requires corresponding C99
|
|
|
|
library functions to be present. */
|
|
|
|
#undef _GLIBCXX_USE_C99_COMPLEX_TR1
|
|
|
|
|
|
|
|
/* Define if C99 functions in <ctype.h> should be imported in <tr1/cctype> in
|
|
|
|
namespace std::tr1. */
|
|
|
|
#undef _GLIBCXX_USE_C99_CTYPE_TR1
|
|
|
|
|
2006-01-26 12:29:20 +01:00
|
|
|
/* Define if C99 functions in <fenv.h> should be imported in <tr1/cfenv> in
|
|
|
|
namespace std::tr1. */
|
|
|
|
#undef _GLIBCXX_USE_C99_FENV_TR1
|
|
|
|
|
2006-01-30 15:17:49 +01:00
|
|
|
/* Define if C99 functions in <inttypes.h> should be imported in
|
|
|
|
<tr1/cinttypes> in namespace std::tr1. */
|
|
|
|
#undef _GLIBCXX_USE_C99_INTTYPES_TR1
|
|
|
|
|
2008-09-07 18:41:06 +02:00
|
|
|
/* Define if wchar_t C99 functions in <inttypes.h> should be imported in
|
|
|
|
<tr1/cinttypes> in namespace std::tr1. */
|
|
|
|
#undef _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1
|
|
|
|
|
2006-02-07 14:14:03 +01:00
|
|
|
/* Define if C99 functions or macros in <math.h> should be imported in
|
|
|
|
<tr1/cmath> in namespace std::tr1. */
|
|
|
|
#undef _GLIBCXX_USE_C99_MATH_TR1
|
|
|
|
|
2006-01-29 20:02:31 +01:00
|
|
|
/* Define if C99 types in <stdint.h> should be imported in <tr1/cstdint> in
|
|
|
|
namespace std::tr1. */
|
|
|
|
#undef _GLIBCXX_USE_C99_STDINT_TR1
|
|
|
|
|
Commit the vtable verification feature.
Commit the vtable verification feature. This feature is designed to
detect, at run time, if/when the vtable pointer in a C++ object has
been corrupted, before allowing virtual calls through that pointer.
If pointer corruption is detected, execution of the program is halted.
libstdc++-v3 ChangeLog:
2013-08-06 Caroline Tice <cmtice@google.com>
* fragment.am: Add XTEMPLATE_FLAGS.
* configure.ac: Add definitions for --enable-vtable-verify.
* acinclude.m4: Add --enable-vtable-verify and
--disable-vtable-verify; define --enable-vtable-verify; define
VTV_CXXFLAGS, VTV_PCH_CXXFLAGS and VTV_CXXLINKFLAGS.
* config/abi/pre/gnu.ver: Export symbols for vtable verification.
* libsupc++/Makefile.am: Define vtv_sources and add it to
libsupc___la_SOURCES and libsupc__convenience_la_SOURCES.
* libsupc++/vtv_stubs.cc: New file.
* include/Makefile.am: Add VTV_PCH_CXXFLAGS to PCHFLAGS.
* src/Makefile.am: Add VTV_CXXFLAGS to AM_CXXFLAGS; add
VTV_CXXLINKFLAGS to CXXLINK.
* src/c++98/Makefile.am: Comment out XTEMPLATE_FLAGS; add VTV_CXXFLAGS
to AM_CXXFLAGS; add VTV_CXXXLINKFLAGS to CXXLINK.
* src/C++11/Makefile.am: Ditto.
* doc/xml/manual/configure.xml: Add entry for --enable-vtable-verify.
* scripts/testsuite_flags.in: Add cxxvtvflags to Usage; cause
cxxvtvflags to use VTV_CXXFLAGS and VTV_CXXLINKFLAGS.
* testsuite/lib/libstdc++.exp: Add cxxvtvflags; add code to locate
libvtv if --enable-vtable-verify was used; set cxxvtvflags; add
cxxvtvflags to cxx_final.
* testsuite/18_support/bad_exception/23591_thread-1.c: Add
-fvtable-verify=none to compiler flags.
* testsuite/17_intro/freestanding.cc: Add -fvtable-verify=none
to compiler flags.
* configure: Regenerated.
* Makefile.in: Regenerated.
* python/Makefile.in: Regenerated.
* include/Makefile.in: Regenerated.
* libsupc++/Makefile.in: Regenerated.
* config.h.in: Regenerated.
* po/Makefile.in: Regenerated.
* src/Makefile.in: Regenerated.
* src/c++98/Makefile.in: Regenerated.
* src/c++11/Makefile.in: Regenerated.
* doc/Makefile.in: Regenerated.
* testsuite/Makefile.in: Regenerated.
top level ChangeLog:
2013-08-06 Caroline Tice <cmtice@google.com>
* configure.ac: Add target-libvtv to target_libraries; disable libvtv
on non-linux systems; add target-libvtv to noconfigdirs; add
libsupc++/.libs to C++ library search paths.
* configure: Regenerated.
* Makefile.def: Add libvtv to target_modules; make libvtv depend on
libstdc++ and libgcc.
* Makefile.in: Regenerated.
include/ChangeLog:
2013-08-06 Caroline Tice <cmtice@google.com>
* vtv-change-permission.h: New file.
contrib/ChangeLog:
2013-08-06 Caroline Tice4 <cmtice@google.com>
* gcc_update: Add libvtv files.
libgcc/ChangeLog:
2013-08-06 Caroline Tice <cmtice@google.com>
config.host (extra_parts): Add vtv_start.o, vtv_end.o
vtv_start_preinit.o and vtv_end_preinit.o.
configure.ac: Add code to check/set enable_vtable_verify.
Makefile.in: Add rules to build vtv_*.o, if enable_vtable_verify is
true.
vtv_start_preinit.c: New file.
vtv_end_preinit.c: New file.
vtv_start.c: New file.
vtv_end.c: New file.
configure: Regenerated.
gcc/ChangeLog:
2013-08-06 Caroline Tice <cmtice@google.com>
* gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
(LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
* tree-pass.h: Add pass_vtable_verify.
* varasm.c (assemble_variable): Add code to properly set the comdat
section and name for the .vtable_map_vars section.
(assemble_vtyv_preinit_initializer): New function.
(default_sectin_type_flags): Make sure .vtable_map_vars section has
LINK_ONCE flag.
* output.h: Add function decl for assemble_vtv_preinit_initializer.
* vtable-verify.c: New file.
* vtable-verify.h: New file.
* flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
initialiation levels.
* timevar.def (TV_VTABLE_VERIFICATION): New definition.
* passes.def: Insert pass_vtable_verify.
* aclocal.m4: Reorder includes.
* doc/invoke.texi: Add documentation for the flags -fvtable-verify=,
-fvtv-debug and -fvtv-counts.
* config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
as appropriate, if -fvtable-verify=... is used.
(GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
-fvtable-verify=... is used.
* Makefile.in (OBJS): Add vtable-verify.o to list.
(vtable-verify.o): Add new build rule.
(GTFILES): Add vtable-verify.c to list.
* common.opt (fvtable-verify=): New flag.
(vtv_priority): Values for fvtable-verify= flag.
(fvtv-counts): New flag.
(fvtv-debug): New flag.
* tree.h (save_vtable_map_decl): New extern function decl.
gcc/cp/ChangeLog:
2013-08-06 Caroline Tice <cmtice@google.com>
* Make-lang.in (*CXX_AND_OBJCXX_OBJS): Add vtable-class-hierarchy.o to
list.
(vtable-class-hierarchy.o): Add build rule.
* cp-tree.h (vtv_start_verification_constructor_init_function): New
extern function decl.
(vtv_finish_verification_constructor_init_function): New extern
function decl.
(build_vtbl_address): New extern function decl.
(get_mangled_vtable_map_var_name): New extern function decl.
(vtv_compute_class_hierarchy_transitive_closure): New extern function
decl.
(vtv_generate_init_routine): New extern function decl.
(vtv_save_class_info): New extern function decl.
(vtv_recover_class_info): New extern function decl.
(vtv_build_vtable_verify_fndecl): New extern function decl.
* class.c (finish_struct_1): Add call to vtv_save_class_info if
flag_vtable_verify is true.
* config-lang.in: Add vtable-class-hierarchy.c to gtfiles list.
* vtable-class-hierarchy.c: New file.
* mangle.c (get_mangled_vtable_map_var_name): New function.
* decl2.c (start_objects): Update function comment.
(cp_write_global_declarations): Call vtv_recover_class_info,
vtv_compute_class_hierarchy_transitive_closure and
vtv_build_vtable_verify_fndecl, before calling
finalize_compilation_unit, and call vtv_generate_init_rount after, IFF
flag_vtable_verify is true.
(vtv_start_verification_constructor_init_function): New function.
(vtv_finish_verification_constructor_init_function): New function.
* init.c (build_vtbl_address): Remove static qualifier from function.
libvtv/ChangeLog:
2013-08-06 Caroline Tice <cmtice@google.com>
Initial check-in of new vtable verification feature.
* configure.ac : New file.
* acinclude.m4 : New file.
* Makefile.am : New file.
* aclocal.m4 : New file.
* configure.tgt : New file.
* configure: New file (generated).
* Makefile.in: New file (generated).
* vtv_set.h : New file.
* vtv_utils.cc : New file.
* vtv_utils.h : New file.
* vtv_malloc.cc : New file.
* vtv_rts.cc : New file.
* vtv_malloc.h : New file.
* vtv_rts.h : New file.
* vtv_fail.cc : New file.
* vtv_fail.h : New file.
* vtv_map.h : New file.
* scripts/run-testsuite.sh : New file.
* scripts/sum-vtv-counts.c : New file.
* testsuite/parts-test-main.h : New file.
* testusite/dataentry.cc : New file.
* testsuite/temp_deriv.cc : New file.
* testsuite/register_pair.cc : New file.
* testsuite/virtual_inheritance.cc : New file.
* testsuite/field-test.cc : New file.
* testsuite/nested_vcall_test.cc : New file.
* testsuite/template-list-iostream.cc : New file.
* testsuite/register_pair_inserts.cc : New file.
* testsuite/register_pair_inserts_mt.cc : New file.
* testsuite/event.list : New file.
* testsuite/parts-test-extra-parts-views.cc : New file.
* testsuite/parts-test-extra-parts-views.h : New file.
* testsuite/environment-fail-32.s : New file.
* testsuite/parts-test-extra-parts.h : New file.
* testsuite/temp_deriv2.cc : New file.
* testsuite/dlopen_mt.cc : New file.
* testsuite/event.h : New file.
* testsuite/template-list.cc : New file.
* testsuite/replace-fail.cc : New file.
* testsuite/Makefile.am : New file.
* testsuite/Makefile.in: New file (generated).
* testsuite/mempool_negative.c : New file.
* testsuite/parts-test-main.cc : New file.
* testsuite/event-private.cc : New file.
* testsuite/thunk.cc : New file.
* testsuite/event-defintiions.cc : New file.
* testsuite/event-private.h : New file.
* testsuite/parts-test.list : New file.
* testusite/register_pair_mt.cc : New file.
* testsuite/povray-derived.cc : New file.
* testsuite/event-main.cc : New file.
* testsuite/environment.cc : New file.
* testsuite/template-list2.cc : New file.
* testsuite/thunk_vtable_map_attack.cc : New file.
* testsuite/parts-test-extra-parts.cc : New file.
* testsuite/environment-fail-64.s : New file.
* testsuite/dlopen.cc : New file.
* testsuite/so.cc : New file.
* testsuite/temp_deriv3.cc : New file.
* testsuite/const_vtable.cc : New file.
* testsuite/mempool_positive.c : New file.
* testsuite/dup_name.cc : New file.
From-SVN: r201555
2013-08-07 05:38:59 +02:00
|
|
|
/* Defined if clock_gettime syscall has monotonic and realtime clock support.
|
|
|
|
*/
|
|
|
|
#undef _GLIBCXX_USE_CLOCK_GETTIME_SYSCALL
|
|
|
|
|
2008-07-16 01:23:23 +02:00
|
|
|
/* Defined if clock_gettime has monotonic clock support. */
|
|
|
|
#undef _GLIBCXX_USE_CLOCK_MONOTONIC
|
|
|
|
|
|
|
|
/* Defined if clock_gettime has realtime clock support. */
|
|
|
|
#undef _GLIBCXX_USE_CLOCK_REALTIME
|
|
|
|
|
2009-10-05 19:42:00 +02:00
|
|
|
/* Define if ISO/IEC TR 24733 decimal floating point types are supported on
|
|
|
|
this host. */
|
|
|
|
#undef _GLIBCXX_USE_DECIMAL_FLOAT
|
|
|
|
|
2018-10-16 16:49:29 +02:00
|
|
|
/* Define if /dev/random and /dev/urandom are available for
|
|
|
|
std::random_device. */
|
|
|
|
#undef _GLIBCXX_USE_DEV_RANDOM
|
|
|
|
|
2015-05-14 15:23:14 +02:00
|
|
|
/* Define if fchmod is available in <sys/stat.h>. */
|
|
|
|
#undef _GLIBCXX_USE_FCHMOD
|
|
|
|
|
2015-05-01 21:48:00 +02:00
|
|
|
/* Define if fchmodat is available in <sys/stat.h>. */
|
|
|
|
#undef _GLIBCXX_USE_FCHMODAT
|
|
|
|
|
2008-07-16 01:23:23 +02:00
|
|
|
/* Defined if gettimeofday is available. */
|
|
|
|
#undef _GLIBCXX_USE_GETTIMEOFDAY
|
|
|
|
|
2011-05-28 19:27:01 +02:00
|
|
|
/* Define if get_nprocs is available in <sys/sysinfo.h>. */
|
|
|
|
#undef _GLIBCXX_USE_GET_NPROCS
|
|
|
|
|
2011-09-21 13:23:11 +02:00
|
|
|
/* Define if __int128 is supported on this host. */
|
2011-09-18 01:53:26 +02:00
|
|
|
#undef _GLIBCXX_USE_INT128
|
|
|
|
|
acinclude.m4 (_GLIBCXX_USE_LONG_LONG, [...]): Use long form of AC_DEFINE ...
2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
* acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
_GLIBCXX_USE_WCHAR_T, _GLIBCXX_USE_C99, _GLIBCXX_USE_C99_MATH,
_GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_RES_LIMITS, _GLIBCXX_CONCEPT_CHECKS,
_GLIBCXX_SYMVER, _GLIBCXX_USE_LFS, _GLIBCXX_FULLY_DYNAMIC_STRING,
_GLIBCXX_USE_NLS, HAVE_GTHR_DEFAULT, HAVE_MBSTATE_T, HAVE_POLL,
HAVE_S_ISREG, HAVE_S_IFREG, HAVE_WRITEV, HAVE_INT64_T,
HAVE_LC_MESSAGES): Use long form of AC_DEFINE ...
* acconfig.h: ... to eliminate them from here.
(_GLIBCXX_ASM_SYMVER): Move definition below @BOTTOM@.
* config.h.in, configure: Regenerate.
From-SVN: r97685
2005-04-06 03:32:03 +02:00
|
|
|
/* Define if LFS support is available. */
|
|
|
|
#undef _GLIBCXX_USE_LFS
|
|
|
|
|
|
|
|
/* Define if code specialized for long long should be used. */
|
|
|
|
#undef _GLIBCXX_USE_LONG_LONG
|
|
|
|
|
PR libstdc++/86756 Move rest of std::filesystem to libstdc++.so
Move std::filesystem directory iterators and operations from
libstdc++fs.a to main libstdc++ library. These components have many
dependencies on OS support, which is not available on all targets. Some
additional autoconf checks and conditional compilation is needed to
ensure the files will build for all targets. Previously this code was
not compiled without --enable-libstdcxx-filesystem-ts but the C++17
components should be available for all hosted builds.
The tests for these components no longer need to link to libstdc++fs.a,
but are not expected to pass on all targets. To avoid numerous failures
on targets which are not expected to pass the tests (due to missing OS
functionality) leave the dg-require-filesystem-ts directives in place
for now. This will ensure the tests only run for builds where the
filesystem-ts library is built, which presumably means some level of OS
support is present.
PR libstdc++/86756
* acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and
lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT.
* config.h.in: Regenerate.
* config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for
remaining std::filesystem types and functions.
* configure: Regenerate.
* src/c++17/Makefile.am: Add C++17 filesystem sources.
* src/c++17/Makefile.in: Regenerate.
* src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to
here, and change name of included file.
* src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to
here, and change name of included file.
* src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change
path to dir-common.h.
* src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change
path to ops-common.h. Disable -Wunused-parameter warnings.
(internal_file_clock): Define unconditionally.
[!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not
define.
(do_copy_file, do_space): Move definitions to ops.common.h.
(copy, file_size, hard_link_count, last_write_time, space): Only
perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise
report an error.
(last_write_time, read_symlink): Remove unused attributes from
parameters.
* src/filesystem/Makefile.am: Remove C++17 filesystem sources.
* src/filesystem/Makefile.in: Regenerate.
* src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc.
* src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc.
* src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc.
* src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc.
* src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define
dummy types and functions instead of using #error.
* src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error.
* src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define
in terms of stat.
[!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions.
(do_copy_file, do_space): Move definitions here from std-ops.cc.
* src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space
to account for new namespace.
* testsuite/27_io/filesystem/directory_entry/86597.cc: Remove
-lstdc++fs from dg-options.
* testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise.
* testsuite/27_io/filesystem/file_status/1.cc: Likewise.
* testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise.
* testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise.
* testsuite/27_io/filesystem/iterators/directory_iterator.cc:
Likewise.
* testsuite/27_io/filesystem/iterators/pop.cc: Likewise.
* testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
Likewise.
* testsuite/27_io/filesystem/operations/absolute.cc: Likewise.
* testsuite/27_io/filesystem/operations/canonical.cc: Likewise.
* testsuite/27_io/filesystem/operations/copy.cc: Likewise.
* testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
* testsuite/27_io/filesystem/operations/create_directories.cc:
Likewise.
* testsuite/27_io/filesystem/operations/create_directory.cc: Likewise.
* testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise.
* testsuite/27_io/filesystem/operations/current_path.cc: Likewise.
* testsuite/27_io/filesystem/operations/equivalent.cc: Likewise.
* testsuite/27_io/filesystem/operations/exists.cc: Likewise.
* testsuite/27_io/filesystem/operations/file_size.cc: Likewise.
* testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
* testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise.
* testsuite/27_io/filesystem/operations/permissions.cc: Likewise.
* testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
* testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise.
* testsuite/27_io/filesystem/operations/relative.cc: Likewise.
* testsuite/27_io/filesystem/operations/remove.cc: Likewise.
* testsuite/27_io/filesystem/operations/remove_all.cc: Likewise.
* testsuite/27_io/filesystem/operations/space.cc: Likewise.
* testsuite/27_io/filesystem/operations/status.cc: Likewise.
* testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
* testsuite/27_io/filesystem/operations/temp_directory_path.cc:
Likewise.
* testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise.
From-SVN: r267616
2019-01-06 23:34:37 +01:00
|
|
|
/* Define if lstat is available in <sys/stat.h>. */
|
|
|
|
#undef _GLIBCXX_USE_LSTAT
|
|
|
|
|
2008-09-13 02:32:37 +02:00
|
|
|
/* Defined if nanosleep is available. */
|
|
|
|
#undef _GLIBCXX_USE_NANOSLEEP
|
|
|
|
|
acinclude.m4 (_GLIBCXX_USE_LONG_LONG, [...]): Use long form of AC_DEFINE ...
2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
* acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
_GLIBCXX_USE_WCHAR_T, _GLIBCXX_USE_C99, _GLIBCXX_USE_C99_MATH,
_GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_RES_LIMITS, _GLIBCXX_CONCEPT_CHECKS,
_GLIBCXX_SYMVER, _GLIBCXX_USE_LFS, _GLIBCXX_FULLY_DYNAMIC_STRING,
_GLIBCXX_USE_NLS, HAVE_GTHR_DEFAULT, HAVE_MBSTATE_T, HAVE_POLL,
HAVE_S_ISREG, HAVE_S_IFREG, HAVE_WRITEV, HAVE_INT64_T,
HAVE_LC_MESSAGES): Use long form of AC_DEFINE ...
* acconfig.h: ... to eliminate them from here.
(_GLIBCXX_ASM_SYMVER): Move definition below @BOTTOM@.
* config.h.in, configure: Regenerate.
From-SVN: r97685
2005-04-06 03:32:03 +02:00
|
|
|
/* Define if NLS translations are to be used. */
|
|
|
|
#undef _GLIBCXX_USE_NLS
|
|
|
|
|
2011-11-07 14:45:03 +01:00
|
|
|
/* Define if pthreads_num_processors_np is available in <pthread.h>. */
|
|
|
|
#undef _GLIBCXX_USE_PTHREADS_NUM_PROCESSORS_NP
|
|
|
|
|
2015-03-18 11:53:38 +01:00
|
|
|
/* Define if POSIX read/write locks are available in <gthr.h>. */
|
|
|
|
#undef _GLIBCXX_USE_PTHREAD_RWLOCK_T
|
|
|
|
|
2008-08-25 01:47:35 +02:00
|
|
|
/* Define if /dev/random and /dev/urandom are available for the random_device
|
|
|
|
of TR1 (Chapter 5.1). */
|
2006-06-10 01:37:28 +02:00
|
|
|
#undef _GLIBCXX_USE_RANDOM_TR1
|
|
|
|
|
2015-09-17 00:50:28 +02:00
|
|
|
/* Define if usable realpath is available in <stdlib.h>. */
|
2015-04-30 21:11:52 +02:00
|
|
|
#undef _GLIBCXX_USE_REALPATH
|
|
|
|
|
2009-01-15 15:01:04 +01:00
|
|
|
/* Defined if sched_yield is available. */
|
|
|
|
#undef _GLIBCXX_USE_SCHED_YIELD
|
|
|
|
|
2011-05-28 19:27:01 +02:00
|
|
|
/* Define if _SC_NPROCESSORS_ONLN is available in <unistd.h>. */
|
|
|
|
#undef _GLIBCXX_USE_SC_NPROCESSORS_ONLN
|
|
|
|
|
2011-11-07 14:45:03 +01:00
|
|
|
/* Define if _SC_NPROC_ONLN is available in <unistd.h>. */
|
|
|
|
#undef _GLIBCXX_USE_SC_NPROC_ONLN
|
|
|
|
|
2016-05-25 18:13:52 +02:00
|
|
|
/* Define if sendfile is available in <sys/sendfile.h>. */
|
2015-05-14 15:23:14 +02:00
|
|
|
#undef _GLIBCXX_USE_SENDFILE
|
|
|
|
|
2015-04-30 21:11:52 +02:00
|
|
|
/* Define if struct stat has timespec members. */
|
|
|
|
#undef _GLIBCXX_USE_ST_MTIM
|
|
|
|
|
2011-11-07 14:45:03 +01:00
|
|
|
/* Define if sysctl(), CTL_HW and HW_NCPU are available in <sys/sysctl.h>. */
|
|
|
|
#undef _GLIBCXX_USE_SYSCTL_HW_NCPU
|
|
|
|
|
2014-01-23 22:17:15 +01:00
|
|
|
/* Define if obsolescent tmpnam is available in <stdio.h>. */
|
|
|
|
#undef _GLIBCXX_USE_TMPNAM
|
|
|
|
|
PR libstdc++/86756 Move rest of std::filesystem to libstdc++.so
Move std::filesystem directory iterators and operations from
libstdc++fs.a to main libstdc++ library. These components have many
dependencies on OS support, which is not available on all targets. Some
additional autoconf checks and conditional compilation is needed to
ensure the files will build for all targets. Previously this code was
not compiled without --enable-libstdcxx-filesystem-ts but the C++17
components should be available for all hosted builds.
The tests for these components no longer need to link to libstdc++fs.a,
but are not expected to pass on all targets. To avoid numerous failures
on targets which are not expected to pass the tests (due to missing OS
functionality) leave the dg-require-filesystem-ts directives in place
for now. This will ensure the tests only run for builds where the
filesystem-ts library is built, which presumably means some level of OS
support is present.
PR libstdc++/86756
* acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for utime and
lstat and define _GLIBCXX_USE_UTIME and _GLIBCXX_USE_LSTAT.
* config.h.in: Regenerate.
* config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Export symbols for
remaining std::filesystem types and functions.
* configure: Regenerate.
* src/c++17/Makefile.am: Add C++17 filesystem sources.
* src/c++17/Makefile.in: Regenerate.
* src/c++17/cow-fs_dir.cc: Move src/filesystem/cow-std-dir.cc to
here, and change name of included file.
* src/c++17/cow-fs_ops.cc: Move src/filesystem/cow-std-ops.cc to
here, and change name of included file.
* src/c++17/fs_dir.cc: Move src/filesystem/std-dir.cc to here. Change
path to dir-common.h.
* src/c++17/fs_ops.cc: Move src/filesystem/std-ops.cc to here. Change
path to ops-common.h. Disable -Wunused-parameter warnings.
(internal_file_clock): Define unconditionally.
[!_GLIBCXX_HAVE_SYS_STAT_H] (internal_file_clock::from_stat): Do not
define.
(do_copy_file, do_space): Move definitions to ops.common.h.
(copy, file_size, hard_link_count, last_write_time, space): Only
perform operation when _GLIBCXX_HAVE_SYS_STAT_H is defined, otherwise
report an error.
(last_write_time, read_symlink): Remove unused attributes from
parameters.
* src/filesystem/Makefile.am: Remove C++17 filesystem sources.
* src/filesystem/Makefile.in: Regenerate.
* src/filesystem/cow-std-dir.cc: Move to src/c++17/cow-fs_dir.cc.
* src/filesystem/cow-std-ops.cc: Move to src/c++17/cow-fs_ops.cc.
* src/filesystem/std-dir.cc: Move to src/c++17/fs_dir.cc.
* src/filesystem/std-ops.cc: Move to src/c++17/fs_ops.cc.
* src/filesystem/dir-common.h [!_GLIBCXX_HAVE_DIRENT_H]: Define
dummy types and functions instead of using #error.
* src/filesystem/dir.cc [!_GLIBCXX_HAVE_DIRENT_H]: Use #error.
* src/filesystem/ops-common.h [!_GLIBCXX_USE_LSTAT] (lstat): Define
in terms of stat.
[!_GLIBCXX_HAVE_UNISTD_H]: Define dummy types and functions.
(do_copy_file, do_space): Move definitions here from std-ops.cc.
* src/filesystem/ops.cc: Adjust calls to do_copy_file and do_space
to account for new namespace.
* testsuite/27_io/filesystem/directory_entry/86597.cc: Remove
-lstdc++fs from dg-options.
* testsuite/27_io/filesystem/directory_entry/lwg3171.cc: Likewise.
* testsuite/27_io/filesystem/file_status/1.cc: Likewise.
* testsuite/27_io/filesystem/filesystem_error/cons.cc: Likewise.
* testsuite/27_io/filesystem/filesystem_error/copy.cc: Likewise.
* testsuite/27_io/filesystem/iterators/directory_iterator.cc:
Likewise.
* testsuite/27_io/filesystem/iterators/pop.cc: Likewise.
* testsuite/27_io/filesystem/iterators/recursive_directory_iterator.cc:
Likewise.
* testsuite/27_io/filesystem/operations/absolute.cc: Likewise.
* testsuite/27_io/filesystem/operations/canonical.cc: Likewise.
* testsuite/27_io/filesystem/operations/copy.cc: Likewise.
* testsuite/27_io/filesystem/operations/copy_file.cc: Likewise.
* testsuite/27_io/filesystem/operations/create_directories.cc:
Likewise.
* testsuite/27_io/filesystem/operations/create_directory.cc: Likewise.
* testsuite/27_io/filesystem/operations/create_symlink.cc: Likewise.
* testsuite/27_io/filesystem/operations/current_path.cc: Likewise.
* testsuite/27_io/filesystem/operations/equivalent.cc: Likewise.
* testsuite/27_io/filesystem/operations/exists.cc: Likewise.
* testsuite/27_io/filesystem/operations/file_size.cc: Likewise.
* testsuite/27_io/filesystem/operations/is_empty.cc: Likewise.
* testsuite/27_io/filesystem/operations/last_write_time.cc: Likewise.
* testsuite/27_io/filesystem/operations/permissions.cc: Likewise.
* testsuite/27_io/filesystem/operations/proximate.cc: Likewise.
* testsuite/27_io/filesystem/operations/read_symlink.cc: Likewise.
* testsuite/27_io/filesystem/operations/relative.cc: Likewise.
* testsuite/27_io/filesystem/operations/remove.cc: Likewise.
* testsuite/27_io/filesystem/operations/remove_all.cc: Likewise.
* testsuite/27_io/filesystem/operations/space.cc: Likewise.
* testsuite/27_io/filesystem/operations/status.cc: Likewise.
* testsuite/27_io/filesystem/operations/symlink_status.cc: Likewise.
* testsuite/27_io/filesystem/operations/temp_directory_path.cc:
Likewise.
* testsuite/27_io/filesystem/operations/weakly_canonical.cc: Likewise.
From-SVN: r267616
2019-01-06 23:34:37 +01:00
|
|
|
/* Define if utime is available in <utime.h>. */
|
|
|
|
#undef _GLIBCXX_USE_UTIME
|
|
|
|
|
2015-04-30 21:11:52 +02:00
|
|
|
/* Define if utimensat and UTIME_OMIT are available in <sys/stat.h> and
|
|
|
|
AT_FDCWD in <fcntl.h>. */
|
|
|
|
#undef _GLIBCXX_USE_UTIMENSAT
|
|
|
|
|
acinclude.m4 (_GLIBCXX_USE_LONG_LONG, [...]): Use long form of AC_DEFINE ...
2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
* acinclude.m4 (_GLIBCXX_USE_LONG_LONG,
_GLIBCXX_USE_WCHAR_T, _GLIBCXX_USE_C99, _GLIBCXX_USE_C99_MATH,
_GLIBCXX_USE_C99_COMPLEX, _GLIBCXX_RES_LIMITS, _GLIBCXX_CONCEPT_CHECKS,
_GLIBCXX_SYMVER, _GLIBCXX_USE_LFS, _GLIBCXX_FULLY_DYNAMIC_STRING,
_GLIBCXX_USE_NLS, HAVE_GTHR_DEFAULT, HAVE_MBSTATE_T, HAVE_POLL,
HAVE_S_ISREG, HAVE_S_IFREG, HAVE_WRITEV, HAVE_INT64_T,
HAVE_LC_MESSAGES): Use long form of AC_DEFINE ...
* acconfig.h: ... to eliminate them from here.
(_GLIBCXX_ASM_SYMVER): Move definition below @BOTTOM@.
* config.h.in, configure: Regenerate.
From-SVN: r97685
2005-04-06 03:32:03 +02:00
|
|
|
/* Define if code specialized for wchar_t should be used. */
|
|
|
|
#undef _GLIBCXX_USE_WCHAR_T
|
|
|
|
|
2012-09-10 01:08:48 +02:00
|
|
|
/* Define to 1 if a verbose library is built, or 0 otherwise. */
|
|
|
|
#undef _GLIBCXX_VERBOSE
|
|
|
|
|
2012-09-09 19:20:42 +02:00
|
|
|
/* Defined if as can handle rdrand. */
|
|
|
|
#undef _GLIBCXX_X86_RDRAND
|
|
|
|
|
2011-07-15 23:52:06 +02:00
|
|
|
/* Define to 1 if mutex_timedlock is available. */
|
|
|
|
#undef _GTHREAD_USE_MUTEX_TIMEDLOCK
|
|
|
|
|
2016-11-21 17:09:47 +01:00
|
|
|
/* Define if all C++11 floating point overloads are available in <math.h>. */
|
2015-11-24 14:15:43 +01:00
|
|
|
#if __cplusplus >= 201103L
|
2016-11-21 17:09:47 +01:00
|
|
|
#undef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Define if all C++11 integral type overloads are available in <math.h>. */
|
|
|
|
#if __cplusplus >= 201103L
|
|
|
|
#undef __CORRECT_ISO_CPP11_MATH_H_PROTO_INT
|
2015-11-24 14:15:43 +01:00
|
|
|
#endif
|
|
|
|
|
2000-06-06 22:26:13 +02:00
|
|
|
#if defined (HAVE__ACOSF) && ! defined (HAVE_ACOSF)
|
|
|
|
# define HAVE_ACOSF 1
|
|
|
|
# define acosf _acosf
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__ACOSL) && ! defined (HAVE_ACOSL)
|
|
|
|
# define HAVE_ACOSL 1
|
|
|
|
# define acosl _acosl
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__ASINF) && ! defined (HAVE_ASINF)
|
|
|
|
# define HAVE_ASINF 1
|
|
|
|
# define asinf _asinf
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__ASINL) && ! defined (HAVE_ASINL)
|
|
|
|
# define HAVE_ASINL 1
|
|
|
|
# define asinl _asinl
|
|
|
|
#endif
|
|
|
|
|
2005-04-08 23:54:31 +02:00
|
|
|
#if defined (HAVE__ATAN2F) && ! defined (HAVE_ATAN2F)
|
|
|
|
# define HAVE_ATAN2F 1
|
|
|
|
# define atan2f _atan2f
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__ATAN2L) && ! defined (HAVE_ATAN2L)
|
|
|
|
# define HAVE_ATAN2L 1
|
|
|
|
# define atan2l _atan2l
|
|
|
|
#endif
|
|
|
|
|
2000-06-06 22:26:13 +02:00
|
|
|
#if defined (HAVE__ATANF) && ! defined (HAVE_ATANF)
|
|
|
|
# define HAVE_ATANF 1
|
|
|
|
# define atanf _atanf
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__ATANL) && ! defined (HAVE_ATANL)
|
|
|
|
# define HAVE_ATANL 1
|
|
|
|
# define atanl _atanl
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__CEILF) && ! defined (HAVE_CEILF)
|
|
|
|
# define HAVE_CEILF 1
|
2005-04-08 23:54:31 +02:00
|
|
|
# define ceilf _ceilf
|
2000-06-06 22:26:13 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__CEILL) && ! defined (HAVE_CEILL)
|
|
|
|
# define HAVE_CEILL 1
|
2005-04-08 23:54:31 +02:00
|
|
|
# define ceill _ceill
|
2000-06-06 22:26:13 +02:00
|
|
|
#endif
|
|
|
|
|
2005-04-08 03:23:25 +02:00
|
|
|
#if defined (HAVE__COSF) && ! defined (HAVE_COSF)
|
|
|
|
# define HAVE_COSF 1
|
|
|
|
# define cosf _cosf
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__COSHF) && ! defined (HAVE_COSHF)
|
|
|
|
# define HAVE_COSHF 1
|
|
|
|
# define coshf _coshf
|
2000-04-21 22:33:34 +02:00
|
|
|
#endif
|
|
|
|
|
2000-06-06 22:26:13 +02:00
|
|
|
#if defined (HAVE__COSHL) && ! defined (HAVE_COSHL)
|
|
|
|
# define HAVE_COSHL 1
|
|
|
|
# define coshl _coshl
|
|
|
|
#endif
|
|
|
|
|
2005-04-08 03:23:25 +02:00
|
|
|
#if defined (HAVE__COSL) && ! defined (HAVE_COSL)
|
|
|
|
# define HAVE_COSL 1
|
|
|
|
# define cosl _cosl
|
|
|
|
#endif
|
|
|
|
|
2000-06-06 22:26:13 +02:00
|
|
|
#if defined (HAVE__EXPF) && ! defined (HAVE_EXPF)
|
|
|
|
# define HAVE_EXPF 1
|
|
|
|
# define expf _expf
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__EXPL) && ! defined (HAVE_EXPL)
|
|
|
|
# define HAVE_EXPL 1
|
|
|
|
# define expl _expl
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__FABSF) && ! defined (HAVE_FABSF)
|
|
|
|
# define HAVE_FABSF 1
|
|
|
|
# define fabsf _fabsf
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__FABSL) && ! defined (HAVE_FABSL)
|
|
|
|
# define HAVE_FABSL 1
|
|
|
|
# define fabsl _fabsl
|
|
|
|
#endif
|
|
|
|
|
2005-04-08 03:23:25 +02:00
|
|
|
#if defined (HAVE__FINITE) && ! defined (HAVE_FINITE)
|
|
|
|
# define HAVE_FINITE 1
|
|
|
|
# define finite _finite
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__FINITEF) && ! defined (HAVE_FINITEF)
|
|
|
|
# define HAVE_FINITEF 1
|
|
|
|
# define finitef _finitef
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__FINITEL) && ! defined (HAVE_FINITEL)
|
|
|
|
# define HAVE_FINITEL 1
|
|
|
|
# define finitel _finitel
|
|
|
|
#endif
|
|
|
|
|
2000-06-06 22:26:13 +02:00
|
|
|
#if defined (HAVE__FLOORF) && ! defined (HAVE_FLOORF)
|
|
|
|
# define HAVE_FLOORF 1
|
|
|
|
# define floorf _floorf
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__FLOORL) && ! defined (HAVE_FLOORL)
|
|
|
|
# define HAVE_FLOORL 1
|
|
|
|
# define floorl _floorl
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__FMODF) && ! defined (HAVE_FMODF)
|
|
|
|
# define HAVE_FMODF 1
|
|
|
|
# define fmodf _fmodf
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__FMODL) && ! defined (HAVE_FMODL)
|
|
|
|
# define HAVE_FMODL 1
|
|
|
|
# define fmodl _fmodl
|
|
|
|
#endif
|
|
|
|
|
2005-04-08 03:23:25 +02:00
|
|
|
#if defined (HAVE__FPCLASS) && ! defined (HAVE_FPCLASS)
|
|
|
|
# define HAVE_FPCLASS 1
|
|
|
|
# define fpclass _fpclass
|
|
|
|
#endif
|
|
|
|
|
2000-06-06 22:26:13 +02:00
|
|
|
#if defined (HAVE__FREXPF) && ! defined (HAVE_FREXPF)
|
|
|
|
# define HAVE_FREXPF 1
|
|
|
|
# define frexpf _frexpf
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__FREXPL) && ! defined (HAVE_FREXPL)
|
|
|
|
# define HAVE_FREXPL 1
|
|
|
|
# define frexpl _frexpl
|
|
|
|
#endif
|
|
|
|
|
2005-04-08 23:54:31 +02:00
|
|
|
#if defined (HAVE__HYPOT) && ! defined (HAVE_HYPOT)
|
|
|
|
# define HAVE_HYPOT 1
|
|
|
|
# define hypot _hypot
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__HYPOTF) && ! defined (HAVE_HYPOTF)
|
|
|
|
# define HAVE_HYPOTF 1
|
|
|
|
# define hypotf _hypotf
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__HYPOTL) && ! defined (HAVE_HYPOTL)
|
|
|
|
# define HAVE_HYPOTL 1
|
|
|
|
# define hypotl _hypotl
|
|
|
|
#endif
|
|
|
|
|
2005-04-08 03:23:25 +02:00
|
|
|
#if defined (HAVE__ISINF) && ! defined (HAVE_ISINF)
|
|
|
|
# define HAVE_ISINF 1
|
|
|
|
# define isinf _isinf
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__ISINFF) && ! defined (HAVE_ISINFF)
|
|
|
|
# define HAVE_ISINFF 1
|
|
|
|
# define isinff _isinff
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__ISINFL) && ! defined (HAVE_ISINFL)
|
|
|
|
# define HAVE_ISINFL 1
|
|
|
|
# define isinfl _isinfl
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__ISNAN) && ! defined (HAVE_ISNAN)
|
|
|
|
# define HAVE_ISNAN 1
|
|
|
|
# define isnan _isnan
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__ISNANF) && ! defined (HAVE_ISNANF)
|
|
|
|
# define HAVE_ISNANF 1
|
|
|
|
# define isnanf _isnanf
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__ISNANL) && ! defined (HAVE_ISNANL)
|
|
|
|
# define HAVE_ISNANL 1
|
|
|
|
# define isnanl _isnanl
|
|
|
|
#endif
|
|
|
|
|
2000-06-06 22:26:13 +02:00
|
|
|
#if defined (HAVE__LDEXPF) && ! defined (HAVE_LDEXPF)
|
|
|
|
# define HAVE_LDEXPF 1
|
|
|
|
# define ldexpf _ldexpf
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__LDEXPL) && ! defined (HAVE_LDEXPL)
|
|
|
|
# define HAVE_LDEXPL 1
|
|
|
|
# define ldexpl _ldexpl
|
|
|
|
#endif
|
|
|
|
|
2000-04-21 22:33:34 +02:00
|
|
|
#if defined (HAVE__LOG10F) && ! defined (HAVE_LOG10F)
|
|
|
|
# define HAVE_LOG10F 1
|
|
|
|
# define log10f _log10f
|
|
|
|
#endif
|
|
|
|
|
2005-04-08 03:23:25 +02:00
|
|
|
#if defined (HAVE__LOG10L) && ! defined (HAVE_LOG10L)
|
|
|
|
# define HAVE_LOG10L 1
|
|
|
|
# define log10l _log10l
|
2000-06-06 22:26:13 +02:00
|
|
|
#endif
|
|
|
|
|
2005-04-08 03:23:25 +02:00
|
|
|
#if defined (HAVE__LOGF) && ! defined (HAVE_LOGF)
|
|
|
|
# define HAVE_LOGF 1
|
|
|
|
# define logf _logf
|
2000-04-21 22:33:34 +02:00
|
|
|
#endif
|
|
|
|
|
2005-04-08 03:23:25 +02:00
|
|
|
#if defined (HAVE__LOGL) && ! defined (HAVE_LOGL)
|
|
|
|
# define HAVE_LOGL 1
|
|
|
|
# define logl _logl
|
2000-06-06 22:26:13 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__MODF) && ! defined (HAVE_MODF)
|
|
|
|
# define HAVE_MODF 1
|
|
|
|
# define modf _modf
|
|
|
|
#endif
|
|
|
|
|
2005-04-08 23:54:31 +02:00
|
|
|
#if defined (HAVE__MODFF) && ! defined (HAVE_MODFF)
|
|
|
|
# define HAVE_MODFF 1
|
|
|
|
# define modff _modff
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__MODFL) && ! defined (HAVE_MODFL)
|
|
|
|
# define HAVE_MODFL 1
|
|
|
|
# define modfl _modfl
|
2000-06-06 22:26:13 +02:00
|
|
|
#endif
|
|
|
|
|
2005-04-08 03:23:25 +02:00
|
|
|
#if defined (HAVE__POWF) && ! defined (HAVE_POWF)
|
|
|
|
# define HAVE_POWF 1
|
|
|
|
# define powf _powf
|
2000-04-21 22:33:34 +02:00
|
|
|
#endif
|
|
|
|
|
2000-06-06 22:26:13 +02:00
|
|
|
#if defined (HAVE__POWL) && ! defined (HAVE_POWL)
|
|
|
|
# define HAVE_POWL 1
|
|
|
|
# define powl _powl
|
|
|
|
#endif
|
|
|
|
|
2005-04-08 03:23:25 +02:00
|
|
|
#if defined (HAVE__QFPCLASS) && ! defined (HAVE_QFPCLASS)
|
|
|
|
# define HAVE_QFPCLASS 1
|
|
|
|
# define qfpclass _qfpclass
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__SINCOS) && ! defined (HAVE_SINCOS)
|
|
|
|
# define HAVE_SINCOS 1
|
|
|
|
# define sincos _sincos
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__SINCOSF) && ! defined (HAVE_SINCOSF)
|
|
|
|
# define HAVE_SINCOSF 1
|
|
|
|
# define sincosf _sincosf
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__SINCOSL) && ! defined (HAVE_SINCOSL)
|
|
|
|
# define HAVE_SINCOSL 1
|
|
|
|
# define sincosl _sincosl
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__SINF) && ! defined (HAVE_SINF)
|
|
|
|
# define HAVE_SINF 1
|
|
|
|
# define sinf _sinf
|
|
|
|
#endif
|
|
|
|
|
2000-04-21 22:33:34 +02:00
|
|
|
#if defined (HAVE__SINHF) && ! defined (HAVE_SINHF)
|
|
|
|
# define HAVE_SINHF 1
|
|
|
|
# define sinhf _sinhf
|
|
|
|
#endif
|
|
|
|
|
2005-04-08 03:23:25 +02:00
|
|
|
#if defined (HAVE__SINHL) && ! defined (HAVE_SINHL)
|
|
|
|
# define HAVE_SINHL 1
|
|
|
|
# define sinhl _sinhl
|
|
|
|
#endif
|
|
|
|
|
2000-06-06 22:26:13 +02:00
|
|
|
#if defined (HAVE__SINL) && ! defined (HAVE_SINL)
|
|
|
|
# define HAVE_SINL 1
|
|
|
|
# define sinl _sinl
|
|
|
|
#endif
|
|
|
|
|
2000-04-21 22:33:34 +02:00
|
|
|
#if defined (HAVE__SQRTF) && ! defined (HAVE_SQRTF)
|
|
|
|
# define HAVE_SQRTF 1
|
|
|
|
# define sqrtf _sqrtf
|
|
|
|
#endif
|
|
|
|
|
2000-06-06 22:26:13 +02:00
|
|
|
#if defined (HAVE__SQRTL) && ! defined (HAVE_SQRTL)
|
|
|
|
# define HAVE_SQRTL 1
|
|
|
|
# define sqrtl _sqrtl
|
|
|
|
#endif
|
|
|
|
|
2000-04-21 22:33:34 +02:00
|
|
|
#if defined (HAVE__STRTOF) && ! defined (HAVE_STRTOF)
|
|
|
|
# define HAVE_STRTOF 1
|
|
|
|
# define strtof _strtof
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (HAVE__STRTOLD) && ! defined (HAVE_STRTOLD)
|
|
|
|
# define HAVE_STRTOLD 1
|
|
|
|
# define strtold _strtold
|
|
|
|
#endif
|
|
|
|
|
2005-04-08 03:23:25 +02:00
|
|
|
#if defined (HAVE__TANF) && ! defined (HAVE_TANF)
|
|
|
|
# define HAVE_TANF 1
|
|
|
|
# define tanf _tanf
|
2000-06-06 22:26:13 +02:00
|
|
|
#endif
|
|
|
|
|
2005-04-08 03:23:25 +02:00
|
|
|
#if defined (HAVE__TANHF) && ! defined (HAVE_TANHF)
|
|
|
|
# define HAVE_TANHF 1
|
|
|
|
# define tanhf _tanhf
|
2000-04-21 22:33:34 +02:00
|
|
|
#endif
|
|
|
|
|
2005-04-08 03:23:25 +02:00
|
|
|
#if defined (HAVE__TANHL) && ! defined (HAVE_TANHL)
|
|
|
|
# define HAVE_TANHL 1
|
|
|
|
# define tanhl _tanhl
|
2000-04-21 22:33:34 +02:00
|
|
|
#endif
|
|
|
|
|
2005-04-08 03:23:25 +02:00
|
|
|
#if defined (HAVE__TANL) && ! defined (HAVE_TANL)
|
|
|
|
# define HAVE_TANL 1
|
|
|
|
# define tanl _tanl
|
2000-04-21 22:33:34 +02:00
|
|
|
#endif
|