aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2025-02-22 21:02:29 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2025-02-22 22:51:33 +0000
commitd4a777d098d524a3f26c3db28e50d064a7a4407e (patch)
treeffa76d71e49be0743773a29e4ccfd11f9beae968
parent0128fa8b41498d8822451d98149c6357e6ab8074 (diff)
downloadgcc-d4a777d098d524a3f26c3db28e50d064a7a4407e.zip
gcc-d4a777d098d524a3f26c3db28e50d064a7a4407e.tar.gz
gcc-d4a777d098d524a3f26c3db28e50d064a7a4407e.tar.bz2
libstdc++: Fix bootstrap failure with --enable-vtable-verify [PR118981]
The compiler emits code with init_priority(99) for -fvtable-verify=std and that creates a section conflict with the uses of init_priority(99) that I recently added to src/c++20/tzdb.cc. Change tzdb.cc to use a different priority to avoid the conflict. libstdc++-v3/ChangeLog: PR c++/118981 * src/c++20/tzdb.cc: Use init_priority(98) instead of init_priority(99).
-rw-r--r--libstdc++-v3/src/c++20/tzdb.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/src/c++20/tzdb.cc b/libstdc++-v3/src/c++20/tzdb.cc
index c3bb6a1..9cf9eec 100644
--- a/libstdc++-v3/src/c++20/tzdb.cc
+++ b/libstdc++-v3/src/c++20/tzdb.cc
@@ -181,14 +181,14 @@ namespace std::chrono
#pragma GCC diagnostic ignored "-Wprio-ctor-dtor"
- [[gnu::init_priority(99)]]
+ [[gnu::init_priority(98)]]
constinit tzdb_list tzdb_list::_Node::_S_the_list(nullptr);
- [[gnu::init_priority(99)]]
+ [[gnu::init_priority(98)]]
constinit tzdb_list::_Node::head_ptr tzdb_list::_Node::_S_head_owner{nullptr};
#if USE_ATOMIC_LIST_HEAD
- [[gnu::init_priority(99)]]
+ [[gnu::init_priority(98)]]
constinit atomic<tzdb_list::_Node*> tzdb_list::_Node::_S_head_cache{nullptr};
#endif