[gdb/build] Fix build with gcc 4.8.5
authorTom de Vries <tdevries@suse.de>
Tue, 12 Jul 2022 11:36:57 +0000 (13:36 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 12 Jul 2022 11:36:57 +0000 (13:36 +0200)
commit02f0597c46892c4b69e0af45a95509bf310c759e
treeba7369902b9d317ab5cc4ec1d43f898477e33a36
parentac3972d81f1065a156daa0da97320262845c2469
[gdb/build] Fix build with gcc 4.8.5

When building gdb with gcc 4.8.5, we run into problems due to unconditionally
using:
...
     gdb_static_assert (std::is_trivially_copyable<packed>::value);
...
in gdbsupport/packed.h.

Fix this by guarding the usage with HAVE_IS_TRIVIALLY_COPYABLE.

Tested by doing a full gdb build with gcc 4.8.5.
gdbsupport/packed.h