diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-02-21 11:46:52 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2024-02-21 13:30:19 -0500 |
commit | 23acbfee6a82cc147b04b74a89d5b34b47c150f4 (patch) | |
tree | e9c528c8ed51b58eb3b51d3427346f664c7cf674 /gdb/trad-frame.c | |
parent | aca8a74923c4a0c222a2f8f5f3e23de84ab19e77 (diff) | |
download | binutils-23acbfee6a82cc147b04b74a89d5b34b47c150f4.zip binutils-23acbfee6a82cc147b04b74a89d5b34b47c150f4.tar.gz binutils-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/trad-frame.c')
-rw-r--r-- | gdb/trad-frame.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/trad-frame.c b/gdb/trad-frame.c index 8b63927..c35e08a 100644 --- a/gdb/trad-frame.c +++ b/gdb/trad-frame.c @@ -61,9 +61,7 @@ trad_frame_reset_saved_regs (struct gdbarch *gdbarch, trad_frame_saved_reg * trad_frame_alloc_saved_regs (struct gdbarch *gdbarch) { -#ifdef HAVE_IS_TRIVIALLY_CONSTRUCTIBLE static_assert (std::is_trivially_constructible<trad_frame_saved_reg>::value); -#endif int numregs = gdbarch_num_cooked_regs (gdbarch); trad_frame_saved_reg *this_saved_regs |