From 23acbfee6a82cc147b04b74a89d5b34b47c150f4 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 21 Feb 2024 11:46:52 -0500 Subject: 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 --- gdb/trad-frame.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'gdb/trad-frame.c') 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::value); -#endif int numregs = gdbarch_num_cooked_regs (gdbarch); trad_frame_saved_reg *this_saved_regs -- cgit v1.1