Fix build on gcc < 5 (std::is_trivially_copyable missing)
authorPedro Alves <palves@redhat.com>
Tue, 25 Apr 2017 09:58:57 +0000 (10:58 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 25 Apr 2017 09:58:57 +0000 (10:58 +0100)
commitdebed3db4887483552103da36d180967ef0dca5f
treedab7562353f25938ba0a48f6cb82aa8195fd5279
parentd28b6364b1fba1c0270c001f0d82a69e351e1922
Fix build on gcc < 5 (std::is_trivially_copyable missing)

Ref: https://sourceware.org/ml/gdb-patches/2017-04/msg00660.html

Simply skip the poisoning on older compilers.

gdb/ChangeLog:
2017-04-25  Pedro Alves  <palves@redhat.com>

* common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
(BothAreRelocatable, memcopy, memmove): Don't define.
* common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
macros.
gdb/ChangeLog
gdb/common/poison.h
gdb/common/traits.h
This page took 0.027151 seconds and 4 git commands to generate.