-
- Downloads
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.
Showing
- libstdc++-v3/doc/html/manual/using_macros.html 7 additions, 0 deletionslibstdc++-v3/doc/html/manual/using_macros.html
- libstdc++-v3/doc/xml/manual/using.xml 12 additions, 0 deletionslibstdc++-v3/doc/xml/manual/using.xml
- libstdc++-v3/include/bits/chrono.h 18 additions, 6 deletionslibstdc++-v3/include/bits/chrono.h
- libstdc++-v3/include/bits/version.def 0 additions, 1 deletionlibstdc++-v3/include/bits/version.def
- libstdc++-v3/include/bits/version.h 1 addition, 1 deletionlibstdc++-v3/include/bits/version.h
- libstdc++-v3/include/std/chrono 19 additions, 5 deletionslibstdc++-v3/include/std/chrono
- libstdc++-v3/testsuite/std/time/freestanding.cc 52 additions, 0 deletionslibstdc++-v3/testsuite/std/time/freestanding.cc
Loading
Please register or sign in to comment