Fix test for availability of emplace_back.
authorCary Coutant <ccoutant@gmail.com>
Mon, 9 Jul 2018 23:12:27 +0000 (16:12 -0700)
committerCary Coutant <ccoutant@gmail.com>
Mon, 9 Jul 2018 23:12:27 +0000 (16:12 -0700)
commitc3c5e486808bc473d1642bb4ba84d80689c8fca2
tree4019a62cfe570b9faaa39060b57dcca616d4cdd0
parent8d4c0995eb0996fdbc0ee490317e3765a94723d7
Fix test for availability of emplace_back.

Testing for the GCC version 5 or later isn't right, since C++ 11 support
wasn't enabled by default until later.  This patch tests the C++ standard
support directly instead of inferring it from the GCC version.

gold/
* incremental.cc (Sized_incremental_binary::setup_readers): Use
emplace_back for C++ 11 or later.
gold/ChangeLog
gold/incremental.cc