From: Jonathan Wakely Date: Mon, 9 Jan 2023 14:13:16 +0000 (+0000) Subject: libstdc++: Fix tzdb.cc to compile with -fno-exceptions X-Git-Tag: basepoints/gcc-14~2126 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b7c12d83ccb6565d1f4532f9669c33ebbafaef8;p=thirdparty%2Fgcc.git libstdc++: Fix tzdb.cc to compile with -fno-exceptions libstdc++-v3/ChangeLog: * src/c++20/tzdb.cc (tzdb_list::_S_init_tzdb): Use __try and __catch macros for exception handling. --- diff --git a/libstdc++-v3/src/c++20/tzdb.cc b/libstdc++-v3/src/c++20/tzdb.cc index 7227fe7cfe64..e335ea61c4d2 100644 --- a/libstdc++-v3/src/c++20/tzdb.cc +++ b/libstdc++-v3/src/c++20/tzdb.cc @@ -1197,11 +1197,11 @@ namespace std::chrono const tzdb& tzdb_list::_Node::_S_init_tzdb() { - try + __try { return reload_tzdb(); } - catch (const std::exception&) + __catch (const std::exception&) { auto [leaps, ok] = _S_read_leap_seconds();