aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-01-15 14:09:21 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2024-09-15 16:15:28 +0100
commit1dde83f0ec313166fc91e6784a0ca2e3db46acee (patch)
tree3d6913fad6e908c5448177965f6ce927f13f961c /gcc/cp/parser.cc
parentf91fe35aa14bf4d44f2c8394301858b42e12ee45 (diff)
downloadgcc-1dde83f0ec313166fc91e6784a0ca2e3db46acee.zip
gcc-1dde83f0ec313166fc91e6784a0ca2e3db46acee.tar.gz
gcc-1dde83f0ec313166fc91e6784a0ca2e3db46acee.tar.bz2
libstdc++: Enable most of <chrono> for freestanding
This makes durations, time points and calendrical types available for freestanding. The clocks and time zone utilities are disabled for freestanding, as they require functions in the hosted lib. Add support for a new macro _GLIBCXX_NO_FREESTANDING_CHRONO which can be used to explicitly disable <chrono> for freestanding. libstdc++-v3/ChangeLog: * doc/xml/manual/using.xml (_GLIBCXX_NO_FREESTANDING_CHRONO): Document macro. * doc/html/*: Regenerate. * include/bits/chrono.h [_GLIBCXX_NO_FREESTANDING_CHRONO]: Only include <bits/require_hosted.h> when this macro is defined. [_GLIBCXX_HOSTED]: Only define clocks for hosted. * include/bits/version.def (chrono_udls): Remove hosted=yes. * include/bits/version.h: Regenerate. * include/std/chrono [_GLIBCXX_HOSTED]: Only define clocks and time zone utilities for hosted. * testsuite/std/time/freestanding.cc: New test.
Diffstat (limited to 'gcc/cp/parser.cc')
0 files changed, 0 insertions, 0 deletions