gcc/libstdc++-v3/include/c_global
Jonathan Wakely 8ba7f29e3d Remove <chrono> dependency on _GLIBCXX_USE_C99_STDINT_TR1
By adding fallback definitions of std::intmax_t and std::uintmax_t it's
possible to define <ratio> without _GLIBCXX_USE_C99_STDINT_TR1. This in
turn allows most of <chrono> to be defined, which removes the dependency
on _GLIBCXX_USE_C99_STDINT_TR1 for all of the C++11 concurrency features.

The compiler defines __INTMAX_TYPE__ and __UINTMAX_TYPE__
unconditionally so it should be safe to rely on them.

	* include/bits/atomic_futex.h [!_GLIBCXX_USE_C99_STDINT_TR1]
	(__atomic_futex_unsigned_base): Remove dependency on
	_GLIBCXX_USE_C99_STDINT_TR1 macro.
	* include/bits/unique_lock.h [!_GLIBCXX_USE_C99_STDINT_TR1]
	(unique_lock): Remove dependency on _GLIBCXX_USE_C99_STDINT_TR1.
	* include/c_global/cstdint [!_GLIBCXX_USE_C99_STDINT_TR1] (intmax_t)
	(uintmax_t): Define using predefined macros.
	* include/std/chrono [!_GLIBCXX_USE_C99_STDINT_TR1] (duration)
	(time_point, system_clock, high_resolution_clock, steady_clock): Remove
	dependency on _GLIBCXX_USE_C99_STDINT_TR1 macro.
	(nanoseconds, microseconds, milliseconds, seconds, minutes, hours):
	[!_GLIBCXX_USE_C99_STDINT_TR1]: Define using __INT64_TYPE__ or
	long long when <stdint.h> is not usable.
	* include/std/condition_variable [!_GLIBCXX_USE_C99_STDINT_TR1]
	(condition_variable, condition_variable_any): Remove dependency on
	_GLIBCXX_USE_C99_STDINT_TR1.
	* include/std/future [!_GLIBCXX_USE_C99_STDINT_TR1] (future, promise)
	(packaged_task, async): Likewise.
	* include/std/mutex [!_GLIBCXX_USE_C99_STDINT_TR1] (recursive_mutex)
	(timed_mutex, recursive_timed_mutex, try_lock, lock, scoped_lock)
	(once_flag, call_once): Likewise.
	* include/std/ratio [!_GLIBCXX_USE_C99_STDINT_TR1] (ratio): Likewise.
	* include/std/shared_mutex [!_GLIBCXX_USE_C99_STDINT_TR1]
	(shared_mutex, shared_timed_mutex, shared_lock): Likewise.
	* include/std/thread [!_GLIBCXX_USE_C99_STDINT_TR1] (thread)
	(this_thread::get_id, this_thread::yield, this_thread::sleep_for)
	(this_thread::sleep_until): Likewise.
	* src/c++11/chrono.cc: Remove dependency on
	_GLIBCXX_USE_C99_STDINT_TR1 macro.
	* src/c++11/condition_variable.cc: Likewise.
	* src/c++11/futex.cc: Likewise.
	* src/c++11/future.cc: Likewise.
	* src/c++11/mutex.cc: Likewise.
	* src/c++11/thread.cc: Likewise.
	* testsuite/20_util/duration/literals/range_neg.cc: Adjust dg-error.
	* testsuite/20_util/duration/requirements/typedefs_neg1.cc: Likewise.
	* testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
	* testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.
	* testsuite/20_util/ratio/cons/cons_overflow_neg.cc: Likewise.
	* testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise.

From-SVN: r263001
2018-07-26 15:01:55 +01:00
..
cassert Update copyright years. 2018-01-03 11:03:58 +01:00
ccomplex Update copyright years. 2018-01-03 11:03:58 +01:00
cctype Update copyright years. 2018-01-03 11:03:58 +01:00
cerrno Update copyright years. 2018-01-03 11:03:58 +01:00
cfenv Update copyright years. 2018-01-03 11:03:58 +01:00
cfloat Update copyright years. 2018-01-03 11:03:58 +01:00
cinttypes Update copyright years. 2018-01-03 11:03:58 +01:00
ciso646 Update copyright years. 2018-01-03 11:03:58 +01:00
climits Update copyright years. 2018-01-03 11:03:58 +01:00
clocale Update copyright years. 2018-01-03 11:03:58 +01:00
cmath Update copyright years. 2018-01-03 11:03:58 +01:00
csetjmp Update copyright years. 2018-01-03 11:03:58 +01:00
csignal Update copyright years. 2018-01-03 11:03:58 +01:00
cstdalign Update copyright years. 2018-01-03 11:03:58 +01:00
cstdarg Update copyright years. 2018-01-03 11:03:58 +01:00
cstdbool Update copyright years. 2018-01-03 11:03:58 +01:00
cstddef PR libstdc++/85729 add linkage specifications to headers 2018-05-10 13:35:45 +01:00
cstdint Remove <chrono> dependency on _GLIBCXX_USE_C99_STDINT_TR1 2018-07-26 15:01:55 +01:00
cstdio Update copyright years. 2018-01-03 11:03:58 +01:00
cstdlib PR libstdc++/84773 use aligned alloc functions for FreeBSD and MinGW cross-compilers 2018-03-12 22:52:16 +00:00
cstring PR libstdc++/85729 add linkage specifications to headers 2018-05-10 13:35:45 +01:00
ctgmath Update copyright years. 2018-01-03 11:03:58 +01:00
ctime Update copyright years. 2018-01-03 11:03:58 +01:00
cuchar Update copyright years. 2018-01-03 11:03:58 +01:00
cwchar PR libstdc++/85729 add linkage specifications to headers 2018-05-10 13:35:45 +01:00
cwctype Update copyright years. 2018-01-03 11:03:58 +01:00