aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-12-23 09:19:38 +0000
committerJonathan Wakely <jwakely@redhat.com>2022-12-23 09:21:47 +0000
commitdb3c5831f80e674b9ee77c1e9ca8364a72ca5758 (patch)
tree686e55b93a6f39eeed10ef4ec977f05559038c0f
parenta846817739c1e7b930d593cd51963d6b46b5dfc6 (diff)
downloadgcc-db3c5831f80e674b9ee77c1e9ca8364a72ca5758.zip
gcc-db3c5831f80e674b9ee77c1e9ca8364a72ca5758.tar.gz
gcc-db3c5831f80e674b9ee77c1e9ca8364a72ca5758.tar.bz2
libstdc++: Remove problematic static_assert from src/c++20/tzdb.cc
This assertion fails for cris-elf where sizeof(datetime) is only 7, due to lower alignment requirements. The assertion was used while I was writing the code to check that the objects were as compact as I wanted, but it doesn't need to be kept now. libstdc++-v3/ChangeLog: * src/c++20/tzdb.cc: Remove static_assert.
-rw-r--r--libstdc++-v3/src/c++20/tzdb.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/libstdc++-v3/src/c++20/tzdb.cc b/libstdc++-v3/src/c++20/tzdb.cc
index a0bb031..a02bcd4 100644
--- a/libstdc++-v3/src/c++20/tzdb.cc
+++ b/libstdc++-v3/src/c++20/tzdb.cc
@@ -448,7 +448,6 @@ namespace std::chrono
// This allows on_day to reuse padding of at_time.
// This keeps the size to 8 bytes and the alignment to 4 bytes.
struct datetime : at_time { on_day day; };
- static_assert(sizeof(datetime) == 8 && alignof(datetime) == 4);
// TODO combining name+letters into a single string (like in ZoneInfo)
// would save sizeof(string) and make Rule fit in a single cacheline.