diff options
Diffstat (limited to 'gdb/trad-frame.c')
-rw-r--r-- | gdb/trad-frame.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/trad-frame.c b/gdb/trad-frame.c index 17375e8..3284c45 100644 --- a/gdb/trad-frame.c +++ b/gdb/trad-frame.c @@ -25,6 +25,7 @@ #include "target.h" #include "value.h" #include "gdbarch.h" +#include "gdbsupport/traits.h" struct trad_frame_cache { @@ -60,7 +61,9 @@ trad_frame_reset_saved_regs (struct gdbarch *gdbarch, trad_frame_saved_reg * trad_frame_alloc_saved_regs (struct gdbarch *gdbarch) { - gdb_static_assert (std::is_trivially_default_constructible<trad_frame_saved_reg>::value); +#ifdef HAVE_IS_TRIVIALLY_CONSTRUCTIBLE + gdb_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 |