aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport/packed.h
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 /gdbsupport/packed.h
parentaca8a74923c4a0c222a2f8f5f3e23de84ab19e77 (diff)
downloadgdb-23acbfee6a82cc147b04b74a89d5b34b47c150f4.zip
gdb-23acbfee6a82cc147b04b74a89d5b34b47c150f4.tar.gz
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 'gdbsupport/packed.h')
-rw-r--r--gdbsupport/packed.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdbsupport/packed.h b/gdbsupport/packed.h
index 8035535..5c817d4 100644
--- a/gdbsupport/packed.h
+++ b/gdbsupport/packed.h
@@ -80,9 +80,7 @@ public:
static_assert (alignof (packed) == 1);
/* Make sure packed can be wrapped with std::atomic. */
-#if HAVE_IS_TRIVIALLY_COPYABLE
static_assert (std::is_trivially_copyable<packed>::value);
-#endif
static_assert (std::is_copy_constructible<packed>::value);
static_assert (std::is_move_constructible<packed>::value);
static_assert (std::is_copy_assignable<packed>::value);