aboutsummaryrefslogtreecommitdiff
path: root/gcc/ginclude/stdint-gcc.h
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-10-07 17:37:07 +0100
committerJonathan Wakely <jwakely@redhat.com>2022-11-13 01:10:45 +0000
commit1736bf5a61c7364c5da6fa52e5e2bfdbc9507c97 (patch)
treee5ad071c8af7a4684bd2c2734affe49027bfbe8c /gcc/ginclude/stdint-gcc.h
parent1d9454aba615eadd0d85c93713dd848227345f67 (diff)
downloadgcc-1736bf5a61c7364c5da6fa52e5e2bfdbc9507c97.zip
gcc-1736bf5a61c7364c5da6fa52e5e2bfdbc9507c97.tar.gz
gcc-1736bf5a61c7364c5da6fa52e5e2bfdbc9507c97.tar.bz2
libstdc++: Add C++20 clocks
Also add the basic types for timezones, without the non-inline definitions needed to actually use them. The get_leap_second_info function currently uses a hardcoded list of leap seconds, correct as of the end of 2022. That needs to be replaced with a dynamically generated list read from the system tzdata. That will be done in a later patch. libstdc++-v3/ChangeLog: * include/std/chrono (utc_clock, tai_clock, gps_clock): Define. (clock_time_conversion, clock_cast): Define. (sys_info, local_info): Define structs for timezone information. (nonexistent_local_time, ambiguous_local_time): Define exceptions for invalid times. (time_zone, time_zone_link, leap_second, zoned_traits, tzdb) (tzdb_list): Define classes representing time zones. (get_leap_second_info): Define new function returning leap second offset for a given time point. * testsuite/std/time/clock/gps/1.cc: New test. * testsuite/std/time/clock/tai/1.cc: New test. * testsuite/std/time/clock/utc/1.cc: New test.
Diffstat (limited to 'gcc/ginclude/stdint-gcc.h')
0 files changed, 0 insertions, 0 deletions