aboutsummaryrefslogtreecommitdiff
path: root/gdb/unittests/array-view-selftests.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-02-21 11:46:52 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2024-02-21 13:30:19 -0500
commit23acbfee6a82cc147b04b74a89d5b34b47c150f4 (patch)
treee9c528c8ed51b58eb3b51d3427346f664c7cf674 /gdb/unittests/array-view-selftests.c
parentaca8a74923c4a0c222a2f8f5f3e23de84ab19e77 (diff)
downloadfsf-binutils-gdb-23acbfee6a82cc147b04b74a89d5b34b47c150f4.zip
fsf-binutils-gdb-23acbfee6a82cc147b04b74a89d5b34b47c150f4.tar.gz
fsf-binutils-gdb-23acbfee6a82cc147b04b74a89d5b34b47c150f4.tar.bz2
gdbsupport: assume that compiler supports std::{is_trivially_constructible,is_trivially_copyable}
This code was there to support g++ 4, which didn't support std::is_trivially_constructible and std::is_trivially_copyable. Since we now require g++ >= 9, I think it's fair to assume that GDB will always be compiled with a compiler that supports those. Change-Id: Ie7c1649139a2f48bf662cac92d7f3e38fb1f1ba1
Diffstat (limited to 'gdb/unittests/array-view-selftests.c')
-rw-r--r--gdb/unittests/array-view-selftests.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/unittests/array-view-selftests.c b/gdb/unittests/array-view-selftests.c
index 9d2448f..299318a 100644
--- a/gdb/unittests/array-view-selftests.c
+++ b/gdb/unittests/array-view-selftests.c
@@ -30,15 +30,11 @@ namespace array_view_tests {
#define CHECK_TRAIT(TRAIT) \
static_assert (std::TRAIT<gdb::array_view<gdb_byte>>::value, "")
-#if HAVE_IS_TRIVIALLY_COPYABLE
-
CHECK_TRAIT (is_trivially_copyable);
CHECK_TRAIT (is_trivially_move_assignable);
CHECK_TRAIT (is_trivially_move_constructible);
CHECK_TRAIT (is_trivially_destructible);
-#endif
-
#undef CHECK_TRAIT
/* Wrapper around std::is_convertible to make the code using it a bit